Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain staff credentials with reports permission
-
DeliveryAuthenticate to Koha staff web interface
-
ExploitCraft HTTP request with SQL payload in Line or Column parameter
-
ExecutionInject UNION SELECT into dynamically built query
-
PersistExecute arbitrary SQL as Koha database user
-
ImpactExfiltrate borrowers, api_keys, and sessions tables
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Persistence The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires a valid Koha staff user account with the |
| Impact | The CVSS 8.8 score with AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H accurately reflects that the endpoint is network-accessible, requires no special attack complexity, and needs only a low-privilege staff credential. However, the SSVC framework rates exploitation as 'none' and technical impact as 'partial' - the partial rating conflicts materially with CVSS C:H/I:H/A:H; this discrepancy should be verified with the Koha security team, as the CVE description clearly describes access to password hashes and session tokens, which represents high confidentiality impact. The SSVC 'Automatable: no' rating is consistent with the authentication prerequisite: mass exploitation is not feasible without valid staff credentials, lowering the risk of opportunistic scanning. The vulnerability is not listed in CISA KEV and no POC is publicly known, further reducing immediate urgency. The realistic threat model is an insider or an attacker who has already compromised a staff account; in that context, this vulnerability dramatically escalates privilege by granting full database read access including credential material for all patrons and staff. |
| Exploit ScenarioDerived | A Koha staff member whose account holds the reports module permission - or an attacker who has phished or brute-forced such credentials - sends a crafted HTTP POST to |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Aug 05, 2026
SQL injection in Koha's reports module allows an authenticated staff user with the reports permission to execute arbitrary SQL against the Koha database via reports/issues_avg_stats.pl. The Line and Column HTTP parameters are inserted verbatim into SQL identifier positions (SELECT DISTINCTROW, GROUP BY, ORDER BY) and Filter slots are concatenated raw into comparison predicates without parameterized queries, exposing the full Koha database to read and potential write operations. Sensitive tables including borrowers (password hashes, two-factor secrets, patron PII), api_keys, and sessions are all reachable; no public exploit identified at time of analysis and CISA KEV does not list this CVE.
Earlier versions of this analysis (1)
SQL injection in Koha's reports/issues_avg_stats.pl exposes sensitive library database tables to authenticated staff users holding the reports module permission. The vulnerable calculate subroutine concatenates user-controlled Line, Column, and Filter HTTP parameters directly into SQL query strings - including in identifier positions and unparameterized comparison fragments - with no whitelist validation. Exploitation allows arbitrary SQL reads against any table accessible by the Koha database user, including borrowers (patron password hashes, two-factor secrets, PII), api_keys, and sessions. Patches are available across all affected release lines; no public exploit has been identified at time of analysis.
RemediationAI
Upgrade to a fixed release: Koha 24.11.17, 25.11.06, 25.05.12, or 26.05.01, as documented in the release announcement at https://koha-community.org/koha-25-05-12-released/ and the upstream bug report at https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42368. The 25.05.12 tarball is available at https://download.koha-community.org/koha-25.05.12.tar.gz. Where immediate patching is not possible, revoke the reports module permission from all staff accounts that do not operationally require it - this directly eliminates the exposed attack surface since the vulnerable endpoint enforces that permission check before execution; the trade-off is loss of ad-hoc reporting capability for those users. Additionally, restrict Koha's database user to the minimum required privileges and consider placing the Koha database on a network segment inaccessible from general staff workstations, reducing lateral data exfiltration paths. Audit reports/issues_avg_stats.pl access in web server logs for anomalous or encoded parameter values as an interim detection control.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Koha is an open-source integrated library system (ILS) written primarily in Perl. The vulnerability resides in the calculate subroutine within reports/issues_avg_stats.pl, which constructs SQL dynamically by string-concatenating user-supplied HTTP request parameters rather than using parameterized queries or prepared statements. The Line and Column parameters land directly in SQL identifier positions - SELECT DISTINCTROW, GROUP BY, and ORDER BY clauses - where standard quoting does not apply and whitelist validation is absent. Filter slot values are concatenated raw into single-quoted LIKE, BETWEEN, and equality predicates, making them susceptible to classic quote-escape injection. CWE-89 (Improper Neutralization of Special Elements used in an SQL Command) is the precise root cause: the Perl code treats user input as trusted query structure rather than as data to be bound. The Koha database user in a typical deployment holds broad DML privileges across all library tables, amplifying the blast radius of any successful injection.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Network-reachable web endpoint, low-privilege staff credential required (PR:L), no user interaction, full DB read confirmed and write plausible given typical Koha DB user grants.
Primary rating from Vendor (309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c).
CVSS VectorVendor: 309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c
Lifecycle Timeline
5DescriptionCVE.org
Koha's reports/issues_avg_stats.pl builds dynamic SQL in sub calculate by concatenating several user-controlled request parameters directly into the query string. The Line and Column parameters are not validated against any whitelist and land verbatim in identifier positions (SELECT DISTINCTROW, GROUP BY, ORDER BY), and each Filter slot is concatenated raw into single-quoted LIKE, BETWEEN, and comparison fragments 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), api_keys, and sessions.
Executive ViewAI
Koha library management systems are vulnerable to SQL injection in the reports module, allowing authenticated staff with reports permission to extract sensitive patron data including passwords, two-factor authentication secrets, and personally identifiable information. Libraries using affected Koha versions face direct exposure of patron privacy data and potential credential compromise, making this a critical priority for any organization subject to data protection regulations.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
EUVD-2026-52673
GHSA-24c7-g2cg-jw93
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB