CVE-2024-36057

Published Apr 7, 2026 CVSS 3.1 · 9.8 Critical EPSS 1.9% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Title Koha Library Remote Code Execution via Uncontrolled Filename Injection in ZIP Unzip
Type Values Removed Values Added
Title Koha Library Remote Code Execution via Uncontrolled Filename Injection in ZIP Unzip
Type Values Removed Values Added
Title Command Injection via Untrusted Filenames in Koha Library File Upload
Type Values Removed Values Added
Title Command Injection via Untrusted Filenames in Koha Library File Upload
Type Values Removed Values Added
Title Command Injection via Untrusted Filenames in Koha Library Cover‑Image Upload
Weaknesses CWE-78
Type Values Removed Values Added
Weaknesses CWE-94
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Koha-community
Koha-community koha Library Software
Vendors & Products Koha-community
Koha-community koha Library Software
Type Values Removed Values Added
Title Command Injection via Untrusted Filenames in Koha Library Cover‑Image Upload
Weaknesses CWE-78
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
Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Apr 9, 2026, 1:49 PM
Reserved
May 19, 2024, 12:00 AM
Status
Awaiting Analysis
Published
Apr 7, 2026, 4:16 PM
Modified
Nov 8, 2026, 8:10 PM