3.3Low

CVE-2026-40505MuPDF < 1.27 mutool ANSI Injection via Metadata

Artifex Software Inc. MuPDF Published: (7 months ago)

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.

Weakness (CWE): CWE-150

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
Artifex Software Inc. MuPDF < 1.27.0

References and patches

CPE matches (NVD) (1)

  • cpe:2.3:a:artifex:mupdf:*:*:*:*:*:*:*:* < 1.27.0