Koha Community Koha - SQL Injection via ORDER BY Direction in acqui/parcels.pl
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 24.11.18, 25.05.13, 25.11.07 and 1 more.
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
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Koha Community | <24.11.18, >=25.05.0 <25.05.13, >=25.11.0 <25.11.07, >=26.05.0 <26.05.02 | 24.11.18, 25.05.13, 25.11.07, 26.05.02 |
Timeline
Every event on this vulnerability
Embed
A live severity badge for an advisory, README or ticket