Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain staff credentials with order_receive permission
-
DeliveryAuthenticate to Koha web interface
-
ExploitSend crafted orderby payload to acqui/parcels.pl
-
ExecutionInject SQL time-delay into ORDER BY direction token
-
PersistBlind-extract database rows via response timing
-
ImpactRetrieve password hashes and TOTP secrets
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 the attacker to be an authenticated Koha staff user with the acquisition => order_receive permission explicitly granted - this is a named, non-default Koha permission within the acquisitions module and must be deliberately assigned by a superlibrarian or administrator. No special network position is required; the vulnerable endpoint is reached over standard HTTP/HTTPS. Exploitation is exclusively blind (time-based) in production - direct UNION-based data retrieval is not available, meaning extraction is slow, iterative, and detectable via database slow-query logs or anomalous response-time monitoring. The attack is constrained to database READ operations only; no INSERT, UPDATE, or DELETE injection capability is described. External attackers without pre-existing staff credentials cannot reach this vulnerability directly - initial account compromise or insider threat is a prerequisite. |
| Impact | The CVSS 3.1 score of 7.1 (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:L) accurately captures the network reachability and high confidentiality impact but must be interpreted alongside the specific privilege requirement. Exploitation is gated behind two conditions: valid staff authentication and possession of the acquisition => order_receive permission, which is not granted to all staff by default. This narrows the real-world attacker pool significantly compared to an unauthenticated network flaw. No EPSS score was provided in the input data, and the vulnerability is not listed in CISA KEV, so widespread opportunistic exploitation has not been confirmed. The A:L metric reflects that iterative time-based injection queries (e.g., SLEEP) can impose measurable database load. The absence of write impact (I:N) limits direct data destruction, but extraction of bcrypt hashes and TOTP secrets enables secondary account-takeover attacks with potentially broader scope than a single SQLi read. This is a genuine medium-to-high operational priority for library administrators, not a theoretical risk, given that credential exfiltration can result in full platform compromise. |
| Exploit ScenarioDerived | A Koha staff member with the acquisition => order_receive permission sends a crafted HTTP request to acqui/parcels.pl with an orderby parameter such as column_name ASC,(SELECT SLEEP(5)) - injecting a time-delay payload into the unvalidated direction token. The attacker iterates character-by-character over sensitive tables, measuring response latency to blindly extract patron email addresses, staff bcrypt password hashes, and stored TOTP secrets, then uses the recovered credentials to escalate access or pivot to other systems. No public proof-of-concept code has been identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 11, 2026
SQL injection in Koha's acquisition module enables authenticated staff to blindly extract the entire database - including patron PII, staff bcrypt password hashes, and two-factor authentication secrets - via a crafted ORDER BY direction token in the acqui/parcels.pl endpoint. All active Koha release branches are affected through versions 24.11.17, 25.05.12, 25.11.06, and 26.05.01, meaning any library running a current release is exposed. No public exploit has been identified at time of analysis, and the vulnerability is not listed in CISA KEV, but successful exploitation yields credentials that could cascade into full staff account takeover.
RemediationAI
Monitor the Koha community bug report at https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42749 and the release announcements at https://koha-community.org/ for a patched version; no fixed release has been confirmed from available data. As a compensating control, immediately audit and restrict the acquisition => order_receive permission to the minimum number of trusted staff accounts operationally required - reducing this grants fewer entry points without affecting patrons or non-acquisition staff. Enabling web application firewall rules that detect time-based SQL injection payloads (SLEEP, WAITFOR DELAY, BENCHMARK) in query parameters can provide detection and blocking capability with the trade-off of potential false positives on legitimate ORDER BY requests. Network-level controls that restrict database server egress to only necessary application hosts limit the utility of extracted data. Forced password rotation for all staff accounts with the affected permission should be considered if exploitation cannot be ruled out, given that bcrypt hashes and TOTP secrets may already have been targeted.
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 an open-source integrated library system (ILS) built in Perl. The vulnerable endpoint is acqui/parcels.pl, which handles acquisition parcel and invoice management. The orderby HTTP parameter is passed directly to the C4::Acquisition::GetInvoices Perl function. While that function applies an allow-list to sanitize the column name portion of the ORDER BY clause - a partial and incomplete control - it concatenates the sort direction token (expected to be ASC or DESC) into the SQL string without any validation or parameterization. An attacker can inject arbitrary SQL into this direction slot, yielding a time-based blind SQL injection (CWE-89: Improper Neutralization of Special Elements used in an SQL Command). Because the database stores patron personally identifiable information, staff bcrypt password hashes, and TOTP two-factor secrets in accessible tables, the read-only exploit surface translates to severe downstream credential exposure.
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:N/A:L
Network-accessible endpoint; PR:L reflects required staff authentication with specific permission; C:H for full database read; I:N read-only; A:L for time-based query load.
Primary rating from Vendor (TuranSec).
CVSS VectorVendor: TuranSec
Lifecycle Timeline
2DescriptionCVE.org
An SQL injection vulnerability in Koha through 24.11.17, 25.05.12, 25.11.06, and 26.05.01 allows authenticated staff with the acquisition => order_receive permission to read arbitrary database contents via the orderby request parameter in acqui/parcels.pl. The parameter is passed to C4::Acquisition::GetInvoices, which allow-lists the column name but concatenates the direction token raw into the SQL ORDER BY clause without validation. Exploitation is blind (time-based) in production and allows extraction of patron PII, staff bcrypt password hashes, and two-factor secrets.
Executive ViewAI
Koha library management systems versions 24.11.17 through 26.05.01 contain a database vulnerability that could enable staff members with acquisition module access to extract patron and staff credentials, exposing all libraries running current Koha releases to account takeover risk and data breach liability. No public exploit has been identified at time of analysis, but the absence of a vendor patch means organizations must implement compensating controls immediately. This represents a material security and compliance risk for any library affected.
No vendor-released patch identified at time of analysis. Restrict acquisition module access to essential staff only via role-based access control. Require multi-factor authentication for all staff accessing the acqui/parcels.pl endpoint. Implement database-level query logging for the acquisitions schema with alerting on bulk SELECT operations. Network-segregate the acquisition module from internet access where possible. Conduct weekly audits of staff account activity and establish process to revoke accounts immediately upon separation.
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
SQL injection in Koha's guided report builder (`reports/guided_reports.pl`) allows any authenticated staff member holdin
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
EUVD-2026-56130
GHSA-f66q-gpm5-hp2p
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB