{"id":"CVE-2026-70371","aliases":["CVE-2026-70371"],"related":[],"kind":"vulnerability","state":"published","title":"Koha - SQL Injection in reports/issues_avg_stats.pl","summary":"Koha's reports/issues_avg_stats.pl builds dynamic SQL in sub calculate by concatenating several user-controlled request parameters directly into the query string. The Line and Column parameters are not validated against any whitelist and land verbatim in identifier positions (SELECT DISTINCTROW, GROUP BY, ORDER BY), and each Filter slot is concatenated raw into single-quoted LIKE, BETWEEN, and comparison fragments with no bound parameters.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Koha's reports/issues_avg_stats.pl builds dynamic SQL in sub calculate by concatenating several user-controlled request parameters directly into the query string. The Line and Column parameters are not validated against any whitelist and land verbatim in identifier positions (SELECT DISTINCTROW, GROUP BY, ORDER BY), and each Filter slot is concatenated raw into single-quoted LIKE, BETWEEN, and comparison fragments with no bound parameters.","source":"cvelist"},{"lang":"es","text":"El reports/issues_avg_stats.pl de Koha construye SQL dinámico en la subrutina calculate concatenando varios parámetros de solicitud controlados por el usuario directamente en la cadena de consulta. Los parámetros Line y Column no se validan contra ninguna lista blanca y aterrizan textualmente en posiciones de identificador (SELECT DISTINCTROW, GROUP BY, ORDER BY), y cada ranura de filtro se concatena en bruto en fragmentos de LIKE, BETWEEN y comparación entre comillas simples sin parámetros vinculados. 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.","source":"nvd"}],"published":"2026-08-04T13:00:10.726Z","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=42368","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:21:38.231Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-70371","url":"https://www.cve.org/CVERecord?id=CVE-2026-70371","licence":"CVE Terms of Use","modified":"2026-08-10T11:44:42.609Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-70371","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-70371","licence":"Public domain","modified":"2026-10-23T23:10:00.157Z"}],"updatedAt":"2026-11-25T22:59:30.949Z","epss":{"score":0.00306,"percentile":0.25265,"date":"2026-12-01T12:00:22.000Z"}}