Skip to content
CVE PROGRAM SOURCE RECORD4.8 Medium

CVE-2026-40505

MuPDF < 1.27 mutool ANSI Injection via Metadata

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 products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Artifex Software Inc. MuPDF

Default version status: unaffected

  • 0 to < 1.27.0affected
  • 0f17d789fe8c29b41e47663be82514aaca3a4dfbaffected

References