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.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)0.9%top 40.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
npmhummus1.0.111GHSA-rcrx-fpjp-mfrw
npmmuhammara2.6.0GHSA-rcrx-fpjp-mfrw

Affected products (as reported)

VendorProductVersions
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

References