CVE-2026-70370: CWE-89 SQL Injection in Koha Community Koha
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.
AI Analysis
Technical Summary
Koha's reports/catalogue_stats.pl script contains a SQL Injection vulnerability (CWE-89) due to unsafe dynamic SQL construction in the 'calculate' subroutine. User-supplied 'Line' and 'Column' parameters are directly embedded into SQL clauses such as SELECT DISTINCTROW, GROUP BY, and ORDER BY without any whitelist validation or sanitization. This enables an attacker with low privileges to inject malicious SQL code, resulting in high impact on confidentiality, integrity, and availability. The vulnerability affects specific Koha versions 25.05.00, 25.11.00, and 26.05.00. No official patch or remediation guidance has been published yet.
Potential Impact
Exploitation of this vulnerability can lead to unauthorized disclosure, modification, or deletion of data within the Koha database. Given the high CVSS score (8.8) and the nature of SQL Injection, the impact includes full compromise of data confidentiality, integrity, and availability. The vulnerability requires network access with low privileges and no user interaction, making it relatively easy to exploit if the affected versions are in use.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, users should avoid exposing the vulnerable reports/catalogue_stats.pl functionality to untrusted users or networks. Implementing input validation or restricting access to this component may reduce risk. Monitor vendor channels for updates and apply official patches once available.
CVE-2026-70370: CWE-89 SQL Injection in Koha Community Koha
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.
CVSS v3.1
Score 8.8high
Affected software
Koha Community
Koha
pkg:github/koha-community/KohaRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Koha's reports/catalogue_stats.pl script contains a SQL Injection vulnerability (CWE-89) due to unsafe dynamic SQL construction in the 'calculate' subroutine. User-supplied 'Line' and 'Column' parameters are directly embedded into SQL clauses such as SELECT DISTINCTROW, GROUP BY, and ORDER BY without any whitelist validation or sanitization. This enables an attacker with low privileges to inject malicious SQL code, resulting in high impact on confidentiality, integrity, and availability. The vulnerability affects specific Koha versions 25.05.00, 25.11.00, and 26.05.00. No official patch or remediation guidance has been published yet.
Potential Impact
Exploitation of this vulnerability can lead to unauthorized disclosure, modification, or deletion of data within the Koha database. Given the high CVSS score (8.8) and the nature of SQL Injection, the impact includes full compromise of data confidentiality, integrity, and availability. The vulnerability requires network access with low privileges and no user interaction, making it relatively easy to exploit if the affected versions are in use.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, users should avoid exposing the vulnerable reports/catalogue_stats.pl functionality to untrusted users or networks. Implementing input validation or restricting access to this component may reduce risk. Monitor vendor channels for updates and apply official patches once available.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- TuranSec
- Date Reserved
- 2026-08-04T07:13:07.992Z
- State
- PUBLISHED
Threat ID: 6a71ec42bf8831d539e19d2a
Added to database: 08/04/2026, 13:42:26 UTC
Last enriched: 08/11/2026, 17:05:09 UTC
Last updated: 09/18/2026, 02:31:17 UTC
Views: 53
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.