Vulnerability 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.
CVSS Score
CRITICAL
Related Weaknesses (CWE)
References
- https://github.com/hacklantic/Research/tree/main/CVE-2024-36057
- https://gitlab.com/koha-community/Koha/-/blob/23.05.x/misc/release_notes/release
- https://gitlab.com/koha-community/Koha/-/blob/23.05.x/misc/release_notes/release
- https://koha-community.org/koha-22-05-22-released/
FAQ
What is CVE-2024-36057?
CVE-2024-36057 is a vulnerability with a CVSS score of 9.8 (CRITICAL). 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...
How severe is CVE-2024-36057?
CVE-2024-36057 has been rated CRITICAL with a CVSS base score of 9.8/10. This is considered a critical vulnerability requiring immediate attention.
Is there a patch for CVE-2024-36057?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.