{"id":"CVE-2026-70370","aliases":["CVE-2026-70370"],"related":[],"kind":"vulnerability","state":"published","title":"Koha - SQL Injection in reports/catalogue_stats.pl","summary":"Koha's reports/catalogue_stats.pl builds dynamic SQL in sub calculate by interpolating the user-controlled Line and Column request parameters directly into identifier positions of the query (SELECT DISTINCTROW, GROUP BY, ORDER BY) with no whitelist validation.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Koha's reports/catalogue_stats.pl builds dynamic SQL in sub calculate by interpolating the user-controlled Line and Column request parameters directly into identifier positions of the query (SELECT DISTINCTROW, GROUP BY, ORDER BY) with no whitelist validation.","source":"cvelist"},{"lang":"es","text":"El archivo reports/catalogue_stats.pl de Koha construye SQL dinámico en la subrutina calculate al interpolar los parámetros de solicitud Line y Column controlados por el usuario directamente en posiciones de identificador de la consulta (SELECT DISTINCTROW, GROUP BY, ORDER BY) sin validación de lista blanca. Cuando Line contiene itemcallnumber y el parámetro cotedigits es verdadero, cotedigits se concatena adicionalmente en bruto como el argumento numérico de una llamada a LEFT(). 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 borrowers (hashes de contraseñas, secretos de doble factor, datos personales), api_keys y sessions.","source":"nvd"}],"published":"2026-08-04T13:00:07.967Z","modified":"2026-10-23T23:10:00.157Z","severity":{"scorer":"TuranSec","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"TuranSec","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-89"],"affected":[{"ranges":[{"type":"semver","introduced":"0","lastAffected":"24.11.17","status":"affected"},{"type":"semver","introduced":"25.05.00","lastAffected":"25.05.12","status":"affected"},{"type":"semver","introduced":"25.11.00","lastAffected":"25.11.06","status":"affected"},{"type":"semver","introduced":"26.05.00","lastAffected":"26.05.01","status":"affected"}],"vendor":"Koha Community","product":"Koha","repo":"https://gitlab.com/koha-community/Koha","source":"cvelist"}],"references":[{"url":"https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42363","tags":["third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://koha-community.org/koha-25-05-12-released/","tags":["third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://download.koha-community.org/koha-25.05.12.tar.gz","tags":["third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":["Sanjar Tulkinov Anvar o'g'li"],"assigner":"TuranSec","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-08-04T17:20:50.487Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-70370","url":"https://www.cve.org/CVERecord?id=CVE-2026-70370","licence":"CVE Terms of Use","modified":"2026-08-10T11:44:40.413Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-70370","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-70370","licence":"Public domain","modified":"2026-10-23T23:10:00.157Z"}],"updatedAt":"2026-11-25T22:59:30.949Z","epss":{"score":0.00306,"percentile":0.25264,"date":"2026-12-01T12:00:22.000Z"}}