Vulnerability Description
Koha's reports/catalogue_stats.pl builds dynamic SQL in sub calculate by interpolating the user-controlled Line and Column request parameters directly into identifier positions of the query (SELECT DISTINCTROW, GROUP BY, ORDER BY) with no whitelist validation. When Line contains itemcallnumber and the cotedigits parameter is truthy, cotedigits is additionally concatenated raw as the numeric argument of a LEFT() call. 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.
CVSS Score
HIGH
Related Weaknesses (CWE)
References
- https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42363
- https://download.koha-community.org/koha-25.05.12.tar.gz
- https://koha-community.org/koha-25-05-12-released/
FAQ
What is CVE-2026-70370?
CVE-2026-70370 is a vulnerability with a CVSS score of 8.8 (HIGH). Koha's reports/catalogue_stats.pl builds dynamic SQL in sub calculate by interpolating the user-controlled Line and Column request parameters directly into identifier positions of the query (SELECT DI...
How severe is CVE-2026-70370?
CVE-2026-70370 has been rated HIGH with a CVSS base score of 8.8/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-70370?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.