CVE-2024-36057
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.
Package Versions Affected
Automatically patch vulnerabilities without upgrading
CVSS Version



Related Resources
References
https://github.com/hacklantic/Research/tree/main/CVE-2024-36057, https://gitlab.com/koha-community/Koha/-/blob/23.05.x/misc/releasenotes/releasenotes230510.md, https://gitlab.com/koha-community/Koha/-/blob/23.05.x/misc/releasenotes/releasenotes230511.md, https://koha-community.org/koha-22-05-22-released/, https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/36xxx/CVE-2024-36057.json, https://nvd.nist.gov/vuln/detail/CVE-2024-36057