Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconAttacker crafts PDF with malicious metadata
-
DeliveryAttacker distributes PDF to target user
-
ExploitUser executes mutool info on PDF
-
InstallMutool outputs unsanitized metadata to terminal
-
C2ANSI sequences execute in terminal
-
ExecuteTerminal display is manipulated
-
ImpactUser is socially engineered to enter credentials or execute commands
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Escape character neutralization
|
| Exploitation Conditions | The vulnerability requires the following specific conditions: the user must execute mutool info (or a similar mutool command that outputs metadata) on an attacker-supplied PDF file containing malicious ANSI escape sequences in metadata fields. The attack depends on user interaction (UI:R in CVSS) - the vulnerability is not exploitable remotely or without the user actively running the tool. Local file system access is required to provide the crafted PDF to the target system. The terminal must interpret ANSI escape sequences (most modern terminals do; some restricted or hardened terminals may not). The user must not have awareness or defensive training regarding spoofed terminal output. No special MuPDF configuration or non-default settings are required; the vulnerability exists in the default behavior of the mutool info command across all versions prior to the patch. |
| Impact | The CVSS 3.3 score reflects low severity with low-risk attack parameters: local access vector (AV:L), low complexity (AC:L), no privileges required (PR:N), but mandatory user interaction (UI:R) and limited impact (only integrity; no confidentiality or availability). The attack vector is local, not network, and requires the user to explicitly run mutool info on an attacker-controlled PDF, limiting real-world exposure. EPSS or active exploitation data is not provided, but the presence of a vendor-released patch and public advisory from VulnCheck indicates this is a known, documented issue rather than a zero-day. The primary risk is social engineering via terminal spoofing, not code execution or data exfiltration. Organizations should prioritize higher-severity vulnerabilities; however, this should be patched in routine update cycles, especially for systems where users frequently process untrusted PDFs. The actual risk depends on user behavior: if users are trained to inspect metadata sources or if mutool is run only on trusted files, exploitation likelihood is minimal. |
| Exploit ScenarioDerived | An attacker creates a PDF with a crafted Title metadata field containing ANSI escape codes, such as \033[2J (clear screen) followed by fake text resembling a login prompt. The attacker distributes this PDF via email or file sharing. A user, thinking they are running a legitimate PDF inspection tool, executes mutool info malicious.pdf, which displays the terminal-cleared screen and spoofed prompt. The user then enters their credentials into the fake prompt, which the attacker captures via a background script or social engineering follow-up. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 16, 2026
MuPDF mutool fails to sanitize PDF metadata before displaying it in terminal output, allowing local attackers to inject ANSI escape sequences through crafted PDF files. When a user runs mutool info on a malicious PDF, embedded escape codes can clear the terminal and display fabricated text for social engineering attacks such as fake login prompts or spoofed shell commands. This is a low-severity local vulnerability (CVSS 3.3) requiring user interaction, with a vendor-released patch available.
RemediationAI
Update MuPDF to a version incorporating commit 0f17d789fe8c29b41e47663be82514aaca3a4dfb or later. The patch is available from the Ghostscript MuPDF repository at https://cgit.ghostscript.com/cgi-bin/cgit.cgi/mupdf.git/commit/?id=0f17d789fe8c29b41e47663be82514aaca3a4dfb. Until patched, users can mitigate by: redirecting mutool info output through a tool that sanitizes ANSI sequences (e.g., piping through sed or using the cat -v flag to display escape sequences literally), restricting mutool usage to trusted PDFs only, or disabling shell features that process PDF metadata (such as running mutool in a restricted terminal environment). As a compensating control, administrators can disable or remove mutool from systems where it is not actively required, or restrict its use to trusted internal documents only. However, these workarounds do not eliminate the social engineering vector and should be considered temporary until patching is completed.
Affected VersionsENISA
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
MuPDF is a lightweight PDF rendering library and the mutool command-line utility is used to inspect and manipulate PDF files. The vulnerability exploits insufficient input validation of PDF metadata fields (such as Title, Author, Subject) that are passed directly to terminal output without ANSI escape sequence filtering. CWE-150 (Improper Neutralization of Escape, Meta, or Control Sequences) describes the root cause: untrusted metadata content is written to the terminal without stripping control characters that the terminal interprets as commands (e.g., cursor movement, text color, display clearing). The affected product is MuPDF across versions prior to the patched commit, as indicated by the CPE string cpe:2.3:a:artifex_software_inc.:mupdf:*:*:*:*:*:*:*:* covering all versions.
Know when Mupdf gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
4DescriptionCVE.org
MuPDF mutool does not sanitize PDF metadata fields before writing them to terminal output, allowing attackers to inject arbitrary ANSI escape sequences through crafted PDF metadata. Attackers can embed malicious ANSI escape codes in PDF metadata that are passed unsanitized to the terminal when running mutool info, enabling them to clear the terminal display and render arbitrary text for social engineering attacks such as presenting fake prompts or spoofed commands.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Stack-based buffer overflow in the xps_parse_color function in xps/xps-common.c in MuPDF 1.3 and earlier allows remote a
An issue was discovered in Artifex MuPDF before 1912de5f08e90af1d9d0a9791f58ba3afdb9d465. Rated high severity (CVSS 7.5)
Stack-based buffer overflow in jstest_main.c in mujstest in Artifex Software, Inc. Rated high severity (CVSS 7.8), this
Artifex MuPDF 1.11 allows attackers to execute arbitrary code or cause a denial of service via a crafted .xps file, rela
Artifex MuPDF 1.11 allows attackers to cause a denial of service or possibly have unspecified other impact via a crafted
Artifex MuPDF 1.11 allows attackers to cause a denial of service or possibly have unspecified other impact via a crafted
Artifex MuPDF 1.15.0 has a heap-based buffer overflow in fz_append_display_node located at fitz/list-device.c, allowing
In Artifex MuPDF 1.12.0 and earlier, a stack buffer overflow in function pdf_lookup_cmap_full in pdf/pdf-cmap.c could al
Artifex Mupdf version 1.12.0 contains a Use After Free vulnerability in fz_keep_key_storable that can result in DOS / Po
freeglut through 3.4.0 was discovered to contain a memory leak via the menuEntry variable in the glutAddMenuEntry functi
freeglut 3.4.0 was discovered to contain a memory leak via the menuEntry variable in the glutAddSubMenu function. Rated
A floating point exception (divide-by-zero) vulnerability was discovered in Artifex MuPDF 1.23.4 in functon compute_colo
EUVD-2026-23147
GHSA-hj44-m5xv-x75q
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB