High

Unchecked Return Value to NULL Pointer Dereference in PDFDocumentHandler.cpp

  • Disclosed: 02.11.2022
  • Updated: 11.10.2026 10:22

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.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
npm package hummus < 1.0.111 1.0.111
npm package muhammara < 2.6.0 2.6.0

References

CVSS score 7.5/10
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness (CWE)
CWE-476, CWE-690
Platform
npm
Package
hummus, muhammara
Disclosed
02.11.2022
Updated
11.10.2026 10:22

Sources and licenses

OSV / GitHub Advisory Database - GHSA-rcrx-fpjp-mfrw - CC BY 4.0

Vulnerability history: muhammara

All published vulnerabilities of this package (npm package), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
5
First → latest
11.2022 06.2026
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • High 5

Disclosures per year

  1. 2022: 4
  2. 2023: 0
  3. 2024: 0
  4. 2025: 0
  5. 2026: 1
  1. High · 7.5 CVE-2022-41957 >= 3.0.0, < 3.4.0, < 2.6.2 3.4.0, 2.6.2
  2. Unchecked Return Value to NULL Pointer Dereference in PDFDocumentHandler.cpp this entry
    High · 7.5 CVE-2022-39381 < 2.6.0 2.6.0
  3. High · 7.5 CVE-2022-25892 < 2.6.1, >= 3.0.0, < 3.1.1 2.6.1, 3.1.1

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.