Skip to main content

Koha EUVDEUVD-2026-52672

| CVE-2026-70370 HIGH
SQL Injection (CWE-89)
2026-08-04 309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c GHSA-8rx2-c3qm-2mc4
8.8
CVSS 3.1 · Vendor: 309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain staff credentials with reports module permission
  2. Delivery
    Authenticate to Koha web interface
  3. Exploit
    Craft Line parameter with UNION-based SQL injection payload
  4. Execution
    Submit crafted GET/POST to reports/catalogue_stats.pl
  5. Persist
    Injected SQL executes in GROUP BY/ORDER BY identifier position
  6. Impact
    Exfiltrate borrowers, api_keys, and sessions table data from HTTP response

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 authenticated Koha staff account with the 'reports' module permission explicitly granted - standard patron (borrower) accounts without this permission cannot access the vulnerable endpoint. The vulnerable endpoint reports/catalogue_stats.pl must be reachable over the network from the attacker's position. A secondary injection path via the cotedigits parameter is conditional: it activates only when the Line parameter is set to 'itemcallnumber' and cotedigits is a truthy value; this condition is additional exploitation surface rather than a prerequisite for the primary Line/Column injection. Exploitation scope is limited to tables reachable by the Koha database user (scope unchanged, S:U) - cross-schema access is not possible unless the Koha DB user has been granted unusually broad privileges. Deployments where no staff accounts hold reports permission, or where the endpoint is blocked at the network perimeter, are not practically exposed.

Impact

The CVSS 8.8 score with vector AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H reflects a network-reachable SQL injection with low-privilege authentication - a genuine real-world risk for any Koha instance where staff accounts can be compromised or abused. However, the SSVC assessment designates Technical Impact as 'partial', which conflicts with CVSS C:H/I:H/A:H; this discrepancy is unresolved in the available data and may reflect SSVC's recognition that exploitation is bounded to the Koha database user's scope (S:U, no lateral movement). SSVC also rates Automatable as 'no', consistent with the requirement for an active staff session bearing the reports module permission, which meaningfully limits mass automated exploitation. SSVC Exploitation is 'none' - no confirmed in-the-wild activity, no KEV listing, and no POC are present in the input data. Despite the high CVSS, the effective priority is moderated by the authentication barrier: a threat actor must hold or compromise a staff credential with reports access. The data reachable upon successful exploitation - patron password hashes, two-factor secrets, API keys, and session tokens - makes post-exploitation impact severe for library patron privacy even if the attack itself is not trivially automatable.

Exploit ScenarioDerived

An attacker who has obtained a valid Koha staff account with the reports module permission - either through credential theft, phishing, or insider access - submits a crafted HTTP request to reports/catalogue_stats.pl with a UNION-based SQL injection payload in the Line parameter, which the calculate subroutine interpolates verbatim into a GROUP BY clause. The absence of whitelist validation allows the injected SQL to execute within the Koha database user's session, returning data from the borrowers table including password hashes and two-factor authentication secrets in the HTTP response. No public proof-of-concept code has been identified, but the injection mechanism is specifically described in the CVE and is straightforward to exploit for anyone familiar with SQL injection in Perl/DBI web applications.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv2 – Aug 05, 2026

SQL injection in Koha's reports/catalogue_stats.pl allows an authenticated staff user with the reports module permission to read any table reachable by the Koha database user, including borrowers (password hashes, two-factor secrets, personal data), api_keys, and sessions. Affected releases span all Koha branches prior to 24.11.17, 25.05.12, 25.11.06, and 26.05.01, with vendor-released fixes now available. No public exploit code or active exploitation (CISA KEV) has been identified at time of analysis; the SSVC framework rates exploitation status as none and automatable as no, reflecting the authenticated staff-account prerequisite.

Earlier versions of this analysis (1)
v1 Aug 04, 2026 - 18:29 CVSS 6.5

