Skip to main content

Koha CVE-2026-70373

| EUVDEUVD-2026-52675 HIGH
SQL Injection (CWE-89)
2026-08-04 309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c GHSA-wr9w-fmv5-77gm
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 or compromise Koha staff account with reports module permission
  2. Delivery
    Authenticate to Koha staff interface
  3. Exploit
    Submit crafted HTTP request to reports/issues_stats.pl with SQL UNION payload in PeriodTypeSel or Line parameter
  4. Execution
    Injected query executes against Koha database user context
  5. Impact
    Extract 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.

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

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

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

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

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.3 HIGH

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.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:L/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:44 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/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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.3%
Top 83% exploitable
Prevalence
Medium
widely deployed open-source ILS across global public and academic libraries
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