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.
History

Mon, 13 Apr 2026 14:30:00 +0000

Type Values Removed Values Added
Title Command Injection via Untrusted Filenames in Koha Library File Upload

Fri, 10 Apr 2026 10:00:00 +0000

Type Values Removed Values Added
Title Command Injection via Untrusted Filenames in Koha Library Cover‑Image Upload
Weaknesses CWE-78

Thu, 09 Apr 2026 14:15:00 +0000

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'}


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

cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published: 2026-04-07T00:00:00.000Z

Updated: 2026-04-09T13:49:52.148Z

Reserved: 2024-05-19T00:00:00.000Z

Link: CVE-2024-36057

cve-icon Vulnrichment

Updated: 2026-04-09T13:49:44.140Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-04-07T16:16:21.390

Modified: 2026-04-09T14:16:24.570

Link: CVE-2024-36057

cve-icon Redhat

No data.