Advisory

GHSA-rcrx-fpjp-mfrw

Also known as: CVE-2022-39381

Summary

Unchecked Return Value to NULL Pointer Dereference in PDFDocumentHandler.cpp

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-11-02 18:10 UTC
Modified
2023-11-08 04:10 UTC

Affected packages and fixes

muhammara

npm · All systems

Affected

  • introduced 0, fixed 2.6.0 (semver)

Fixed versions

2.6.0

Fix

hummus

npm · All systems

Affected

  • introduced 0, fixed 1.0.111 (semver)

Fixed versions

1.0.111

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences