GitHub Advisoryadvisory · npm
GHSA-rcrx-fpjp-mfrw Unchecked Return Value to NULL Pointer Dereference in PDFDocumentHandler.cpp
HIGH
Official page ↗
- Aliases
- CVE-2022-39381
- Ecosystem
- npm
- Packages
- muhammara, hummus
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Weaknesses
- CWE-476, CWE-690
- Reviewed
- 2022-11-02
Affected packages
• npm muhammara: < 2.6.0 → fixed in 2.6.0
• npm hummus: < 1.0.111 → fixed in 1.0.111
Description
Impact
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.
Patches
It has been patched in 2.6.0 for muhammara and not at all for hummus
Workarounds
Do not process files from untrusted sources
References
PR: https://github.com/julianhille/MuhammaraJS/pull/194
Issue: https://github.com/julianhille/MuhammaraJS/issues/191
Issue in hummus: https://github.com/galkahana/HummusJS/issues/293
Outline differences to https://nvd.nist.gov/vuln/detail/CVE-2022-25892
The difference is one is in src/deps/PDFWriter/PDFParser.cpp and the other is PDFDocumentHandler.cpp both is a null pointer but for different cases
These 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.
Related
Alias · CVE (1)
- CVE-2022-39381 Muhammara is a node module with c/cpp bindings to modify PDF with js for node or electron (based/replacement on/of galkhana/hummusjs). vulnerability
References
- https://github.com/julianhille/MuhammaraJS/security/advisories/GHSA-rcrx-fpjp-mfrw web
- https://nvd.nist.gov/vuln/detail/CVE-2022-39381 advisory
- https://github.com/galkahana/HummusJS/issues/293 web
- https://github.com/julianhille/MuhammaraJS/issues/191 web
- https://github.com/julianhille/MuhammaraJS/pull/194 web
- https://github.com/galkahana/HummusJS/commit/a9bf2520ab5abb69f9328906e406fbebfb36159a web
- https://github.com/julianhille/MuhammaraJS package