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
3DescriptionCVE.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.
AnalysisAI
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.
Technical ContextAI
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.
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.
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
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.
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 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
Same weakness CWE-89 – SQL Injection
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-56130
GHSA-f66q-gpm5-hp2p