Skip to content
OpenAdvisories
Low · 3.3 CVE-2026-40505 EUVD-2026-23147GHSA-hj44-m5xv-x75q

MuPDF < 1.27 mutool ANSI Injection via Metadata

Published Apr 16, 2026 · Updated Nov 8, 2026 · 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 products

VendorProductAffectedFixed
Artifex Software MuPDF < 1.27.0 1.27.0

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 mupdf 1.27.0+ds1-5 —
Debian 13 mupdf No fix yet —
Debian 12 mupdf No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 mupdf No fix yet —
Ubuntu 26.04 LTS mupdf No fix yet —
Ubuntu 25.10 mupdf No fix yet —
Show 5 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 24.04 LTS mupdf No fix yet —
Ubuntu Pro 22.04 LTS mupdf No fix yet —
Ubuntu Pro 20.04 LTS mupdf No fix yet —
Ubuntu Pro 18.04 LTS mupdf No fix yet —
Ubuntu Pro 16.04 LTS mupdf No fix yet —

References