CVE-2024-36057 Command injection in n/a
Attackers can execute arbitrary commands via malicious filenames in Koha Library's image upload feature, requiring immediate upgrade.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2024-36057?
CVE-2024-36057 is a critical command injection vulnerability in n/a, published on 7 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-94
Which versions are affected by CVE-2024-36057?
How do I fix CVE-2024-36057?
No fix has been published for CVE-2024-36057 yet. Limit exposure of the affected software until one is available.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2024-36057 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-36057 exists.
Public exploit code: 1 proofs of concept on GitHub.
Sources
Also known as GHSA-j75v-99xr-7x47.