ANSI Injection Vulnerability in MuPDF Mutool by Artifex Software
CVE-2026-40505
4.8MEDIUM
What is CVE-2026-40505?
The MuPDF mutool tool is susceptible to an ANSI injection vulnerability due to improper sanitization of PDF metadata fields. Attackers can exploit this flaw by inserting malicious ANSI escape sequences into the metadata of a crafted PDF. When the mutool info command is run, these sequences are unsanitized and displayed in the terminal, allowing attackers to manipulate terminal output. This could enable social engineering attacks, where malicious actors clear the terminal display or present fraudulent prompts, compromising user trust and security.
Affected Version(s)
MuPDF 0 < 0f17d789fe8c29b41e47663be82514aaca3a4dfb
