MuPDF < 1.27 mutool ANSI Injection via Metadata
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
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
Remediation
- Fix · CNA MuPDF (Artifex Software Inc.) Fixed in 1.27.0
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2026-40505
- 2026-10-03 Alias added: GHSA-hj44-m5xv-x75q
References
More Artifex Mupdf vulnerabilities
- 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
Sources
- CVE-2026-40505 · CVE Program
- CVE-2026-40505 · NVD
- FIRST EPSS
- GHSA-hj44-m5xv-x75q · GitHub Advisory Database · CC BY 4.0
- CVE-2026-40505 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences