Vulnerability in Artifex Mupdf
CVE-2026-40505
MuPDF before 1.27 contains an ANSI injection vulnerability in mutool that allows attackers to inject arbitrary ANSI escape sequences through crafted PDF metadata fields. Attackers can embed malicious ANSI escape codes in PDF metadata that are passed unsanitized to terminal output when running mutool info, enabling them to manipulate terminal display for social engineering attacks such as presenting fake prompts or spoofed commands.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 3.3 (Low). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N.
EPSS exploit prediction
EPSS 0.002, 6.7th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Artifex Mupdf
- Artifex Software Inc. Mupdf — versions 0, 0f17d789fe8c29b41e47663be82514aaca3a4dfb
Weakness classification (CWE)
References
- MuPDF 1.27.0 Release Notes (release-notes, Product)
- github.com/ArtifexSoftware/mupdf/commit/0f17d789fe8c29b41e47663be82514aaca3a4dfb (Patch, patch)
- cgit.ghostscript.com/cgi-bin/cgit.cgi/mupdf.git/commit/ (issue-tracking, Patch)
- www.vulncheck.com/advisories/mupdf-mutool-ansi-injection-via-metadata (Third Party Advisory, third-party-advisory)