# CVE-2024-36057: Koha Library before 23.05.10 fails to sanitize user-controllable filenames prior to unzipping, leading to remote code execution.

- Severity: Critical 9.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.91%, higher than 80% of CVEs (2026-12-01)
- Published: 2026-04-07T00:00:00.000Z
- Modified: 2026-11-08T20:10:00.187Z
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a

## References

- <https://gitlab.com/koha-community/Koha/-/blob/23.05.x/misc/release_notes/release_notes_23_05_10.md>
- <https://gitlab.com/koha-community/Koha/-/blob/23.05.x/misc/release_notes/release_notes_23_05_11.md>
- <https://github.com/hacklantic/Research/tree/main/CVE-2024-36057>
- <https://koha-community.org/koha-22-05-22-released/>

## Sources

- CVE List: [CVE-2024-36057](https://www.cve.org/CVERecord?id=CVE-2024-36057), CVE Terms of Use, modified 2026-04-09
- NVD: [CVE-2024-36057](https://nvd.nist.gov/vuln/detail/CVE-2024-36057), Public domain, modified 2026-11-08

---

Page: https://cve.day/CVE-2024-36057 · Whole record: https://cve.day/CVE-2024-36057.json · Rebuilt by cve.day 2026-11-25T22:58:52.995Z
