{"id":"CVE-2022-39381","aliases":["CVE-2022-39381","GHSA-rcrx-fpjp-mfrw"],"related":[],"kind":"vulnerability","state":"published","title":"Unchecked Return Value to NULL Pointer Dereference in PDFDocumentHandler.cpp","summary":"Muhammara is a node module with c/cpp bindings to modify PDF with js for node or electron (based/replacement on/of galkhana/hummusjs). The package muhammara before 2.6.0; all versions of package hummus are vulnerable to Denial of Service (DoS) when supplied with a maliciously crafted PDF file to be appended to another. This issue has been patched in 2.6.0 for muhammara and not at all for hummus. As a workaround, do not process files from untrusted sources.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Muhammara is a node module with c/cpp bindings to modify PDF with js for node or electron (based/replacement on/of galkhana/hummusjs). The package muhammara before 2.6.0; all versions of package hummus are vulnerable to Denial of Service (DoS) when supplied with a maliciously crafted PDF file to be appended to another. This issue has been patched in 2.6.0 for muhammara and not at all for hummus. As a workaround, do not process files from untrusted sources.","source":"cvelist"},{"lang":"en","text":"### Impact\nThe package muhammara before 2.6.0; all versions of package hummus are vulnerable to Denial of Service (DoS) when supplied with a maliciously crafted PDF file to be appended to another.\n\n### Patches\nIt has been patched in 2.6.0 for muhammara and not at all for hummus\n\n### Workarounds\nDo not process files from untrusted sources\n\n### References\nPR: https://github.com/julianhille/MuhammaraJS/pull/194\nIssue: https://github.com/julianhille/MuhammaraJS/issues/191\nIssue in hummus: https://github.com/galkahana/HummusJS/issues/293\n\n### Outline differences to https://nvd.nist.gov/vuln/detail/CVE-2022-25892\n\nThe difference is one is in [src/deps/PDFWriter/PDFParser.cpp](https://github.com/julianhille/MuhammaraJS/commit/1890fb555eaf171db79b73fdc3ea543bbd63c002#diff-09ac2c64aeab42b14b2ae7b11a5648314286986f8c8444a5b3739ba7203b1e9b) and the other is [PDFDocumentHandler.cpp](https://github.com/julianhille/MuhammaraJS/pull/194/files#diff-38d338ea4c047fd7dd9a05b5ffe7c964f0fa7e79aff4c307ccee7596457b1ef2) both is a null pointer but for different cases\nThese are totally diffent issues, one is in reading a pdf the other is in appendending a maliciously crafted one. The function calls are different the versions in which they are solved are diffent.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Muhammara es un módulo de nodo con enlaces c/cpp para modificar PDF con js para nodo o electrón (based/replacement on/of galkhana/hummusjs). El paquete muhammara antes de 2.6.0; Todas las versiones del paquete hummus son vulnerables a la Denegación de Servicio (DoS) cuando se les suministra un archivo PDF creado con fines malintencionados para adjuntarlo a otro. Este problema se solucionó en 2.6.0 para muhammara y no se solucionó en absoluto para hummus. Como workaround alternativo, no procese archivos de fuentes que no sean de confianza.","source":"nvd"}],"published":"2022-11-02T00:00:00.000Z","modified":"2026-06-17T04:58:15.180Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-476","CWE-690"],"affected":[{"ranges":[{"version":"< 2.6.0","status":"affected"}],"vendor":"julianhille","product":"MuhammaraJS","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.6.0"}],"ecosystem":"npm","package":"muhammara","purl":"pkg:npm/muhammara","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.0.111"}],"ecosystem":"npm","package":"hummus","purl":"pkg:npm/hummus","source":"ghsa"},{"ranges":[{"status":"affected","lastAffected":"2.6.0"}],"vendor":"muhammarajs_project","product":"muhammarajs","cpe":"cpe:2.3:a:muhammarajs_project:muhammarajs:*:*:*:*:*:node.js:*:*","source":"nvd"},{"ranges":[{"status":"affected","fixed":"1.0.111"}],"vendor":"pdfhummus","product":"hummusjs","cpe":"cpe:2.3:a:pdfhummus:hummusjs:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/julianhille/MuhammaraJS/security/advisories/GHSA-rcrx-fpjp-mfrw","tags":["third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/galkahana/HummusJS/issues/293","tags":["exploit","issue-tracking","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/julianhille/MuhammaraJS/issues/191","tags":["issue-tracking","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/julianhille/MuhammaraJS/pull/194","tags":["patch","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-39381","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/galkahana/HummusJS/commit/a9bf2520ab5abb69f9328906e406fbebfb36159a","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/julianhille/MuhammaraJS","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2025-04-22T15:39:17.642Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-39381","url":"https://www.cve.org/CVERecord?id=CVE-2022-39381","licence":"CVE Terms of Use","modified":"2025-04-22T16:09:05.431Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-rcrx-fpjp-mfrw","url":"https://github.com/advisories/GHSA-rcrx-fpjp-mfrw","licence":"CC-BY-4.0","modified":"2023-11-08T04:10:20.347Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-39381","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-39381","licence":"Public domain","modified":"2026-06-17T04:58:15.180Z"}],"updatedAt":"2026-11-25T22:58:16.184Z","epss":{"score":0.00887,"percentile":0.60358,"date":"2026-12-01T12:00:22.000Z"}}