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 package | Versions | Reported by |
|---|---|---|
| julianhille MuhammaraJS | < 2.6.2, >= 3.0.0, < 3.4.0 | CVE List |
| hummus (npm) | all versions | GitHub Advisory Database |
| muhammara (npm) | from 3.0.0 before 3.4.0, before 2.6.2 | GitHub Advisory Database |
| muhammara_project muhammara | before 2.6.2, from 3.0.0 before 3.3.0 | NVD |
| hummus_project hummus | Not specified | NVD |
All scores
| GitHub_M | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Classification
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
| https://github.com/julianhille/MuhammaraJS/security/advisories/GHSA-2r7v-cmch-5x26 | third-party-advisory, web | |
| https://github.com/julianhille/MuhammaraJS/pull/235 | issue-tracking, patch, third-party-advisory, web | |
| https://github.com/julianhille/MuhammaraJS/pull/238 | issue-tracking, patch, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2022-41957 | advisory | |
| https://github.com/julianhille/MuhammaraJS | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-41957 changed 2025-04-23 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-2r7v-cmch-5x26 changed 2023-11-08 | CC-BY-4.0 |
| NVD | CVE-2022-41957 changed 2026-06-17 | Public domain |