CVE Catalog

CVE-2026-40505

LowCVSS 3.3
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.17%

6th percentile - higher than 6% of all known CVEs

Summary

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. Malicious ANSI escape codes embedded in PDF metadata are passed unsanitized to terminal output when running mutool info.

Risk Assessment

An attacker can manipulate terminal display to conduct social engineering attacks such as fake prompts or spoofed commands. This may lead to operator mistakes and potential execution of unsafe actions.

Recommendation

Update MuPDF to version 1.27 or later. Avoid running mutool info on untrusted PDF files or sanitize output before displaying it in a terminal.

Other vulnerabilities in MuPDF

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS