Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as low-privilege Koha staff
-
DeliveryNavigate to guided report builder
-
ExploitCraft malicious order_by CGI parameter
-
ExecutionTrigger time-based blind SQL injection
-
PersistEnumerate database schema
-
ImpactExtract patron PII and staff credential hashes
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 with either the |
| Impact | The CVSS 3.1 score of 8.8 with vector AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H is well-calibrated to the actual risk. The key risk-limiting factor is PR:L: exploitation is gated behind a valid staff account with |
| Exploit ScenarioDerived | A library branch manager with the |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 05, 2026
SQL injection in Koha's guided report builder (reports/guided_reports.pl) allows any authenticated staff member holding the low-privilege create_reports or execute_reports permission to perform time-based blind SQL injection against the Koha database, which stores patron PII, borrowing history, and staff/LDAP credentials. The order_by and dynamically-named {order}_ovalue CGI parameters are concatenated verbatim into an ORDER BY clause by C4::Reports::Guided with no allowlist, escaping, or prepared-statement binding - a structural defect, since SQL placeholders cannot parameterize column names. No public exploit or CISA KEV listing has been identified at time of analysis, but the attack technique is well-understood and the affected permission is routinely granted to non-admin library staff.
RemediationAI
No vendor-released patch has been identified at time of analysis; monitor the Koha Community GitHub repository at https://github.com/Koha-Community/Koha for commits addressing the ORDER BY injection in reports/guided_reports.pl. The primary compensating control is to immediately audit and revoke the create_reports and execute_reports permissions from any staff account that does not have a strict operational need - this directly eliminates the attack surface for non-admin users, though it may disrupt legitimate reporting workflows. As a secondary control, place the Koha web interface behind a WAF with a ruleset targeting ORDER BY injection patterns (e.g., ModSecurity CRS rules for SQL injection); note that WAF bypass is feasible for skilled attackers and this is not a substitute for a code fix. Network-level restriction of the Koha staff interface to trusted internal IP ranges reduces exposure to external attackers but does not address insider threat. The correct permanent fix requires implementing an explicit server-side allowlist of permitted column names in reports/guided_reports.pl before any user-supplied order_by or _ovalue value is interpolated into the query string.
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 the world's most widely deployed open-source integrated library system (ILS), used by thousands of public, academic, and special libraries. The vulnerability is rooted in CWE-89 (SQL Injection) and exists because reports/guided_reports.pl calls $input->multi_param('order_by') and $input->param($order . '_ovalue') and concatenates both directly into the ORDER BY string, which C4::Reports::Guided then appends verbatim to the final query ($query .= $orderby). SQL prepared-statement placeholders cannot bind column names or sort directions, so the only safe approach is an explicit server-side allowlist of permitted column identifiers - one that does not exist in this code path. The affected CPE is cpe:2.3:a:koha_community:koha:*:*:*:*:*:*:*:*, indicating all community releases are affected. The Koha database is a MySQL/MariaDB instance and supports time-based blind injection techniques (e.g., SLEEP(), BENCHMARK()), making credential and PII extraction feasible without triggering visible error messages.
Know when Koha gets its next vulnerability
- 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
Network-reachable web application requires only low-privilege staff authentication; full C/I/A reflects unrestricted database read/write via SQL injection with no scope change.
Primary rating from Vendor (TuranSec).
CVSS VectorVendor: TuranSec
DescriptionCVE.org
Koha's guided report builder (reports/guided_reports.pl) reads the order_by CGI parameter and, for each value, a dynamically-named {order}_ovalue parameter, and concatenates both directly into an SQL ORDER BY clause with no allowlist or validation: my @order_by = $input->multi_param('order_by'); foreach my $order (@order_by) { my $value = $input->param($order . "_ovalue"); $query_orderby = " ORDER BY $order $value"; }. The resulting string is appended verbatim to the final query in C4::Reports::Guided ($query .= $orderby;) with no escaping. Since ORDER BY columns cannot be bound via prepared-statement placeholders, this requires an explicit allowlist, which does not exist. Any staff account with the low-privilege create_reports or execute_reports permission (commonly granted to non-admin library staff) can perform time-based blind SQL injection against the Koha database, which stores patron PII and staff/LDAP credentials.
Executive ViewAI
Koha library management system contains a SQL injection vulnerability in its report builder that allows library staff to access patron personally identifiable information, borrowing history, and system credentials. Staff holding routine report-generation permissions can exploit this defect; no public exploit identified at time of analysis, but the attack technique is well-understood. This poses risks to patron privacy and the integrity of credentials used by staff and identity systems.
No vendor-released patch identified at time of analysis. Restrict access to the guided report builder to administrative accounts only; enable comprehensive database audit logging to detect unauthorized query attempts; implement row-level database access controls to minimize patron record exposure in case of exploitation; consider disabling the guided report builder feature entirely if your library can operate without this functionality.
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.
Cross Site Scripting vulnerability in Koha ILS 23.05 and before allows a remote attacker to execute arbitrary code via t
KOHA Library System version 16.11.x (up until 16.11.13) and 17.05.x (up until 17.05.05) contains a Cross Site Request Fo
CSV Injection vulnerability in '/members/moremember.pl' and '/admin/aqbudgets.pl' endpoints in Koha Library Management S
An issue in Koha ILS 23.05 and before allows a remote attacker to execute arbitrary code via a crafted script to the for
KOHA Library System version 16.11.x (up until 16.11.13) and 17.05.x (up until 17.05.05) contains a Cross Site Scripting
Koha versions 25.11 and earlier contain a stored cross-site scripting vulnerability in the News function that allows aut
A vulnerability was found in KOHA up to 23.05.03. Rated medium severity (CVSS 5.4), this vulnerability is remotely explo
OS command injection in the Koha integrated library system lets an authenticated staff account holding the tools => sche
Authenticated remote code execution in Koha lets anyone who can reach the affected web service on TCP port 8081 feed a c
Cross-site scripting (XSS) vulnerability in opac-addbybiblionumber.pl in Koha 3.14.x before 3.14.16, 3.16.x before 3.16.
SQL injection in the Koha library management system's staff interface allows authenticated users to manipulate the displ
Multiple cross-site scripting (XSS) vulnerabilities in the Staff client in Koha before 3.16.6 and 3.18.x before 3.18.2 a
EUVD-2026-53373
GHSA-q274-qf66-4hq6
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB