Skip to main content

Koha CVE-2026-70372

| EUVDEUVD-2026-52674 HIGH
SQL Injection (CWE-89)
2026-08-04 309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c GHSA-xxxq-3ww7-6p82
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 permission
  2. Delivery
    Access bor_issues_top.pl via staff client
  3. Exploit
    Craft SQL payload in Criteria or Filter parameter
  4. Execution
    Bypass identifier-context sanitization in ORDER BY or GROUP BY
  5. Persist
    Execute UNION-based extraction against borrowers, api_keys, or sessions tables
  6. Impact
    Exfiltrate 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 reports module permission explicitly granted within the Koha permission system - this permission is not held by all staff accounts by default and must be deliberately assigned by an administrator. The vulnerable endpoint reports/bor_issues_top.pl is part of the staff client interface and is not accessible through the OPAC (patron-facing public interface), limiting the attack surface to internal or externally exposed staff portals. SSVC rates the attack as non-automatable, ruling out opportunistic mass exploitation via scanning tools. The Koha database user's actual privilege set constrains the reachable impact: read-focused deployments with a least-privilege DB account limit write/availability impact despite the I:H/A:H CVSS components. No special non-default feature flag or configuration mode is required beyond holding the reports permission.

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 bor_issues_top.pl endpoint with a SQL payload embedded in the Criteria or Filter parameter, such as injecting a UNION SELECT into the ORDER BY clause to enumerate and extract rows from the borrowers table. Because the injection lands in an SQL identifier context where quoting defenses are ineffective, the attacker can systematically retrieve password hashes, two-factor secrets, and patron PII in successive requests. No public POC has been identified at time of analysis, but the injection surface is clearly described and exploitable by an attacker with intermediate SQL injection knowledge.

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 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)
v1 Aug 04, 2026 - 18:28 CVSS 6.5

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

Koha 25.05.00 <25.05.12
Koha 25.11.00 <25.11.06
Koha 26.05.00 <26.05.01
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-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

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

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.

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:46 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/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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.3%
Top 83% exploitable
Prevalence
Low
open-source ILS deployed primarily in library sector worldwide
Data Quality
6 sources
Confidence: High

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