Vulnerability 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.
CVSS Score
LOW
Related Weaknesses (CWE)
References
- https://cgit.ghostscript.com/cgi-bin/cgit.cgi/mupdf.git/commit/?id=0f17d789fe8c2
- https://github.com/ArtifexSoftware/mupdf/commit/0f17d789fe8c29b41e47663be82514aa
- https://github.com/ArtifexSoftware/mupdf/releases/tag/1.27.0
- https://www.vulncheck.com/advisories/mupdf-mutool-ansi-injection-via-metadata
FAQ
What is CVE-2026-40505?
CVE-2026-40505 is a vulnerability with a CVSS score of 3.3 (LOW). 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 ...
How severe is CVE-2026-40505?
CVE-2026-40505 has been rated LOW with a CVSS base score of 3.3/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-40505?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.