Description
Koha's reports/bor_issues_top.pl builds dynamic SQL in sub calculate by concatenating several user-controlled request parameters directly into the query string. The Criteria parameter is only normalized by a table-name prefix and is never whitelisted, landing verbatim in identifier positions (SELECT DISTINCTROW, GROUP BY, ORDER BY); Filter values are concatenated raw into single-quoted LIKE, BETWEEN, and comparison fragments, and the Limit parameter is appended raw to a LIMIT clause. An authenticated staff user holding the reports module permission can inject arbitrary SQL and read any table reachable by the Koha database user, including borrowers (password hashes, two-factor secrets, personal data), api_keys, and sessions.
Severity (CVSS)
| Base score | 6.5 |
|---|---|
| Severity | Medium |
| Version | CVSS 3.1 |
| Vector | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| Provided by | CISA-ADP |
Weaknesses
- CWE-89 — CWE-89 SQL Injection
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Koha Community | Koha | 0 to <24.11.17; 25.05.00 to <25.05.12; 25.11.00 to <25.11.06; 26.05.00 to <26.05.01 |
References
Generated from the official CVE List on 05 Aug 2026 07:03 UTC.