Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain staff credentials with reports permission
-
DeliveryNavigate to acquisitions statistics report
-
ExploitCraft malicious Filter parameter with UNION SQL payload
-
ExecutionSubmit request to reports/acquisitions_stats.pl
-
PersistInjected SQL executes without parameterization
-
ImpactExfiltrate borrower hashes, API keys, and session tokens
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 an active, authenticated Koha staff account that has been granted the 'reports' module permission. This is not a default state for all staff - the reports permission must be explicitly assigned by a superlibrarian. Exploitation cannot occur anonymously or from the public patron-facing interface. The attack path is limited to the internal staff interface (intranet). Factors limiting exploitation: the attacker must already have a valid staff credential and the reports permission assignment; this rules out unauthenticated external attackers. Factors that expand risk: many library deployments grant reports access broadly to branch managers and cataloguers, increasing the insider-threat surface. The attack is not automatable per SSVC, meaning mass-exploitation against multiple libraries simultaneously is not the realistic threat model - targeted insider misuse or post-compromise data exfiltration is. |
| Impact | The CVSS 3.1 score of 8.8 (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H) is directionally correct: the attack is network-reachable, requires no complexity, and the low-privilege requirement reflects the need for a staff account with reports permission rather than anonymous access. However, the SSVC assessment rates technical impact as 'partial' despite the CVSS signaling full C/I/A impact - this is a meaningful discrepancy. The SSVC 'partial' rating likely reflects that exploitation is scoped to a specific authenticated user class rather than being fully unauthenticated. The I:H and A:H metrics in the CVSS are theoretically justified by unrestricted SQL execution but the described attack pattern focuses on data exfiltration, making C:H the operationally dominant concern. SSVC 'Automatable: no' is consistent with the PR:L requirement. No EPSS data was provided. No KEV listing and no public POC further reduce urgency for most deployments, but any institution holding patron PII should treat this as high priority given the sensitivity of borrower records and the insider-threat attack surface. |
| Exploit ScenarioDerived | An insider staff member - or an attacker who has compromised any staff account with the reports module permission - navigates to the acquisitions statistics report, intercepts the Filter parameter submitted to reports/acquisitions_stats.pl, and appends a UNION-based SQL payload targeting the borrowers table. The injected query returns plaintext password hashes, TOTP secrets, and email addresses for all registered library patrons, which can then be used for credential-stuffing attacks or identity theft. No public proof-of-concept exists at time of analysis, but the vulnerability class is well-understood and exploitation requires no specialized tooling beyond standard SQL injection techniques. |
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 acquisitions statistics module exposes sensitive library patron data to authenticated staff. The reports/acquisitions_stats.pl endpoint interpolates nine user-controlled Filter parameters directly into SQL WHERE fragments without prepared-statement binding, giving any staff account holding the reports permission arbitrary read access to the Koha database - including borrower password hashes, two-factor secrets, API keys, and active session tokens. No public exploit or active exploitation has been identified, but the attack is straightforward for any insider or compromised staff account.
Earlier versions of this analysis (1)
SQL injection in Koha's acquisitions statistics report module exposes full database read access to authenticated staff users holding the reports permission. The flaw, located in reports/acquisitions_stats.pl within the calculate subroutine, affects nine Filter request parameters that are concatenated directly into SQL WHERE clauses without bound parameters, enabling arbitrary SELECT queries against all tables reachable by the Koha database user - including borrowers (patron password hashes, two-factor secrets, PII), api_keys, sessions, and borrower_password_recovery. No public exploit code has been identified at time of analysis, and patched releases are available across all supported Koha branches.
RemediationAI
Upgrade to Koha 24.11.17, 25.05.12, 25.11.06, or 26.05.01 - whichever matches the installed release series. The 25.05.12 tarball is available at https://download.koha-community.org/koha-25.05.12.tar.gz and the release announcement at https://koha-community.org/koha-25-05-12-released/. If immediate patching is not feasible, restrict the reports module permission to only those staff accounts that operationally require acquisitions reporting - this reduces the exploitable population. Additionally, consider restricting the Koha database user's privileges to SELECT-only on sensitive tables (borrowers, api_keys, sessions, borrower_password_recovery) where the application permits; note that this may break other Koha functionality if the same DB user is used for writes, so test carefully in staging. WAF rules blocking SQL metacharacters in Filter parameters can provide a partial signal but are not a reliable control given the variety of injection vectors across nine parameters.
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 a Perl-based open-source integrated library system (ILS). The vulnerability exists in the calculate subroutine of reports/acquisitions_stats.pl, which constructs dynamic SQL queries for acquisitions reporting. Nine HTTP Filter request parameters - covering fields across aqbasket, aqorders, aqbooksellers, items, biblioitems, and aqbudgets tables - are string-interpolated directly into WHERE clause fragments before statement preparation, violating the parameterized-query contract that DBI provides. CWE-89 (Improper Neutralization of Special Elements used in an SQL Command) is the root cause. Because the Koha database user typically has broad access to the schema, successful injection can reach tables outside the reporting context, including borrowers (which stores bcrypt password hashes and TOTP secrets), borrower_password_recovery, api_keys, and sessions.
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 staff interface, low complexity injection; PR:L reflects mandatory reports-permission staff account; C:H/I:H/A:H justified by unrestricted SQL execution against the full Koha schema.
Primary rating from Vendor (309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c).
CVSS VectorVendor: 309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c
Lifecycle Timeline
5DescriptionCVE.org
Koha's reports/acquisitions_stats.pl builds its per-cell statistics query in sub calculate by interpolating the user-controlled Filter request parameters directly into WHERE fragments covering aqbasket.closedate, aqorders.datereceived, aqbooksellers.name, items.homebranch, items.ccode, biblioitems.itemtype, aqbudgets.budget_code, aqorders.sort1, and aqorders.sort2. The statement is prepared and executed 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), borrower_password_recovery, api_keys, and sessions.
Executive ViewAI
Koha library management systems running vulnerable versions expose patron privacy data-including passwords, authentication secrets, and API credentials-to any staff member with reports access due to a SQL injection flaw in the acquisitions statistics module. This insider-exploitable vulnerability threatens patron trust and creates compliance exposure for libraries managing sensitive borrower information.
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-52671
GHSA-3c33-363c-r2wh
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB