CVE-2026-40505

MuPDF < 1.27 mutool ANSI Injection via Metadata

State
Published
Severity
4.8 Medium
Published
Apr 16, 2026
Updated
Jul 14, 2026
Reserved
Apr 13, 2026

Read the record on cve.org

Description

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.

Scores

CVSSScoreVectorSource
4.04.8 MediumCVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:NVulnCheck
3.13.3 LowCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:NVulnCheck

Weaknesses

  • CWE-150 Improper Neutralization of Escape, Meta, or Control Sequences

Affected Products

ProductVersions
MuPDFArtifex Software Inc.
  • before 1.27.0Affected
  • 0f17d789fe8c29b41e47663be82514aaca3a4dfbAffected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.