{"id":"CVE-2022-41957","published":"2022-11-28T00:00:00Z","modified":"2025-04-23T16:34:20Z","title":"muhammara vulnerable to Unchecked Return Value to NULL Pointer Dereference","vendor":"julianhille","product":"MuhammaraJS","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01141,"percentile":0.67451,"provenance":"source"},"cwes":[{"id":"CWE-690","name":"Unchecked Return Value to NULL Pointer Dereference"}],"references":[{"url":"https://github.com/julianhille/MuhammaraJS/security/advisories/GHSA-2r7v-cmch-5x26","tags":[]},{"url":"https://github.com/julianhille/MuhammaraJS/pull/235","tags":[]},{"url":"https://github.com/julianhille/MuhammaraJS/pull/238","tags":[]}],"priority":{"score":18.7,"factors":[{"name":"EPSS percentile","points":13.49},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"julianhille","affectedVersions":[{"vendor":"julianhille","product":"MuhammaraJS","versions":["< 2.6.2",">= 3.0.0, < 3.4.0"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2025-04-23T15:48:37.832708Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"hummus","vulnerableRanges":["<2.6.2"],"patched":[],"from":["GHSA-2r7v-cmch-5x26"],"provenance":"source"},{"ecosystem":"npm","package":"muhammara","vulnerableRanges":[">=3.0.0, <3.4.0","<2.6.2"],"patched":["3.4.0","2.6.2"],"from":["GHSA-2r7v-cmch-5x26"],"provenance":"source"}],"summary":{"text":"The muhammara PDF-manipulation library for Node.js and Electron, which has C/C++ bindings, contains an unchecked return value that leads to a NULL pointer dereference when parsing PDF files. An attacker who can get a maliciously crafted PDF parsed by the library can cause a denial of service, with no authentication, privileges, or user interaction required over the network.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:34:12Z"},"euvd":{"id":"EUVD-2022-7477","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2022-25885","published":"2022-11-01","fixed":"2.6.0","kev":false},{"cve":"CVE-2022-39381","published":"2022-11-02","fixed":"2.6.0","kev":false},{"cve":"CVE-2022-25892","published":"2022-11-01","fixed":"3.1.1","kev":false,"link":{"from":"CVE-2022-25892","to":"CVE-2022-41957","relation":"successor","confidence":"medium","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:muhammara","fromFixed":"2.6.1","toFixed":"2.6.2","daysApart":27},{"kind":"version-step","provenance":"source","package":"npm:muhammara","fromFixed":"3.1.1","toFixed":"3.4.0","daysApart":27},{"kind":"similar","provenance":"machine","score":0.8,"basis":"same package + description similarity"}]}},{"cve":"CVE-2022-41957","published":"2022-11-28","fixed":"3.4.0","kev":false},{"cve":"CVE-2026-125107","published":"2026-11-09","fixed":"6.0.5","kev":false}],"package":"npm:muhammara"}}