SQL injection in Koha's catalogue statistics report module allows any authenticated staff user holding the reports module permission to read arbitrary database tables via the Koha database user's access, exposing patron password hashes, two-factor authentication secrets, API keys, and session tokens from the borrowers, api_keys, and sessions tables. The flaw affects all supported Koha release branches (24.11.x, 25.05.x, 25.11.x, and 26.05.x) and was addressed in patched releases confirmed by EUVD-2026-52672. No active exploitation has been confirmed - this vulnerability is not listed in CISA KEV and no public exploit code is identified at time of analysis.

RemediationAI

Upgrade to the first fixed release on your installed branch: Koha 24.11.17, 25.05.12, 25.11.06, or 26.05.01 as appropriate. Release packages are available at https://download.koha-community.org/koha-25.05.12.tar.gz and the community release announcement at https://koha-community.org/koha-25-05-12-released/; consult the Koha bug tracker entry at https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42363 for branch-specific patch details. If immediate patching is not feasible, audit and remove the reports module permission from all staff accounts that do not operationally require it - note this will disrupt legitimate reporting workflows for affected staff. As a secondary compensating control, restrict network access to reports/catalogue_stats.pl at the reverse proxy or web server layer for IP ranges outside trusted library networks, accepting reduced remote reporting capability. Database-level read restrictions on the borrowers, api_keys, and sessions tables for the Koha database user could limit blast radius but risk breaking core Koha functionality and require thorough regression testing before deployment.

Affected VersionsENISA

Koha 25.11.00 <25.11.06
Koha 26.05.00 <26.05.01
Koha 25.05.00 <25.05.12
Koha 0 <24.11.17

Affected Packages

euvd koha fix: 24.11.17, 25.05.12, 25.11.06, 26.05.01

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 in Perl, used by public, academic, and special libraries globally. The vulnerable code path is in reports/catalogue_stats.pl within the calculate subroutine, which constructs dynamic SQL by interpolating the HTTP request parameters Line and Column directly into SQL identifier positions - specifically SELECT DISTINCTROW, GROUP BY, and ORDER BY clauses - without whitelist validation against a permitted set of column names. A secondary injection surface activates when Line equals 'itemcallnumber' and the cotedigits parameter is truthy: cotedigits is concatenated raw as the numeric argument of a SQL LEFT() function call. CWE-89 (Improper Neutralization of Special Elements in an SQL Command) applies precisely: because user input lands at structural identifier positions rather than value positions, standard parameterized query binding would not alone prevent exploitation - the fix must also validate identifier values against a whitelist of permitted column names.

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

Vendor (309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c) PRIMARY 8.8 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 8.8 HIGH

PR:L confirmed by explicit staff-account-plus-reports-permission requirement; AV:N as a web endpoint; C/I/A:H because unrestricted SQL execution exposes full database read and potential write within the Koha DB user's scope.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c).

CVSS VectorVendor: 309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

5
Analysis Updated
Aug 05, 2026 - 13:50 vuln.today
v2 - CVSS changed
Severity Changed
Aug 05, 2026 - 13:37 NVD
MEDIUM HIGH
CVSS changed
Aug 05, 2026 - 13:37 NVD
6.5 (MEDIUM) 8.8 (HIGH)
Patch available
Aug 04, 2026 - 14:16 EUVD
CVE Published
Aug 04, 2026 - 13:18 cve.org
UNKNOWN (no severity yet)

DescriptionCVE.org

Koha's reports/catalogue_stats.pl builds dynamic SQL in sub calculate by interpolating the user-controlled Line and Column request parameters directly into identifier positions of the query (SELECT DISTINCTROW, GROUP BY, ORDER BY) with no whitelist validation. When Line contains itemcallnumber and the cotedigits parameter is truthy, cotedigits is additionally concatenated raw as the numeric argument of a LEFT() call. 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

Why It Matters

Koha library management systems prior to versions 24.11.17, 25.05.12, 25.11.06, and 26.05.01 contain a SQL injection vulnerability in the reports module that permits authenticated staff users to bypass access controls and access sensitive patron data including password hashes, two-factor authentication secrets, API keys, and personal information. No public exploit identified at time of analysis, though the vulnerability requires only staff-level authentication. This poses immediate risk to patron privacy, compliance obligations, and organizational credential security.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.3%
Top 83% exploitable
Prevalence
Low
library-sector niche ILS, limited general enterprise or cloud footprint
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy