CVE-2026-40505
published medium CVSS 4.0 · 4.8MuPDF < 1.27 mutool ANSI Injection via Metadata
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Artifex Software Inc. | — | MuPDF0 to < 1.27.0 · 0f17d789fe8c29b41e47663be82514aaca3a4dfb · Other versions: unaffected | Affected | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 4.8 / 10
- Severity
- medium
- Provider
- VulnCheck · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 3.3 | low | VulnCheck · cna | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N | en: GENERAL |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Artifex Software Inc. | MuPDF | 0 to < 1.27.0 (affected · semver)0f17d789fe8c29b41e47663be82514aaca3a4dfb (affected · git)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-150 CWE-150 Improper Neutralization of Escape, Meta, or Control Sequences
References
4- https://cgit.ghostscript.com/cgi-bin/cgit.cgi/mupdf.git/commit/?id=0f17d789fe8c29b41e47663be82514aaca3a4dfb
- https://github.com/ArtifexSoftware/mupdf/commit/0f17d789fe8c29b41e47663be82514aaca3a4dfb
- MuPDF 1.27.0 Release Notes https://github.com/ArtifexSoftware/mupdf/releases/tag/1.27.0
- https://www.vulncheck.com/advisories/mupdf-mutool-ansi-injection-via-metadata
Provider assertions
2VulnCheck · cna
MuPDF < 1.27 mutool ANSI Injection via Metadata
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- ab8e3e44d905cb818f8a5b8b270db99c4079e5c433d03714bd7af3c500e0b5fc
- Ingested
- 08 Nov 2026, 14:13:57 UTC
- Source record
- Official CVE record