CVE-2022-41957
JSON

7.5high

muhammara vulnerable to Unchecked Return Value to NULL Pointer Dereference

Severity
7.5high CVSS:3.1 by GitHub_M
Exploit likelihood
1.40% (higher than 73% of CVEs)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-2r7v-cmch-5x26

Description

Muhammara is a node module with c/cpp bindings to modify PDF with JavaScript for node or electron. The package muhammara before 2.6.2 and from 3.0.0 and before 3.3.0, as well as all versions of muhammara's predecessor package hummus, are vulnerable to Denial of Service (DoS) when supplied with a maliciously crafted PDF file to be parsed. The issue has been patched in muhammara version 3.4.0 and the fix has been backported to version 2.6.2. As a workaround, do not process files from untrusted sources. If using hummus, replace the package with muhammara.

Affected

Product or packageVersionsReported by
julianhille MuhammaraJS< 2.6.2, >= 3.0.0, < 3.4.0CVE List
hummus (npm)all versionsGitHub Advisory Database
muhammara (npm)from 3.0.0 before 3.4.0, before 2.6.2GitHub Advisory Database
muhammara_project muhammarabefore 2.6.2, from 3.0.0 before 3.3.0NVD
hummus_project hummusNot specifiedNVD

All scores

GitHub_M7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-690

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

Muhammara is a node module with c/cpp bindings to modify PDF with JavaScript for node or electron. The package muhammara before 2.6.2 and from 3.0.0 and before 3.3.0, as well as all versions of muhammara's predecessor package hummus, are vulnerable to Denial of Service (DoS) when supplied with a maliciously crafted PDF file to be parsed. The issue has been patched in muhammara version 3.4.0 and the fix has been backported to version 2.6.2. As a workaround, do not process files from untrusted sources. If using hummus, replace the package with muhammara.

GitHub Advisory Database
Impact

The package muhammara before 2.6.2, from 3.0.0 and before 3.3.0; all versions of package hummus are vulnerable to Denial of Service (DoS) when supplied with a maliciously crafted PDF file to be parsed.

Patches

It has been patched in 3.4.0 and has been backported to 2.6.2 There is no patch for hummus, currently

Workarounds

Do not process files from untrusted sources or update. Replace hummus with muhammara

References

https://github.com/julianhille/MuhammaraJS/pull/235 https://github.com/julianhille/MuhammaraJS/pull/238

NVD (es)

Muhammara es un módulo de nodo con enlaces c/cpp para modificar PDF con JavaScript para nodo o electrón. El paquete muhammara anterior a 2.6.2 y 3.0.0 y anterior a 3.3.0, así como todas las versiones de muhammara del paquete predecesor hummus, son vulnerables a la Denegación de Servicio (DoS) cuando se les suministra un archivo PDF creado con fines malintencionados para su análisis. El problema se solucionó en la versión 3.4.0 de muhammara y la solución se actualizó a la versión 2.6.2. Como workaround, no procese archivos de fuentes que no sean de confianza. Si usa hummus, reemplace el paquete con muhammara.

References

Sources

SourceRecordLicence
CVE ListCVE-2022-41957 changed 2025-04-23CVE Terms of Use
GitHub Advisory DatabaseGHSA-2r7v-cmch-5x26 changed 2023-11-08CC-BY-4.0
NVDCVE-2022-41957 changed 2026-06-17Public domain