CVE-2024-36057: n/a
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.
AI Analysis
Technical Summary
CVE-2024-36057 affects Koha Library versions prior to 23.05.10. The vulnerability is due to command injection in the upload-cover-image.pl script, specifically the line executing 'qx/unzip $filename -d $dirname/;' where $filename is user-controlled and not sanitized. This allows an attacker to inject shell metacharacters via malicious filenames inside a .zip archive, leading to remote code execution when the Process Images function is invoked. The CVSS 3.1 base score is 9.8 (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H), reflecting a network attack vector with no privileges or user interaction required and full confidentiality, integrity, and availability impact.
Potential Impact
Successful exploitation results in remote code execution on the affected system with full control, potentially compromising confidentiality, integrity, and availability of the Koha Library server. This can lead to complete system compromise. No known exploits are reported in the wild yet.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid processing untrusted .zip files with the vulnerable upload-cover-image.pl script. Implement manual validation or sandboxing of file extraction processes if possible. Monitor vendor channels for updates and apply patches promptly once released.
CVE-2024-36057: n/a
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.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2024-36057 affects Koha Library versions prior to 23.05.10. The vulnerability is due to command injection in the upload-cover-image.pl script, specifically the line executing 'qx/unzip $filename -d $dirname/;' where $filename is user-controlled and not sanitized. This allows an attacker to inject shell metacharacters via malicious filenames inside a .zip archive, leading to remote code execution when the Process Images function is invoked. The CVSS 3.1 base score is 9.8 (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H), reflecting a network attack vector with no privileges or user interaction required and full confidentiality, integrity, and availability impact.
Potential Impact
Successful exploitation results in remote code execution on the affected system with full control, potentially compromising confidentiality, integrity, and availability of the Koha Library server. This can lead to complete system compromise. No known exploits are reported in the wild yet.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid processing untrusted .zip files with the vulnerable upload-cover-image.pl script. Implement manual validation or sandboxing of file extraction processes if possible. Monitor vendor channels for updates and apply patches promptly once released.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- mitre
- Date Reserved
- 2024-05-19T00:00:00.000Z
- Cvss Version
- null
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69d52341aaed68159a2ec55a
Added to database: 4/7/2026, 3:31:13 PM
Last enriched: 4/15/2026, 12:32:02 PM
Last updated: 5/22/2026, 12:48:16 AM
Views: 47
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.