CVE-2026-40505

Name
CVE-2026-40505
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.
NVD Severity
unknown
Other trackers
Mailing lists
Exploits
Forges
GitHub (code, issues), Aports (code, issues)

References

Type URI
disclosure@vulncheck.com https://cgit.ghostscript.com/cgi-bin/cgit.cgi/mupdf.git/commit/?id=0f17d789fe8c29b41e47663be82514aaca3a4dfb
disclosure@vulncheck.com https://github.com/ArtifexSoftware/mupdf/commit/0f17d789fe8c29b41e47663be82514aaca3a4dfb
disclosure@vulncheck.com https://github.com/ArtifexSoftware/mupdf/releases/tag/1.27.0
disclosure@vulncheck.com https://www.vulncheck.com/advisories/mupdf-mutool-ansi-injection-via-metadata

Match rules

CPE URI Source package Min version Max version
cpe:2.3:a:artifex:mupdf:*:*:*:*:*:*:*:* mupdf >= None < 1.27.0

Vulnerable and fixed packages

Source package Branch Version Maintainer Status
mupdf edge-community 1.26.12-r0 Sören Tempel <soeren+alpine@soeren-tempel.net> possibly vulnerable
mupdf edge-community 1.26.11-r0 Sören Tempel <soeren+alpine@soeren-tempel.net> possibly vulnerable
mupdf edge-community 1.26.4-r0 Sören Tempel <soeren+alpine@soeren-tempel.net> possibly vulnerable
mupdf edge-community 1.26.2-r0 Sören Tempel <soeren+alpine@soeren-tempel.net> possibly vulnerable
mupdf edge-community 1.25.6-r2 Sören Tempel <soeren+alpine@soeren-tempel.net> possibly vulnerable
mupdf edge-community 1.25.6-r1 Sören Tempel <soeren+alpine@soeren-tempel.net> possibly vulnerable
mupdf edge-community 1.25.6-r0 Sören Tempel <soeren+alpine@soeren-tempel.net> possibly vulnerable
mupdf edge-community 1.25.5-r0 Sören Tempel <soeren+alpine@soeren-tempel.net> possibly vulnerable
mupdf edge-community 1.25.4-r0 Sören Tempel <soeren+alpine@soeren-tempel.net> possibly vulnerable
mupdf edge-community 1.25.3-r0 Sören Tempel <soeren+alpine@soeren-tempel.net> possibly vulnerable
mupdf edge-community 1.25.2-r1 Sören Tempel <soeren+alpine@soeren-tempel.net> possibly vulnerable
mupdf edge-community 1.25.2-r0 Sören Tempel <soeren+alpine@soeren-tempel.net> possibly vulnerable
mupdf edge-community 1.25.1-r0 Sören Tempel <soeren+alpine@soeren-tempel.net> possibly vulnerable
mupdf edge-community 1.24.10-r0 Sören Tempel <soeren+alpine@soeren-tempel.net> possibly vulnerable
mupdf edge-community 1.18.0-r2 Daniel Sabogal <dsabogalcc@gmail.com> possibly vulnerable
mupdf edge-community 1.18.0-r1 Daniel Sabogal <dsabogalcc@gmail.com> possibly vulnerable
mupdf edge-community 1.17.0-r3 None possibly vulnerable
mupdf edge-community 1.13-r0 None possibly vulnerable
mupdf edge-community 1.11-r1 None possibly vulnerable
mupdf edge-community 1.10a-r2 None possibly vulnerable
mupdf edge-community 1.10a-r1 None possibly vulnerable
mupdf 3.23-community 1.26.11-r0 Sören Tempel <soeren+alpine@soeren-tempel.net> possibly vulnerable