6.5medium
Koha Community Koha - Stored SQL Injection via Patron Card Layout image_name
- Severity
- 6.5medium CVSS:3.1 by TuranSec
- Exploit likelihood
- 0.38% (higher than 24% of CVEs)
- Published
- Last changed
- Assigned by
- TuranSec
Description
A stored SQL injection vulnerability in Koha through 24.11.17, 25.05.12, 25.11.06, and 26.05.01 allows authenticated staff with the tools => label_creator permission to execute arbitrary SQL via the image_name field of a patron card layout. The image_name value is stored verbatim in the layout XML and later concatenated raw into a SQL query in patroncards/create-pdf.pl when a patron card batch is printed. An attacker can read the entire Koha database including patron PII and staff bcrypt password hashes via error-based or time-based blind injection.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Koha Community Koha | before 24.11.18, from 25.05.0 before 25.05.13, from 25.11.0 before 25.11.07, from 26.05.0 before 26.05.02 | CVE List |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
A stored SQL injection vulnerability in Koha through 24.11.17, 25.05.12, 25.11.06, and 26.05.01 allows authenticated staff with the tools => label_creator permission to execute arbitrary SQL via the image_name field of a patron card layout. The image_name value is stored verbatim in the layout XML and later concatenated raw into a SQL query in patroncards/create-pdf.pl when a patron card batch is printed. An attacker can read the entire Koha database including patron PII and staff bcrypt password hashes via error-based or time-based blind injection.
NVD (es)
Una vulnerabilidad de inyección SQL almacenada en Koha hasta 24.11.17, 25.05.12, 25.11.06, y 26.05.01 permite al personal autenticado con el permiso tools =mayor que label_creator ejecutar SQL arbitrario a través del campo image_name de un diseño de tarjeta de usuario. El valor de image_name se almacena textualmente en el XML del diseño y luego se concatena sin procesar en una consulta SQL en patroncards/create-pdf.pl cuando se imprime un lote de tarjetas de usuario. Un atacante puede leer la base de datos completa de Koha incluyendo PII de usuarios y hashes de contraseñas bcrypt del personal a través de inyección ciega basada en errores o basada en tiempo.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-72608 changed 2026-08-11 | CVE Terms of Use |
| NVD | CVE-2026-72608 changed 2026-10-24 | Public domain |