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.
Metrics
Affected Vendors & Products
References
History
Thu, 09 Apr 2026 08:30:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Koha-community
Koha-community koha Library Software |
|
| Vendors & Products |
Koha-community
Koha-community koha Library Software |
Wed, 08 Apr 2026 20:15:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| Title | Command Injection via Untrusted Filenames in Koha Library Cover‑Image Upload | |
| Weaknesses | CWE-78 |
Tue, 07 Apr 2026 18:00:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| 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. | |
| References |
|
|
Status: PUBLISHED
Assigner: mitre
Published: 2026-04-07T00:00:00.000Z
Updated: 2026-04-07T15:16:24.213Z
Reserved: 2024-05-19T00:00:00.000Z
Link: CVE-2024-36057
No data.
Status : Awaiting Analysis
Published: 2026-04-07T16:16:21.390
Modified: 2026-04-08T21:27:00.663
Link: CVE-2024-36057
No data.