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
The vulnerability in Koha Library prior to version 23.05.10 involves improper sanitization of user-supplied filenames during the unzip operation in the upload-cover-image.pl script. Specifically, the command line invocation 'qx/unzip $filename -d $dirname/;' is vulnerable to command injection because the filename parameter can contain shell metacharacters controlled by an attacker. Exploitation requires uploading a crafted .zip file with malicious filenames and triggering the 'Process Images' function, which executes the vulnerable command, potentially allowing remote code execution on the server.
Potential Impact
Successful exploitation of this vulnerability can lead to remote code execution on the affected system, allowing an attacker to execute arbitrary commands with the privileges of the application process. This can result in full system compromise, data theft, or further attacks within the network. There is no indication of known exploits in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Users should upgrade Koha Library to version 23.05.10 or later once available. Until a patch is applied, avoid processing untrusted .zip files or disable the image processing functionality that triggers this vulnerability. Implement input validation and sanitization on filenames before unzipping to mitigate command injection risks.
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
The vulnerability in Koha Library prior to version 23.05.10 involves improper sanitization of user-supplied filenames during the unzip operation in the upload-cover-image.pl script. Specifically, the command line invocation 'qx/unzip $filename -d $dirname/;' is vulnerable to command injection because the filename parameter can contain shell metacharacters controlled by an attacker. Exploitation requires uploading a crafted .zip file with malicious filenames and triggering the 'Process Images' function, which executes the vulnerable command, potentially allowing remote code execution on the server.
Potential Impact
Successful exploitation of this vulnerability can lead to remote code execution on the affected system, allowing an attacker to execute arbitrary commands with the privileges of the application process. This can result in full system compromise, data theft, or further attacks within the network. There is no indication of known exploits in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Users should upgrade Koha Library to version 23.05.10 or later once available. Until a patch is applied, avoid processing untrusted .zip files or disable the image processing functionality that triggers this vulnerability. Implement input validation and sanitization on filenames before unzipping to mitigate command injection risks.
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/7/2026, 3:49:05 PM
Last updated: 4/8/2026, 12:32:49 AM
Views: 5
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.