CVE-2026-40505
JSON

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 packageVersionsReported by
Artifex Software Inc. MuPDFbefore 1.27.0, 0f17d789fe8c29b41e47663be82514aaca3a4dfbCVE List
artifex mupdfbefore 1.27.0NVD

All scores

VulnCheck4.8medium CVSS:4.0CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
VulnCheck3.3low CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N

Classification

CWE-150

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

SourceRecordLicence
CVE ListCVE-2026-40505 changed 2026-11-08CVE Terms of Use
NVDCVE-2026-40505 changed 2026-10-26Public domain