CVE-2026-72609

Koha Community Koha - SQL Injection via ORDER BY Direction in acqui/parcels.pl

Published Aug 11, 2026 CVSS 3.1 · 7.1 High EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

Koha Community’s acquisition module contains an SQL injection flaw that permits authenticated staff with the acquisition => order_receive permission to supply an unvalidated ORDER BY direction token via the orderby request parameter. The backend function concatenates the supplied direction directly into the SQL query, enabling an attacker to embed time‑based payloads that reveal arbitrary database content. An attacker can therefore retrieve sensitive patron personally identifiable information, staff bcrypt password hashes, and two‑factor authentication secrets.

Affected Systems

Koha Community releases up through 24.11.17, 25.05.12, 25.11.06, and 26.05.01 are affected. The vulnerability resides in the acqui/parcels.pl script of the Koha acquisition application.

Risk and Exploitability

The CVSS score of 7.1 denotes a high severity vulnerability. While the EPSS score is not available, the flaw requires no special software privileges beyond standard staff authentication, which is often granted in library environments, making exploitation relatively straightforward. The attack vector is web‑based and possible to carry out from any network location that can reach the Koha instance, although the attacker must first obtain valid staff credentials. The vulnerability is not listed in the CISA KEV catalog, but the potential for credential theft and exposure of sensitive data warrants prompt attention.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Koha to a release that includes the fix for versions 24.11.17, 25.05.12, 25.11.06, and 26.05.01 or later.
  • Restrict the acquisition => order_receive permission to the minimal set of trusted staff or disable that permission entirely if the feature is unnecessary.
  • Configure the web application or database layer to enforce strict validation of the ORDER BY direction parameter, or disable the parameter in the acquisition module if possible.

Generated by OpenCVE AI on August 11, 2026 at 16:36 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Koha-community
Koha-community koha
Vendors & Products Koha-community
Koha-community koha
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description 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.
Title Koha Community Koha - SQL Injection via ORDER BY Direction in acqui/parcels.pl
Weaknesses CWE-89
References
Metrics cvssV3_1

{'score': 7.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:L'}

Weaknesses
  • CWE-89

    Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Sources

Status
PUBLISHED
Assigner
TuranSec
Published
Updated
Aug 11, 2026, 12:06 PM
Reserved
Aug 10, 2026, 10:33 AM
Status
Awaiting Analysis
Published
Aug 11, 2026, 12:17 PM
Modified
Oct 24, 2026, 3:10 PM