8.8high
Koha - SQL Injection in reports/issues_stats.pl
- Severity
- 8.8high CVSS:3.1 by TuranSec
- Exploit likelihood
- 0.31% (higher than 25% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- TuranSec
Description
Koha's reports/issues_stats.pl (the circulation statistics report) builds its calculation query in sub calculate by concatenating several user-controlled request parameters directly into the SQL string. The PeriodTypeSel, PeriodDaySel, and PeriodMonthSel parameters are interpolated raw into single-quoted equality and function-comparison fragments, and the Filter slots plus the Line and Column identifiers are likewise interpolated with no whitelist and no placeholder binding.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Koha Community Koha | up to 24.11.17, from 25.05.00 up to 25.05.12, from 25.11.00 up to 25.11.06, from 26.05.00 up to 26.05.01 | CVE List |
All scores
| TuranSec | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| CISA-ADP | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
Koha's reports/issues_stats.pl (the circulation statistics report) builds its calculation query in sub calculate by concatenating several user-controlled request parameters directly into the SQL string. The PeriodTypeSel, PeriodDaySel, and PeriodMonthSel parameters are interpolated raw into single-quoted equality and function-comparison fragments, and the Filter slots plus the Line and Column identifiers are likewise interpolated with no whitelist and no placeholder binding.
NVD (es)
El reports/issues_stats.pl de Koha (el informe de estadísticas de circulación) construye su consulta de cálculo en la subrutina calculate concatenando varios parámetros de solicitud controlados por el usuario directamente en la cadena SQL. Los parámetros PeriodTypeSel, PeriodDaySel y PeriodMonthSel se interpolan sin procesar en fragmentos de igualdad y comparación de funciones entre comillas simples, y las ranuras de filtro más los identificadores de Línea y Columna se interpolan de manera similar sin lista blanca y sin enlace de marcador de posición. Un usuario de personal autenticado que posee el permiso del módulo de informes puede inyectar SQL arbitrario y leer cualquier tabla accesible por el usuario de la base de datos de Koha, incluyendo prestatarios (hashes de contraseñas, secretos de doble factor, datos personales), api_keys y sesiones.
References
| https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42735 | third-party-advisory | |
| https://koha-community.org/koha-25-05-12-released/ | third-party-advisory | |
| https://download.koha-community.org/koha-25.05.12.tar.gz | third-party-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-70373 changed 2026-08-10 | CVE Terms of Use |
| NVD | CVE-2026-70373 changed 2026-10-23 | Public domain |