muhammara
Affected
- introduced
0, fixed6.0.5(semver)
Fixed versions
6.0.5
Fix
- Fixed version
6.0.5npm install [email protected]
Advisory
Also known as: CVE-2026-125107
Muhammara has a NULL pointer dereference in LZWDecode filter when DecodeParms omits EarlyChange key
Summary
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 → crashPoC
460-byte malicious PDF triggers crash via startReadingFromStream():
/Filter /LZWDecode with /DecodeParms << >> (empty, no EarlyChange)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
High Basis: The source's own band: HIGH
0, fixed 6.0.5 (semver)6.0.5
6.0.5npm install [email protected]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
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0