Koha Community Koha
Koha Community Koha - SQL Injection via ORDER BY Direction in acqui/parcels.pl
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 24.11.18
- >= 25.05.0, < 25.05.13
- >= 25.11.0, < 25.11.07
- >= 26.05.0, < 26.05.02
Fixed in 24.11.18, 25.05.13, 25.11.07, 26.05.02
Mitigation
Upgrade Koha to 24.11.18 or 25.05.13 or 25.11.07 or 26.05.02 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.