{"id":"CVE-2024-36057","aliases":["EUVD-2024-55537","GHSA-j75v-99xr-7x47"],"status":"published","title":"Koha Library before 23.05.10 fails to sanitize user-controllable filenames prior to unzipping,...","description":"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.","severity":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"adp","from":"cve"},"epss":{"day":"2026-11-10","score":0.01873,"percentile":0.79549,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":false},"cwes":["CWE-94"],"published":"2026-04-07T00:00:00Z","modified":"2026-11-08T20:10:00Z","exploits":[{"source":"pocgithub","id":"hacklantic/CVE-2024-36057","title":"hacklantic/CVE-2024-36057","date":"2026-10-14","url":"https://github.com/hacklantic/CVE-2024-36057"}],"references":[{"url":"https://gitlab.com/koha-community/Koha/-/blob/23.05.x/misc/release_notes/release_notes_23_05_10.md","tags":["web"]},{"url":"https://gitlab.com/koha-community/Koha/-/blob/23.05.x/misc/release_notes/release_notes_23_05_11.md","tags":["web"]},{"url":"https://github.com/hacklantic/Research/tree/main/CVE-2024-36057","tags":["web"]},{"url":"https://koha-community.org/koha-22-05-22-released/","tags":["web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-36057","tags":["advisory"]},{"url":"https://koha-community.org/koha-22-05-22-released"},{"url":"https://github.com/advisories/GHSA-j75v-99xr-7x47"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/36xxx/CVE-2024-36057.json","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2024-36057","description":"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.","status":"published","published":"2026-04-07T00:00:00Z","modified":"2026-04-09T13:49:52.148Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"adp"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T14:34:14.649724Z"}],"euvd":[{"id":"EUVD-2024-55537","description":"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.","status":"published","published":"2026-04-07T00:00:00Z","modified":"2026-04-09T13:49:52Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T19:24:31.230458Z"}],"ghsa":[{"id":"GHSA-j75v-99xr-7x47","title":"Koha Library before 23.05.10 fails to sanitize user-controllable filenames prior to unzipping,...","description":"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.","status":"published","published":"2026-04-07T18:31:35Z","modified":"2026-04-09T15:36:08Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T15:07:23.752851Z"}],"nvd":[{"id":"CVE-2024-36057","description":"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.","status":"published","published":"2026-04-07T16:16:21.39Z","modified":"2026-11-08T20:10:00.187Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"secondary"}],"cwes":["CWE-94"],"updated_at":"2026-11-08T22:11:09.649279Z"}],"osv":[{"id":"CVE-2024-36057","description":"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.","status":"published","published":"2026-04-07T00:00:00Z","modified":"2026-11-10T02:30:59.583772524Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-11T11:06:28.934043Z"}]}}
