Skip to main content
← Vulnerabilities

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

Only affects MuhammaraJS 6.0.4 and earlier when parsing PDF streams that use LZWDecode without the EarlyChange key. Fixed in 6.0.5.

Written by anthropic/claude-haiku-5.5 from the sources below. Verify against them.

7.5HighCNA
Exploited
No known exploitation
Fix
Fixed in 6.0.5
Who is exposed
Not reported

Do first: Upgrade to a fixed version: 6.0.5.

Published
Last modified
25/100 · provisional
Unclear
None on Exploit-DB, Metasploit or GitHub

Summary

Muhammara, a Node.js and Electron module for modifying PDFs, has a null pointer dereference in its LZWDecode filter that an attacker can trigger remotely, without logging in, by supplying a crafted PDF to an application that processes untrusted files. Exploiting it crashes the application, causing a denial of service.

Read the original 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.

cve.now Index

25Pcve.now Index 25 of 100 · methodology v3 · provisional
  • Exploitation?/40Unknown. No CISA SSVC exploitation rating yet
  • Exposure17/25No login or user action needed, reachable over the network without a login · Unknown: Advisories don't say whether default setups are affected
  • Reach?/20Unknown. No tracked technology or package matched
  • Severity7.5/10CVSS 7.5
  • No patch0/5No signal

What would change the score

  • Would score about 70 if added to CISA KEV
  • Would score about 65 if CISA's SSVC rates exploitation active
  • Would score about 30 if advisories confirm default setups are exposed

What to do

  • Upgrade to a fixed version: 6.0.5.

Timeline

  1. CVE published
  2. First seen by cve.now

Affected versions

  • julianhille MuhammaraJS

    fixed in 6.0.5

Evidence 3

  1. Advisory
  2. Repository
  3. Repository

Corrections

None so far.

Something wrong on this page? Report an error. Every fix is listed here.

Questions about CVE-2026-125107

Is CVE-2026-125107 being exploited?

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.Source: cve.now feed data

What does this mean?

When a PDF stream uses the LZWDecode filter and its DecodeParms dictionary lacks the EarlyChange key, the library dereferences a null pointer and crashes with an access violation. The result is a denial of service, because the process stops when it reads that stream.Source: github.com

Which versions are affected by CVE-2026-125107?

MuhammaraJS: before 6.0.5.Source: cve.now feed data

Am I affected, and how do I check?

The advisory lists muhammara 6.0.4 and earlier as affected, and the bug only triggers on PDF streams that use LZWDecode with DecodeParms missing EarlyChange. To check, look at the installed muhammara or MuhammaraJS package version and inspect the PDFs being processed for that filter and parameter setup.Source: github.com

How do I fix CVE-2026-125107?

Upgrade to MuhammaraJS 6.0.5, which is the fixed version listed for this vulnerability.Source: github.com