4.8medium
MuPDF < 1.27 mutool ANSI Injection via Metadata
- Severity
- 4.8medium CVSS:4.0 by VulnCheck
- Exploit likelihood
- 0.17% (higher than 6% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- VulnCheck
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Artifex Software Inc. MuPDF | before 1.27.0, 0f17d789fe8c29b41e47663be82514aaca3a4dfb | CVE List |
| artifex mupdf | before 1.27.0 | NVD |
All scores
| VulnCheck | 4.8medium CVSS:4.0 | 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 |
| VulnCheck | 3.3low CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
MuPDF anterior a 1.27 contiene una vulnerabilidad de inyección ANSI en mutool que permite a los atacantes inyectar secuencias de escape ANSI arbitrarias a través de campos de metadatos PDF creados maliciosamente. Los atacantes pueden incrustar códigos de escape ANSI maliciosos en los metadatos del PDF que se pasan sin sanear a la salida de la terminal al ejecutar mutool info, lo que les permite manipular la visualización de la terminal para ataques de ingeniería social, como presentar avisos falsos o comandos suplantados.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-40505 changed 2026-11-08 | CVE Terms of Use |
| NVD | CVE-2026-40505 changed 2026-10-26 | Public domain |