CVE-2026-40505
Last modified
CVE-2026-40505 is a medium-severity vulnerability rated 4.8/10 on the CVSS scale. 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.. EPSS estimates a 0.17% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Artifex | Mupdf | < 1.27.0 |
References
- https://www.vulncheck.com/advisories/mupdf-mutool-ansi-injection-via-metadataThird Party Advisory
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2026-40505?
How severe is CVE-2026-40505?
How do I fix CVE-2026-40505?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-40499radare2 prior to version 6.1.4 contains a command injection …7.8
- CVE-2026-40500Rejected reason: This CVE ID has been rejected or withdrawn …
- CVE-2026-40501Cherry Studio versions 1.2.2 through 1.9.12, fixed in commit…8.8
- CVE-2026-40502OpenHarness prior to commit dd1d235 contains a command injec…8.8
- CVE-2026-40503OpenHarness prior to commit dd1d235 contains a path traversa…7.1
- CVE-2026-40504Creolabs Gravity before 0.9.6 contains a heap buffer overflo…9.8
- CVE-2026-4051IBM Engineering Lifecycle Management 7.0.3, 7.1.0, and 7.2.0…7.2
- CVE-2026-40510OpenSC before 0.27.0-rc1, fixed in commit 3f24f0b, contains …6.8
- CVE-2026-40512Rejected reason: This CVE ID has been rejected or withdrawn …
- CVE-2026-40514SmarterTools SmarterMail builds prior to 9610 contain a cryp…9.1
- CVE-2026-40515OpenHarness before commit bd4df81 contains a permission bypa…5.5
- CVE-2026-40516OpenHarness before commit bd4df81 contains a server-side req…6.3
Are you affected by CVE-2026-40505?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
