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.
Problem types
CWE-150 Improper Neutralization of Escape, Meta, or Control Sequences
Product status
Any version before 1.27.0
0f17d789fe8c29b41e47663be82514aaca3a4dfb (git)
Credits
Niel Duysters
References
github.com/ArtifexSoftware/mupdf/releases/tag/1.27.0
github.com/...ommit/0f17d789fe8c29b41e47663be82514aaca3a4dfb
cgit.ghostscript.com/...d789fe8c29b41e47663be82514aaca3a4dfb
www.vulncheck.com/...updf-mutool-ansi-injection-via-metadata