- 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.
- Last modified
- A 0-100 score for how much a CVE matters across the industry: exploitation, exposure, how widely the software is used, severity and whether a fix exists.What do these mean? →
- 17/100 · provisional
- The share of the registry's downloads of each affected package in the window that were versions inside the affected ranges. Downloads, not users or installs: CI runs and mirrors inflate the counts.
- 43% of muhammara downloads last week were affected versions (29.1K).npm, 67.8K downloads in the last 7 days, read Nov 9, 2026
- The rating the maker of the software gives it. Shown when it differs from the CVSS level.What do these mean? →
- High (ghsa)
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
Muhammara, a PDF library, has a NULL pointer dereference in its LZWDecode filter that crashes the process when it reads a crafted PDF whose DecodeParms dictionary lacks the EarlyChange key. An attacker who can supply such a PDF to an application that reads stream contents can cause a denial of service.
Written by anthropic/claude-haiku-5.5 from the sources below. Verify against them.
Read the original description
A NULL pointer dereference vulnerability exists in PDFParser::CreateFilterForStream() when processing a PDF stream with /Filter /LZWDecode and a /DecodeParms dictionary that does not contain the EarlyChange key. This causes an access violation (0xC0000005) and crashes the process.
Affected Version
muhammara <= 6.0.4 (latest)
Vulnerability Details
File: src/deps/PDFWriter/PDFParser.cpp line 2107
if (inDecodeParams)
{
PDFObjectCastPtr<PDFInteger> earlyObj(
QueryDictionaryObject(inDecodeParams, "EarlyChange")
);
early = earlyObj->GetValue(); // NULL dereference when EarlyChange key is absent
}When inDecodeParams is non-NULL but lacks the EarlyChange key:
QueryDictionaryObject()returns NULLPDFObjectCastPtr<PDFInteger>(NULL)wraps NULLearlyObj->GetValue()dereferences NULL → crash
PoC
460-byte malicious PDF triggers crash via startReadingFromStream():
- PDF contains
/Filter /LZWDecodewith/DecodeParms << >>(empty, no EarlyChange) - Exit code:
0xC0000005(Access Violation)
Fix
if (earlyObj)
early = earlyObj->GetValue();Impact
Any application accepting untrusted PDFs and using muhammara to read stream contents is vulnerable to DoS.
Similar to: CVE-2022-41957, CVE-2022-39381
PoC File
poc_muhammara_lzw_null.js
cve.now Index
- Exploitation?/40Unknown. No CISA SSVC exploitation rating yet
- Exposure?/25Unknown. No advisory context yet
- Reach10/20Affects npm packages
- Severity7/10Rated high by ghsa
- No patch0/5No signal
What would change the score
- Would score about 72 if added to CISA KEV
- Would score about 67 if CISA's SSVC rates exploitation active
- Would score about 39 if advisories confirm default setups are exposed
Impact
What to do
Upgrade to a fixed version: 6.0.5.
Timeline
- Advisory published
- Record last updated
Affected versions
- muhammaranpm
fixed in 6.0.5
Fixed in 6.0.5 (released May 23, 2026, 34 days before disclosure).
The latest release, 6.0.6, is not affected.
Evidence 3
- Advisory
- Repository
- Repository
Corrections
None so far.
Something wrong on this page? Report an error. Every fix is listed here.
Questions about GHSA-FHP4-PR5J-46M5
Is GHSA-FHP4-PR5J-46M5 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
Which versions are affected by GHSA-FHP4-PR5J-46M5?
muhammara (npm): before 6.0.5.Source: cve.now feed data
How do I fix GHSA-FHP4-PR5J-46M5?
Upgrade to a fixed version: 6.0.5.Source: cve.now feed data