Skip to main content

Koha EUVDEUVD-2026-52671

| CVE-2026-70369 HIGH
SQL Injection (CWE-89)
2026-08-04 309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c GHSA-3c33-363c-r2wh
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
    Navigate to acquisitions statistics report
  3. Exploit
    Craft malicious Filter parameter with UNION SQL payload
  4. Execution
    Submit request to reports/acquisitions_stats.pl
  5. Persist
    Injected SQL executes without parameterization
  6. Impact
    Exfiltrate 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.

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

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

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

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 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

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

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.

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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.3%
Top 83% exploitable
Prevalence
Medium
dominant open-source ILS, used by thousands of libraries globally
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