4.8
/ 10
MEDIUM
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
Description
MuPDF mutool does not sanitize PDF metadata fields before writing them to terminal output, allowing attackers to inject arbitrary ANSI escape sequences through crafted PDF metadata. Attackers can embed malicious ANSI escape codes in PDF metadata that are passed unsanitized to the terminal when running mutool info, enabling them to clear the terminal display and render arbitrary text for social engineering attacks such as presenting fake prompts or spoofed commands.
Basic Information
ID
CVE-2026-40505
Source
VulnCheck
Published
Apr 16, 2026 at 01:20
Modified
Apr 16, 2026 at 01:21
Affected Product
Vendor
Artifex Software Inc.
Product
MuPDF
Affected Versions
Artifex Software Inc. MuPDF 0