CVE Tools
Home/Vulnerability/CVE-2026-40505

CVE-2026-40505

MuPDF mutool ANSI Injection via Metadata

Published: Apr 16, 2026Updated: Apr 16, 2026 Sources: CVE List NVD
3.3CVSS
LOW

MuPDF mutool does not sanitize PDF metadata fields before writing them to terminal output, allowing attackers to inject arbitrary ANSI escape sequences through crafted PDF metadata. Attackers can embed malicious ANSI escape codes in PDF metadata that are passed unsanitized to the terminal when running mutool info, enabling them to clear the terminal display and render arbitrary text for social engineering attacks such as presenting fake prompts or spoofed commands.

EPSS Score
0.0%
Top 98.1%
CISA KEV
Not in KEV
Exploits
No Known Exploits
Remediation
No Fix Available

CVSS Vector Breakdown

AV:LAC:LPR:NUI:RS:UC:NI:LA:N
Exploitability
AV:LAttack Vector
Local
AC:LAttack Complexity
Low
PR:NPrivileges Required
None
UI:RUser Interaction
Required
Scope
S:UScope
Unchanged
Impact
C:NConfidentiality
None
I:LIntegrity
Low
A:NAvailability
None

Weaknesses

Affected Products

MuPDF
Artifex Software Inc.

Exploitability

No known exploits, KEV entries, or remediation guidance available for this vulnerability yet.

References

Timeline

Published
Apr 16, 2026
Last Updated
Apr 16, 2026

Unlock Complete Vulnerability Intelligence

Get the full picture for CVE-2026-40505 and every CVE in our database. Create a free account — no credit card required.

Create Free Account
AI-powered analysis
Plain-language impact assessment and exploitation scenario
Attack graph visualization
Interactive attack path and kill chain mapping
Exploit details & PoC links
ExploitDB, Metasploit, GitHub PoCs with direct links
Nuclei scanner templates
Ready-to-use vulnerability scanner templates
Full remediation guide
Patch instructions, workarounds, and compliance impact
Interactive AI chat
Ask questions about this vulnerability in natural language
Related vulnerabilities
Semantically similar CVEs and attack patterns
REST API & MCP access
Integrate vulnerability data into your workflows