{"id":"CVE-2026-6428","aliases":["CVE-2026-6428"],"related":[],"kind":"vulnerability","state":"published","title":"Koha SQL Injection in reports/catalogue_out.pl via Filter URL Parameter","summary":"SQL Injection in reports/catalogue_out.pl in Koha Community Koha through 22.11.37, 23.x, 24.x before 24.11.16, 25.05.x before 25.05.11, 25.11.x before 25.11.05, 26.05.x before 26.05.01, and 26.11.x before 26.11.00 allows an authenticated staff user with the Reports module flag to read arbitrary data from the Koha application database via the Filter URL parameter when the Criteria parameter matches /branchcode/.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"SQL Injection in reports/catalogue_out.pl in Koha Community Koha through 22.11.37, 23.x, 24.x before 24.11.16, 25.05.x before 25.05.11, 25.11.x before 25.11.05, 26.05.x before 26.05.01, and 26.11.x before 26.11.00 allows an authenticated staff user with the Reports module flag to read arbitrary data from the Koha application database via the Filter URL parameter when the Criteria parameter matches /branchcode/.","source":"cvelist"},{"lang":"es","text":"Inyección SQL en reports/catalogue_out.pl en Koha Community Koha hasta 22.11.37, 23.x, 24.x antes de 24.11.16, 25.05.x antes de 25.05.11, 25.11.x antes de 25.11.05, 26.05.x antes de 26.05.01, y 26.11.x antes de 26.11.00 permite a un usuario de personal autenticado con el indicador del módulo de Informes leer datos arbitrarios de la base de datos de la aplicación Koha a través del parámetro URL Filter cuando el parámetro Criteria coincide con /branchcode/.\n\nEl sumidero vulnerable en la subrutina calculate concatena el parámetro de solicitud Filter sin modificar directamente en una cláusula LIKE de la sentencia auxiliar $strsth2 y lo ejecuta a través de DBI sin parámetros vinculados:\n\nmy $f = @$filters[0];\n$f =~ s/\\*/%/g;\n$strsth2 .= \" AND $column LIKE '$f' \";\n\nEsto permite la inyección SQL basada en errores (por ejemplo, a través de EXTRACTVALUE) y acceso de lectura completo a tablas sensibles incluyendo borrowers (hashes de contraseñas, secretos 2FA, PII), borrower_password_recovery, api_keys, y sessions.\n\nPrueba de concepto (basado en errores, solicitud única):\n\nGET /cgi-bin/koha/reports/catalogue_out.pl?do_it=1&output=screen&Limit=10&Criteria=branchcode&Filter=x'+AND+EXTRACTVALUE(1,CONCAT(0x7e,VERSION(),0x7c,USER(),0x7c,DATABASE(),0x7e))--+-\nCookie: CGISESSID=<LIBRARIAN_SESSION>\n\nEl cuerpo de la respuesta contiene la excepción DBI filtrando la versión de MariaDB, el usuario de la base de datos, la IP del cliente, y el nombre de la base de datos, después de lo cual se pueden paginar datos arbitrarios usando LIMIT n,1 / SUBSTRING(...).\n\nEl sumidero vulnerable fue introducido en el commit 6bb77ae3e4 (2008-07-09); CVE-2015-4633 parcheó la misma clase en archivos hermanos pero no generalizó la corrección a reports/catalogue_out.pl. Corregido en Koha 22.11.38, 24.11.16, 25.05.11, 25.11.05, 26.05.01, y 26.11.00 reemplazando la concatenación cruda con un marcador de posición parametrizado.","source":"nvd"}],"published":"2026-06-13T16:34:10.326Z","modified":"2026-08-10T12:17:22.160Z","severity":{"scorer":"TuranSec","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:L/VA:L/SC:N/SI:N/SA:N/E:P/AU:Y/V:C/U:Amber","score":5.6,"rating":"MEDIUM"},"severities":[{"scorer":"TuranSec","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:L/VA:L/SC:N/SI:N/SA:N/E:P/AU:Y/V:C/U:Amber","score":5.6,"rating":"MEDIUM"},{"scorer":"TuranSec","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L","score":7.6,"rating":"HIGH"},{"scorer":"TuranSec","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:S/C:C/I:N/A:P","score":7.5,"rating":"HIGH"}],"cwes":["CWE-89"],"affected":[{"ranges":[{"type":"semver","introduced":"0","lastAffected":"22.11.38","status":"affected"},{"type":"semver","introduced":"23.05.00","lastAffected":"23.11.15","status":"affected"},{"type":"semver","introduced":"24.05.00","lastAffected":"24.11.16","status":"affected"},{"type":"semver","introduced":"25.05.00","lastAffected":"25.05.11","status":"affected"},{"type":"semver","introduced":"25.11.00","lastAffected":"25.11.05","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=42361","tags":["issue-tracking","vendor-advisory"],"sources":["cvelist","nvd"]},{"url":"https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=199539","tags":["patch","vendor-advisory"],"sources":["cvelist","nvd"]},{"url":"https://koha-community.org/security-releases/","tags":["vendor-advisory"],"sources":["cvelist","nvd"]}],"credits":["Sanjar Tulkinov (Sanjarbiy)"],"assigner":"TuranSec","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-06-15T17:19:10.550Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-6428","url":"https://www.cve.org/CVERecord?id=CVE-2026-6428","licence":"CVE Terms of Use","modified":"2026-08-10T11:44:35.818Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-6428","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-6428","licence":"Public domain","modified":"2026-08-10T12:17:22.160Z"}],"updatedAt":"2026-11-25T22:59:24.615Z","epss":{"score":0.00244,"percentile":0.16714,"date":"2026-12-02T12:00:21.000Z"}}