Description
Koha's reports/acquisitions_stats.pl builds its per-cell statistics query in sub calculate by interpolating the user-controlled Filter request parameters directly into WHERE fragments covering aqbasket.closedate, aqorders.datereceived, aqbooksellers.name, items.homebranch, items.ccode, biblioitems.itemtype, aqbudgets.budget_code, aqorders.sort1, and aqorders.sort2. The statement is prepared and executed with no bound parameters. 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), borrower_password_recovery, 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.