CVE-2026-70370: Koha: SQL Injection in reports/catalogue_stats.pl
Koha's reports/cataloguestats.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), apikeys, and sessions.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2026-70370?
The severity of CVE-2026-70370 is rated at 72, indicating a significant risk.
How do I fix CVE-2026-70370?
To fix CVE-2026-70370, ensure that user inputs for the Line and Column parameters are properly validated and sanitized to prevent SQL injection.
What does CVE-2026-70370 affect?
CVE-2026-70370 affects Koha's reports/catalogue_stats.pl, which is vulnerable to SQL injection.
What is the nature of the vulnerability in CVE-2026-70370?
CVE-2026-70370 is an SQL Injection vulnerability caused by the lack of whitelist validation when interpolating user-controlled parameters.
When was CVE-2026-70370 published?
CVE-2026-70370 was published on August 4, 2026.