CVE-2024-36057
Koha Library before 23.05.10 fails to sanitize user-controllable …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/hacklantic/Research/tree/main/CVE-2024-36057
- gitlab.com/koha-community/Koha/-/blob/23.05.x/misc/release_notes/release_notes_23_05_10.md
- gitlab.com/koha-community/Koha/-/blob/23.05.x/misc/release_notes/release_notes_23_05_11.md
- koha-community.org/koha-22-05-22-released/
- nvd.nist.gov/vuln/detail/CVE-2024-36057
- cve.org/CVERecord?id=CVE-2024-36057
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.