Read the docs
TI-2026-29255 Aliases CVE-2026-40505GHSA-hj44-m5xv-x75q

MuPDF < 1.27 mutool ANSI Injection via Metadata

Priority LOW 21CWE-150Published · Updated

Key facts

Attack vector
Local
Privileges required
None
User interaction
Passive
Attack complexity
Low
Attack requirements
None
Impact type
—
Confidentiality · integrity · availability
None · Low · None
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA.

Summary

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00166 5th percentileScored 2026-11-07
Fix Fixed MuPDF (Artifex Software Inc.): 1.27.0

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
ArtifexMuPDFbefore 1.27.01.27.0Patch availableCNA
  • MuPDF VendorArtifex Affected before 1.27.0 Fixed in 1.27.0 Patch available CNA

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:artifex:mupdf:*:*:*:*:*:*:*:*before 1.27.0VulnerableArtifex
  • cpe:2.3:a:artifex:mupdf:*:*:*:*:*:*:*:* Versions before 1.27.0 Vulnerable ·Artifex

Remediation

  • Fix · CNA MuPDF (Artifex Software Inc.) Fixed in 1.27.0

Vendor assessments

Red Hat

Red Hat's page for this CVE →

Not affected: 1 product
  • Red Hat

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-40505
  2. 2026-10-03 Alias added: GHSA-hj44-m5xv-x75q

References

  • TI-2024-16051 freeglut through 3.4.0 was discovered to contain a memory leak via the menuEntry variable… CVSS 3.1HIGH 7.5
  • TI-2023-27942 A floating point exception (divide-by-zero) vulnerability was discovered in Artifex MuPDF… CVSS 3.1HIGH 7.5
  • TI-2021-02374 Double free in mupdf CVSS 3.1HIGH 7.8
  • TI-2016-07185 Out-of-bounds write in Artifex MuPDF CVSS 3.1HIGH 7.8
  • TI-2012-04514 SumatraPDF 2.1.1/MuPDF 1.0 allows remote attackers to cause an Integer Overflow in the… CVSS 3.1HIGH 7.8
  • TI-2023-27939 A floating point exception (divide-by-zero) vulnerability was discovered in Artifex MuPDF… CVSS 3.1HIGH 7.5
See all 66 →

Sources