ANSI Injection Vulnerability in MuPDF Mutool by Artifex Software
CVE-2026-40505

4.8MEDIUM

Key Information:

Status
Vendor
CVE Published:
16 April 2026

What is CVE-2026-40505?

The MuPDF mutool tool is susceptible to an ANSI injection vulnerability due to improper sanitization of PDF metadata fields. Attackers can exploit this flaw by inserting malicious ANSI escape sequences into the metadata of a crafted PDF. When the mutool info command is run, these sequences are unsanitized and displayed in the terminal, allowing attackers to manipulate terminal output. This could enable social engineering attacks, where malicious actors clear the terminal display or present fraudulent prompts, compromising user trust and security.

Affected Version(s)

MuPDF 0 < 0f17d789fe8c29b41e47663be82514aaca3a4dfb

References

CVSS V4

Score:
4.8
Severity:
MEDIUM
Confidentiality:
None
Integrity:
Low
Availability:
None
Attack Vector:
Local
Attack Complexity:
Low
Attack Required:
None
Privileges Required:
Undefined
User Interaction:
Unknown

Timeline

  • Vulnerability published

  • Vulnerability Reserved

Credit

Niel Duysters
.