CVE-2024-36057
Full vulnerability record from the local CVENow database.
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.
Severity
CRITICAL
CVSS score
9.8
(v3.1)
Vulnerability status
Awaiting Analysis
Source identifier
Published
2026-04-07 16:16:21.390000
Last modified
2026-11-08 20:10:00.187000
View original CVE JSON
{
"id": "CVE-2024-36057",
"sourceIdentifier": "[email protected]",
"published": "2026-04-07T16:16:21.390",
"lastModified": "2026-11-08T20:10:00.187",
"vulnStatus": "Awaiting Analysis",
"cveTags": [],
"descriptions": [
{
"lang": "en",
"value": "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."
},
{
"lang": "es",
"value": "La biblioteca Koha anterior a la versión 23.05.10 no sanitiza los nombres de archivo controlables por el usuario antes de descomprimir, lo que lleva a la ejecución remota de código. La línea ’qx/unzip $filename -d $dirname/;’ en upload-cover-image.pl es vulnerable a la inyección de comandos a través de metacaracteres de shell porque los datos de entrada pueden ser controlados por un atacante y se incluyen directamente en un comando del sistema, es decir, un ataque puede ocurrir a través de nombres de archivo maliciosos después de subir un archivo .zip y hacer clic en Procesar Imágenes."
}
],
"affected": [
{
"source": "[email protected]",
"affectedData": [
{
"vendor": "n/a",
"product": "n/a",
"versions": [
{
"version": "n/a",
"status": "affected"
}
]
}
]
}
],
"metrics": {
"cvssMetricV31": [
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"type": "Secondary",
"cvssData": {
"version": "3.1",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
"baseScore": 9.8,
"baseSeverity": "CRITICAL",
"attackVector": "NETWORK",
"attackComplexity": "LOW",
"privilegesRequired": "NONE",
"userInteraction": "NONE",
"scope": "UNCHANGED",
"confidentialityImpact": "HIGH",
"integrityImpact": "HIGH",
"availabilityImpact": "HIGH"
},
"exploitabilityScore": 3.9,
"impactScore": 5.9
}
],
"ssvcV203": [
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"ssvcData": {
"timestamp": "2026-04-09T13:48:25.337882Z",
"id": "CVE-2024-36057",
"options": [
{
"exploitation": "poc"
},
{
"automatable": "yes"
},
{
"technicalImpact": "total"
}
],
"role": "CISA Coordinator",
"version": "2.0.3"
}
}
]
},
"weaknesses": [
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"type": "Secondary",
"description": [
{
"lang": "en",
"value": "CWE-94"
}
]
}
],
"references": [
{
"url": "https://github.com/hacklantic/Research/tree/main/CVE-2024-36057",
"source": "[email protected]"
},
{
"url": "https://gitlab.com/koha-community/Koha/-/blob/23.05.x/misc/release_notes/release_notes_23_05_10.md",
"source": "[email protected]"
},
{
"url": "https://gitlab.com/koha-community/Koha/-/blob/23.05.x/misc/release_notes/release_notes_23_05_11.md",
"source": "[email protected]"
},
{
"url": "https://koha-community.org/koha-22-05-22-released/",
"source": "[email protected]"
}
]
}