Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain staff credentials with reports permission
-
DeliveryAccess bor_issues_top.pl via staff client
-
ExploitCraft SQL payload in Criteria or Filter parameter
-
ExecutionBypass identifier-context sanitization in ORDER BY or GROUP BY
-
PersistExecute UNION-based extraction against borrowers, api_keys, or sessions tables
-
ImpactExfiltrate password hashes and patron PII
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 authenticated session as a Koha staff user with the |
| Impact | The CVSS 8.8 score (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H) reflects a network-reachable attack with low access complexity, requiring only an authenticated low-privilege session - specifically a staff account with the reports module permission, which is a standard operational role in library deployments. This is a credible threat model for institutions where staff turnover is high or where report access is broadly granted. However, SSVC moderates the urgency: exploitation status is rated 'none' (no observed exploitation), the attack is not automatable (ruling out mass scanning campaigns), and technical impact is rated 'partial' - possibly reflecting that the Koha database user's privileges may vary by deployment, limiting write and availability impacts in practice. The I:H and A:H components of the provided CVSS vector are plausible for full SQL injection but are not explicitly confirmed by the description, which focuses on read access to sensitive tables. No EPSS score was provided in the available intelligence. No KEV listing exists. Real-world risk is elevated for institutions with externally accessible Koha staff clients and permissively assigned report roles; meaningfully lower where staff client access is restricted to internal networks and role assignment is tightly controlled. |
| Exploit ScenarioDerived | A library staff member with the Koha reports module permission - or an external attacker who has compromised such an account - sends a crafted HTTP POST to the |
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 staff-facing report endpoint reports/bor_issues_top.pl enables any authenticated staff member holding the reports module permission to extract arbitrary data from the underlying database, including patron password hashes, two-factor authentication secrets, personal identifying information, API keys, and active session tokens. The vulnerability spans four concurrent release branches (24.11.x, 25.05.x, 25.11.x, 26.05.x) and is addressable by upgrading to patched releases issued by the Koha community. No public exploit code or active exploitation has been identified at time of analysis; SSVC rates exploitation as 'none' and the attack as non-automatable.
Earlier versions of this analysis (1)
SQL injection in Koha's Top Checkouts report endpoint (reports/bor_issues_top.pl) exposes the full Koha database to read-access by any authenticated staff user holding the reports module permission. Three distinct parameters - Criteria, Filter values, and Limit - are concatenated verbatim into dynamically constructed SQL, enabling exfiltration of the borrowers table (patron password hashes, two-factor secrets, personal data), api_keys, and active sessions. No public exploit code or CISA KEV listing exists at time of analysis; exploitation is constrained to authenticated staff with specific module permissions, but the low attack complexity and high data sensitivity make this a meaningful insider-threat and compromised-account risk for library operators.
RemediationAI
Upgrade to a patched release for your active branch: Koha 25.05.12, 25.11.06, 26.05.01, or 24.11.17 as appropriate. 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/; consult the Koha community bugzilla at https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42369 for branch-specific patch details. If immediate patching is not feasible, restrict the reports module permission to the minimum number of staff accounts operationally required - this reduces the pool of potential attackers from all staff to only those who legitimately need reporting access. Placing the Koha staff client behind a VPN or IP allowlist prevents exploitation from outside the institution network, at the cost of remote staff access. Database-level query audit logging (if supported by your MySQL/MariaDB configuration) can detect anomalous injection patterns post-hoc but does not prevent exploitation. WAF rules targeting SQL metacharacters in the Criteria, Filter, and Limit parameters of bor_issues_top.pl are an unreliable compensating control due to identifier-context injection in ORDER BY/GROUP BY clauses.
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 widely-adopted open-source Integrated Library System (ILS) written in Perl, used by public, academic, and special libraries worldwide for catalog and circulation management. The vulnerable component is the Perl CGI script reports/bor_issues_top.pl, which generates a staff-facing borrower checkout report. The CWE-89 (SQL Injection) root cause lies in a calculate subroutine that builds dynamic SQL through direct string concatenation rather than parameterized queries. Three distinct injection surfaces exist: (1) the Criteria parameter, which receives only a table-name prefix normalization but is otherwise placed verbatim into SQL identifier positions including SELECT DISTINCTROW, GROUP BY, and ORDER BY clauses - identifier-context injection that is notably resistant to traditional quoting defenses; (2) Filter values, which are concatenated raw into single-quoted LIKE, BETWEEN, and comparison fragments; and (3) the Limit parameter, appended directly to a LIMIT clause. The Koha database user typically has broad access to the full schema, making the reachable data surface expansive. Affected CPE data covers the 24.11, 25.05, 25.11, and 26.05 release trains.
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
Web-accessible staff endpoint (AV:N, AC:L); reports module permission required (PR:L); SQL injection scope enables full DB read and plausible write/delete impact (C:H/I:H/A:H), no scope change.
Primary rating from Vendor (309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c).
CVSS VectorVendor: 309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c
Lifecycle Timeline
5DescriptionCVE.org
Koha's reports/bor_issues_top.pl builds dynamic SQL in sub calculate by concatenating several user-controlled request parameters directly into the query string. The Criteria parameter is only normalized by a table-name prefix and is never whitelisted, landing verbatim in identifier positions (SELECT DISTINCTROW, GROUP BY, ORDER BY); Filter values are concatenated raw into single-quoted LIKE, BETWEEN, and comparison fragments, and the Limit parameter is appended raw to a LIMIT clause. 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 system has a critical data exposure vulnerability that allows authorized staff to extract complete patron records, including passwords and authentication credentials, compromising patron privacy and organizational security. Organizations using Koha face immediate risk of insider-driven data breaches that could expose hundreds of thousands of patron records. Remediation requires urgent application of vendor security patches across all affected installation versions.
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-52674
GHSA-xxxq-3ww7-6p82
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB