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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Artifex Software | MuPDF | < 1.27.0 | 1.27.0 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | mupdf | 1.27.0+ds1-5 | — |
| Debian 13 | mupdf | No fix yet | — |
| Debian 12 | mupdf | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | mupdf | No fix yet | — |
| Ubuntu 26.04 LTS | mupdf | No fix yet | — |
| Ubuntu 25.10 | mupdf | No fix yet | — |
Show 5 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 24.04 LTS | mupdf | No fix yet | — |
| Ubuntu Pro 22.04 LTS | mupdf | No fix yet | — |
| Ubuntu Pro 20.04 LTS | mupdf | No fix yet | — |
| Ubuntu Pro 18.04 LTS | mupdf | No fix yet | — |
| Ubuntu Pro 16.04 LTS | mupdf | No fix yet | — |
References
- MuPDF 1.27.0 Release Notes release-notes
- https://github.com/ArtifexSoftware/mupdf/commit/0f17d789fe8c29b41e47663be82514aaca3a4dfb patch
- https://cgit.ghostscript.com/cgi-bin/cgit.cgi/mupdf.git/commit/?id=0f17d789fe8c29b41e47663be82514aaca3a4dfb issue-tracking
- https://www.vulncheck.com/advisories/mupdf-mutool-ansi-injection-via-metadata third-party-advisory