{"id":"CVE-2024-36057","aliases":["CVE-2024-36057"],"related":[],"kind":"vulnerability","state":"published","title":"Koha Library before 23.05.10 fails to sanitize user-controllable filenames prior to unzipping, leading to remote code execution.","summary":"Koha Library before 23.05.10 fails to sanitize user-controllable filenames prior to unzipping, leading to remote code execution. The line \"qx/unzip $filename -d $dirname/;\" in upload-cover-image.pl is vulnerable to command injection via shell metacharacters because input data can be controlled by an attacker and is directly included in a system command, i.e., an attack can occur via malicious filenames after uploading a .zip file and clicking Process Images.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Koha Library before 23.05.10 fails to sanitize user-controllable filenames prior to unzipping, leading to remote code execution. The line \"qx/unzip $filename -d $dirname/;\" in upload-cover-image.pl is vulnerable to command injection via shell metacharacters because input data can be controlled by an attacker and is directly included in a system command, i.e., an attack can occur via malicious filenames after uploading a .zip file and clicking Process Images.","source":"cvelist"},{"lang":"es","text":"La biblioteca Koha anterior a la versión 23.05.10 no sanitiza los nombres de archivo controlables por el usuario antes de descomprimir, lo que lleva a la ejecución remota de código. La línea ’qx/unzip $filename -d $dirname/;’ en upload-cover-image.pl es vulnerable a la inyección de comandos a través de metacaracteres de shell porque los datos de entrada pueden ser controlados por un atacante y se incluyen directamente en un comando del sistema, es decir, un ataque puede ocurrir a través de nombres de archivo maliciosos después de subir un archivo .zip y hacer clic en Procesar Imágenes.","source":"nvd"}],"published":"2026-04-07T00:00:00.000Z","modified":"2026-11-08T20:10:00.187Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-94"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"}],"references":[{"url":"https://gitlab.com/koha-community/Koha/-/blob/23.05.x/misc/release_notes/release_notes_23_05_10.md","tags":[],"sources":["cvelist","nvd"]},{"url":"https://gitlab.com/koha-community/Koha/-/blob/23.05.x/misc/release_notes/release_notes_23_05_11.md","tags":[],"sources":["cvelist","nvd"]},{"url":"https://github.com/hacklantic/Research/tree/main/CVE-2024-36057","tags":[],"sources":["cvelist","nvd"]},{"url":"https://koha-community.org/koha-22-05-22-released/","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"total","date":"2026-04-09T13:48:25.337Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-36057","url":"https://www.cve.org/CVERecord?id=CVE-2024-36057","licence":"CVE Terms of Use","modified":"2026-04-09T13:49:52.148Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-36057","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-36057","licence":"Public domain","modified":"2026-11-08T20:10:00.187Z"}],"updatedAt":"2026-11-25T22:58:52.995Z","epss":{"score":0.01914,"percentile":0.80434,"date":"2026-12-01T12:00:22.000Z"}}