CVE-2026-71288
JSON

8.8high

Koha SQL Injection via order_by and {order}_ovalue Parameters in guided_reports.pl

Severity
8.8high CVSS:3.1 by TuranSec
Exploit likelihood
0.30% (higher than 25% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
TuranSec

Description

Koha's guided report builder (reports/guided_reports.pl) reads the CGI parameter and, for each value, a dynamically-named parameter, and concatenates both directly into an SQL ORDER BY clause with no allowlist or validation. Since ORDER BY columns cannot be bound via prepared-statement placeholders, this requires an explicit allowlist, which does not exist.

Affected

Product or packageVersionsReported by
Koha Community Kohaup to 26.05.01-1CVE List

Classification

CWE-89

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

Koha's guided report builder (reports/guided_reports.pl) reads the CGI parameter and, for each value, a dynamically-named parameter, and concatenates both directly into an SQL ORDER BY clause with no allowlist or validation. Since ORDER BY columns cannot be bound via prepared-statement placeholders, this requires an explicit allowlist, which does not exist.

NVD (es)

El generador de informes guiado de Koha (reports/guided_reports.pl) lee el parámetro CGI ’order_by’ y, para cada valor, un parámetro llamado dinámicamente ’{order}_ovalue’, y concatena ambos directamente en una cláusula SQL ORDER BY sin lista de permitidos ni validación: ’my @order_by = $input -> multi_param(’order_by’); foreach my $order (@order_by) { my $value = $input -> param($order . “_ovalue”); $query_orderby = “ ORDER BY $order $value”; }’. La cadena resultante se añade textualmente a la consulta final en C4::Reports::Guided (’$query .= $orderby;’) sin escape. Dado que las columnas ORDER BY no pueden vincularse a través de marcadores de posición de sentencias preparadas, esto requiere una lista de permitidos explícita, que no existe. Cualquier cuenta de personal con el permiso de bajo privilegio create_reports o execute_reports (comúnmente concedido al personal de la biblioteca no administrador) puede realizar una inyección SQL ciega basada en tiempo contra la base de datos de Koha, que almacena PII de los usuarios y credenciales de personal/LDAP.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-71288 changed 2026-08-10CVE Terms of Use
NVDCVE-2026-71288 changed 2026-10-23Public domain