CVE-2026-70373: CWE-89 SQL Injection in Koha Community Koha
Koha's reports/issues_stats.pl (the circulation statistics report) builds its calculation query in sub calculate by concatenating several user-controlled request parameters directly into the SQL string. The PeriodTypeSel, PeriodDaySel, and PeriodMonthSel parameters are interpolated raw into single-quoted equality and function-comparison fragments, and the Filter slots plus the Line and Column identifiers are likewise interpolated with no whitelist and no placeholder binding.
AI Analysis
Technical Summary
The vulnerability in Koha's reports/issues_stats.pl script arises from unsafe construction of SQL queries in the subroutine 'calculate'. User input parameters such as PeriodTypeSel, PeriodDaySel, PeriodMonthSel, Filter slots, and Line and Column identifiers are directly interpolated into SQL query strings without any whitelist validation or use of parameterized queries. This improper handling leads to SQL Injection (CWE-89), enabling attackers to manipulate the SQL query logic. The CVSS 3.1 score is 8.8 (high), reflecting network attack vector, low attack complexity, low privileges required, no user interaction, and high impact on confidentiality, integrity, and availability.
Potential Impact
Successful exploitation could allow an attacker with low privileges to execute arbitrary SQL commands on the Koha database. This can lead to unauthorized data disclosure, data modification, or deletion, severely impacting the confidentiality, integrity, and availability of the system's data.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should avoid exposing the vulnerable script to untrusted users and consider implementing web application firewall rules to detect and block SQL injection attempts targeting the affected parameters.
CVE-2026-70373: CWE-89 SQL Injection in Koha Community Koha
Description
Koha's reports/issues_stats.pl (the circulation statistics report) builds its calculation query in sub calculate by concatenating several user-controlled request parameters directly into the SQL string. The PeriodTypeSel, PeriodDaySel, and PeriodMonthSel parameters are interpolated raw into single-quoted equality and function-comparison fragments, and the Filter slots plus the Line and Column identifiers are likewise interpolated with no whitelist and no placeholder binding.
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
The vulnerability in Koha's reports/issues_stats.pl script arises from unsafe construction of SQL queries in the subroutine 'calculate'. User input parameters such as PeriodTypeSel, PeriodDaySel, PeriodMonthSel, Filter slots, and Line and Column identifiers are directly interpolated into SQL query strings without any whitelist validation or use of parameterized queries. This improper handling leads to SQL Injection (CWE-89), enabling attackers to manipulate the SQL query logic. The CVSS 3.1 score is 8.8 (high), reflecting network attack vector, low attack complexity, low privileges required, no user interaction, and high impact on confidentiality, integrity, and availability.
Potential Impact
Successful exploitation could allow an attacker with low privileges to execute arbitrary SQL commands on the Koha database. This can lead to unauthorized data disclosure, data modification, or deletion, severely impacting the confidentiality, integrity, and availability of the system's data.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should avoid exposing the vulnerable script to untrusted users and consider implementing web application firewall rules to detect and block SQL injection attempts targeting the affected parameters.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- TuranSec
- Date Reserved
- 2026-08-04T07:13:07.993Z
- State
- PUBLISHED
Threat ID: 6a71ec42bf8831d539e19d39
Added to database: 08/04/2026, 13:42:26 UTC
Last enriched: 08/11/2026, 17:05:45 UTC
Last updated: 09/18/2026, 10:01:33 UTC
Views: 56
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.