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.
Metrics
Affected Vendors & Products
References
History
Thu, 16 Apr 2026 01:45:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| Description | 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. | |
| Title | MuPDF mutool ANSI Injection via Metadata | |
| Weaknesses | CWE-150 | |
| References |
| |
| Metrics |
cvssV3_1
|
Status: PUBLISHED
Assigner: VulnCheck
Published:
Updated: 2026-04-16T01:21:45.703Z
Reserved: 2026-04-13T20:29:02.808Z
Link: CVE-2026-40505
No data.
Status : Received
Published: 2026-04-16T02:16:11.887
Modified: 2026-04-16T02:16:11.887
Link: CVE-2026-40505
No data.
OpenCVE Enrichment
Updated: 2026-04-16T02:15:21Z