CVE-2026-40505

MEDIUM CVSS 4.0: 4.8 EPSS 0.17%
Updated Oct 27, 2026
Artifex
Parameter Value
CVSS 4.8 (MEDIUM)
Affected Versions before 1.27.0
Fixed In 1.27.0
Type CWE-150
Vendor Artifex
Public PoC No

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.

Attack Parameters

Attack Vector
Local
Requires local access
Attack Complexity
Low
Easy to exploit
Attack Requirements
None
No additional conditions
Privileges Required
None
No privileges needed
User Interaction
Passive
Minimal interaction

Impact Assessment

Confidentiality
None
No data leak
Integrity
Low
Partial data modification
Availability
None
No disruption

CVSS Vector v4.0

Weakness Type (CWE)

Vulnerable Products 1

Configuration From (including) Up to (excluding)
Artifex Mupdf
cpe:2.3:a:artifex:mupdf:*:*:*:*:*:*:*:*
— 1.27.0