Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain or compromise Koha staff account with reports module permission
-
DeliveryAuthenticate to Koha staff interface
-
ExploitSubmit crafted HTTP request to reports/issues_stats.pl with SQL UNION payload in PeriodTypeSel or Line parameter
-
ExecutionInjected query executes against Koha database user context
-
ImpactExtract borrowers table (password hashes, TOTP secrets, PII), api_keys, and session tokens from report output
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 account (confirmed by CVSS PR:L) that has been explicitly granted the 'reports' module permission - this is not a default permission for all staff roles and represents a deliberate administrative assignment. The attacker must be able to send authenticated HTTP POST or GET requests to the reports/issues_stats.pl endpoint, which is accessible only through the Koha staff interface (intranet), not the public OPAC. No special server configuration, non-default feature flag, or unusual deployment mode is required beyond a standard Koha installation. Key limiting factors constraining exploitation: (1) requires a staff-level authenticated session, ruling out unauthenticated or patron-level attackers; (2) the reports module permission must be explicitly assigned, limiting exposure to accounts that have been deliberately provisioned for reporting functions; (3) SSVC rates this as not automatable, indicating the attack requires deliberate, targeted interaction rather than scripted mass scanning. |
| Impact | The CVSS 8.8 score (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H) accurately captures network reachability and low exploitation complexity for a credentialed attacker, but must be contextualized against several moderating signals. SSVC rates exploitation as none, automatable as no, and technical impact as partial - partially conflicting with CVSS C:H/I:H/A:H. The description explicitly confirms read access to sensitive tables but does not independently confirm write or availability impact; these are plausible given the injection class but must be treated as inferred rather than confirmed. The PR:L requirement is a meaningful gate: the reports module permission is not granted to all Koha staff by default and represents a deliberate administrative assignment, restricting the realistic attacker pool to insider threats, compromised staff accounts, or privilege-escalation chaining. No exploitation has been confirmed by CISA KEV and no public exploit code is known. EPSS data was not provided in the source intelligence. Overall, this is a real and serious vulnerability for affected libraries, but the authentication prerequisite and SSVC automatable:no rating indicate mass automated exploitation is unlikely; targeted insider or post-compromise exploitation is the primary threat model. |
| Exploit ScenarioDerived | An attacker with a compromised or insider Koha staff account that holds the reports module permission accesses the circulation statistics report via the staff interface and submits a crafted HTTP request where the Line or PeriodTypeSel parameter contains a SQL UNION SELECT payload. The injected query executes in the context of the Koha database user and returns password hashes, TOTP secrets, and patron personal data from the borrowers table directly in the report output. No public exploit code has been identified at time of analysis, but the injection points are described in sufficient detail that exploitation is straightforward for any attacker familiar with 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 circulation statistics report (reports/issues_stats.pl) exposes the entire Koha database to authenticated staff members holding the reports module permission. The vulnerability arises from direct string concatenation of at least six user-controlled HTTP parameters - PeriodTypeSel, PeriodDaySel, PeriodMonthSel, multiple Filter slots, and the Line and Column report-dimension identifiers - into raw SQL with no parameterized binding or whitelist validation, enabling extraction of the borrowers table (password hashes, two-factor TOTP secrets, personal data), api_keys, and active session tokens. No public exploit has been identified at time of analysis and SSVC rates exploitation as none, but vendor-released patches are available across all four active Koha release branches.
Earlier versions of this analysis (1)
SQL injection in Koha's circulation statistics report (reports/issues_stats.pl) allows an authenticated staff user holding the reports module permission to exfiltrate arbitrary data from the Koha database over the network. Multiple user-controlled HTTP parameters - including PeriodTypeSel, PeriodDaySel, PeriodMonthSel, Filter slots, and Line/Column grouping identifiers - are concatenated raw into the SQL query string with no parameterization or whitelist enforcement. Exploiting this read-only injection, an attacker can dump the borrowers table (patron password hashes, TOTP secrets, PII), api_keys, and sessions - data that can enable credential reuse, account takeover, and regulatory exposure. No public exploit has been identified at time of analysis; vendor-released patches are available across all active stable branches.
RemediationAI
Upgrade to the vendor-released fixed version for your branch: Koha 25.05.12 (release announcement at https://koha-community.org/koha-25-05-12-released/ and tarball at https://download.koha-community.org/koha-25.05.12.tar.gz), Koha 24.11.17, Koha 25.11.06, or Koha 26.05.01. Patched versions for the 24.11, 25.11, and 26.05 branches are stated in EUVD-2026-52675 but independently verified release announcements are not present in the provided references - consult https://koha-community.org for branch-specific release notes. If immediate upgrade is not feasible, restrict the reports module permission to the absolute minimum set of trusted staff accounts, as this permission is the sole exploitation gate and is not required by all staff roles; removing it from general staff eliminates the attack surface entirely at the cost of losing access to the reports module. Disabling or access-controlling the reports/issues_stats.pl endpoint at the web server layer is a more aggressive alternative that removes functionality but fully blocks exploitation. Network-layer WAF rules targeting SQL metacharacters in the named parameters provide only partial mitigation given the number of injectable parameters and should not substitute for patching.
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 deployed open-source Integrated Library System (ILS) written primarily in Perl and used by public, academic, and special libraries worldwide. The vulnerable endpoint is reports/issues_stats.pl, specifically the calculate subroutine responsible for constructing the circulation statistics query. Six distinct user-supplied HTTP request parameters are interpolated directly into single-quoted SQL equality and function-comparison fragments with no input sanitization, whitelist enforcement, or use of DBI placeholder binding - a textbook instance of CWE-89 (Improper Neutralization of Special Elements used in an SQL Command) stemming from the legacy Perl pattern of query construction via string concatenation. Because the Koha application database user holds broad schema privileges, a successful injection can reach any table the account can query, including the highly sensitive borrowers, api_keys, and sessions tables. Affected version ranges are confirmed by ENISA EUVD-2026-52675 and the Koha community Bugzilla report at bug 42735.
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
PR:L reflects required authenticated staff account with reports permission; A:L as description confirms read impact, while write and DoS impact are plausible for SQL injection but not explicitly described.
Primary rating from Vendor (309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c).
CVSS VectorVendor: 309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c
Lifecycle Timeline
5DescriptionCVE.org
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. 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
A SQL injection vulnerability in Koha's circulation statistics module (CVE-2026-70373, CVSS 8.8) enables staff members with reports access to extract the entire Koha database, including patron passwords, two-factor authentication secrets, personal data, API keys, and active session tokens-directly exposing patron privacy and internal system security. No public exploit has been identified at time of analysis, but libraries face immediate risk to data protection compliance obligations. Vendor patches are available for all supported Koha versions and must be deployed urgently.
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-52675
GHSA-wr9w-fmv5-77gm
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB