CVE-2026-125107

Muhammara: NULL pointer dereference in LZWDecode filter when DecodeParms omits EarlyChange key

Published Nov 9, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
Description
Muhammara is a node module with c/cpp bindings to modify PDF with JavaScript for node or electron. Prior to 6.0.5, Muhammara PDFParser::CreateFilterForStream() in src/deps/PDFWriter/PDFParser.cpp dereferences a null PDFInteger pointer when a PDF stream uses the LZWDecode filter with a DecodeParms dictionary that omits the EarlyChange key. An application that processes an untrusted PDF and reads the affected stream can crash, causing a denial of service. This issue is fixed in version 6.0.5.

Analysis

AI-generated

Technical impact

A null pointer dereference occurs in the LZWDecode filter of MuhhammaraJS when a streamed PDF includes a DecodeParms dictionary that lacks the EarlyChange key. This flaw causes the PDFParser::CreateFilterForStream() routine to crash upon reading the affected stream, potentially rendering the application that processes the PDF unavailable. The weakness is a classic null pointer dereference (CWE‑476).

Affected Systems

The vulnerability affects the MuhammaraJS package provided by julianhille. Versions older than 6.0.5 are impacted; the fix was applied in the 6.0.5 release and later. Users running any Node or Electron application that incorporates MuhhammaraJS to process PDFs should verify their installed version.

Risk and Exploitability

The CVSS score of 7.5 indicates a high severity, and the absence of an EPSS score or KEV listing suggests the vulnerability is known but exploitation data is currently unavailable. An attacker can trigger the crash by crafting a PDF that uses the LZWDecode filter without the EarlyChange key and delivering it to an application that processes PDFs with MuhammaraJS. The impact is limited to availability—no direct compromise of confidentiality or integrity can be inferred from the supplied data. Consequently, environments that rely on untrusted PDF inputs are at heightened risk of denial of service until patched.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade MuhammaraJS to version 6.0.5 or later, which removes the null dereference.
  • If immediate upgrade is not possible, restrict the environment so that only trusted PDFs are processed by applications using MuhammaraJS.
  • Consider disabling or bypassing the LZWDecode filter for PDFs lacking the EarlyChange key until the package can be updated, to avoid triggering the crash.

Generated by OpenCVE AI on November 9, 2026 at 22:32 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-fhp4-pr5j-46m5 Muhammara has a NULL pointer dereference in LZWDecode filter when DecodeParms omits EarlyChange key
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Julianhille
Julianhille muhammarajs
Vendors & Products Julianhille
Julianhille muhammarajs
Type Values Removed Values Added
Description Muhammara is a node module with c/cpp bindings to modify PDF with JavaScript for node or electron. Prior to 6.0.5, Muhammara PDFParser::CreateFilterForStream() in src/deps/PDFWriter/PDFParser.cpp dereferences a null PDFInteger pointer when a PDF stream uses the LZWDecode filter with a DecodeParms dictionary that omits the EarlyChange key. An application that processes an untrusted PDF and reads the affected stream can crash, causing a denial of service. This issue is fixed in version 6.0.5.
Title Muhammara: NULL pointer dereference in LZWDecode filter when DecodeParms omits EarlyChange key
Weaknesses CWE-476
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 10, 2026, 4:13 PM
Reserved
Nov 9, 2026, 5:45 PM
Status
Deferred
Published
Nov 9, 2026, 10:18 PM
Modified
Nov 12, 2026, 10:18 PM