CVE-2026-40505
3.3 LOWMuPDF before 1.27 contains an ANSI injection vulnerability in mutool that allows attackers to inject arbitrary ANSI escape sequences thro...
Published: 2026-04-16 · Last updated: 2026-05-26
Severity and scoring
- CVSS
- 3.3 LOW
- Vector
- CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
- CWE
- CWE-150
Affected products
| Vendor | Product |
|---|---|
| artifex | mupdf |
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.
Source: NVD
References
- [NVD]https://nvd.nist.gov/vuln/detail/CVE-2026-40505
- [Patch]https://cgit.ghostscript.com/cgi-bin/cgit.cgi/mupdf.git/commit/?id=0f17d789fe8c29b41e47663be82514aaca3a4dfb
- [Patch]https://github.com/ArtifexSoftware/mupdf/commit/0f17d789fe8c29b41e47663be82514aaca3a4dfb
- [Other]https://github.com/ArtifexSoftware/mupdf/releases/tag/1.27.0
- [Other]https://www.vulncheck.com/advisories/mupdf-mutool-ansi-injection-via-metadata
Related CVEs
Same CWE
- CVE-2026-9270 — DataDog::DogStatsd versions through 0.07 for Perl allow metric injections (9.1 CRITICAL)
- CVE-2026-11362 — DataDog::DogStatsd versions through 0.07 for Perl allow metric injections from event tags (9.8 CRITICAL)
- CVE-2026-47090 — Claude HUD through 0.0.12, patched in commit 234d9aa, constructs OSC 8 terminal hyperlink escape sequences using raw cwd and branchUrl va... (4.6 MEDIUM)
- CVE-2026-45038 — Tabby (formerly Terminus) is a highly configurable terminal emulator (7.8 HIGH)
- CVE-2026-45803 — `gh` is GitHub’s official command line tool (3.5 LOW)