Vulnerability · Published Nov 2, 2022 · Assigned by GitHub_M
CVE-2022-39381Unchecked Return Value to NULL Pointer Dereference in PDFDocumentHandler.cpp
High 7.5
In plain English
A high-severity security flaw in MuhammaraJS from julianhille. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.9% (higher than 60% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | hummus | 1.0.111 | GHSA-rcrx-fpjp-mfrw |
| npm | muhammara | 2.6.0 | GHSA-rcrx-fpjp-mfrw |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| julianhille | MuhammaraJS | < 2.6.0 |
Weakness: CWE-690 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H