Infinite Recursion DoS in MuPDF mutool clean
CVE-2025-46206 affects Artifex MuPDF versions 1.25.6 and 1.25.5. The issue is an infinite recursion flaw in the mutool clean utility when it processes a crafted PDF file containing cyclic /Next references in the document outline structure. During outline handling, the strip_outline() function recursively traverses outline nodes without safely handling cycles, which can cause unbounded recursion when a malicious PDF introduces a reference loop.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
A successful exploit causes denial of service in mutool clean. Processing a malicious PDF can drive the utility into infinite recursion, leading to stack exhaustion, process hang, or crash, preventing successful document cleaning and potentially disrupting any workflow or service that automatically invokes the utility on untrusted PDFs.
If you can’t patch tonight, do this now.
Do not process untrusted or externally supplied PDF files with vulnerable versions of mutool clean. Where immediate patching is not possible, isolate PDF processing in a sandboxed environment with strict CPU time, memory, and stack limits, and use process supervision/timeouts to terminate hung conversions. Pre-screen PDFs for malformed or cyclic outline structures where feasible.
Patch, then assume compromise.
Upgrade to a MuPDF release that fixes CVE-2025-46206, if available from Artifex. The vulnerable recursion in outline processing should be corrected by adding cycle detection or other recursion-limiting logic in strip_outline() or equivalent outline traversal code. If no fixed version information is currently available, monitor vendor advisories and apply the first patched release.
1 exploit validated by Mallory's analysis.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
6 sources tracked across advisories and community write-ups. News coverage will land here when it surfaces.
No news coverage yet. Advisories and community discussion only.