Skip to main content

Mupdf EUVDEUVD-2026-23147

| CVE-2026-40505 MEDIUM
Improper Neutralization of Escape, Meta, or Control Sequences (CWE-150)
2026-04-16 VulnCheck GHSA-hj44-m5xv-x75q
4.8
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Attacker crafts PDF with malicious metadata
  2. Delivery
    Attacker distributes PDF to target user
  3. Exploit
    User executes mutool info on PDF
  4. Install
    Mutool outputs unsanitized metadata to terminal
  5. C2
    ANSI sequences execute in terminal
  6. Execute
    Terminal display is manipulated
  7. Impact
    User is socially engineered to enter credentials or execute commands

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Escape character neutralization
Exploitation Conditions

The vulnerability requires the following specific conditions: the user must execute mutool info (or a similar mutool command that outputs metadata) on an attacker-supplied PDF file containing malicious ANSI escape sequences in metadata fields. The attack depends on user interaction (UI:R in CVSS) - the vulnerability is not exploitable remotely or without the user actively running the tool. Local file system access is required to provide the crafted PDF to the target system. The terminal must interpret ANSI escape sequences (most modern terminals do; some restricted or hardened terminals may not). The user must not have awareness or defensive training regarding spoofed terminal output. No special MuPDF configuration or non-default settings are required; the vulnerability exists in the default behavior of the mutool info command across all versions prior to the patch.

Impact

The CVSS 3.3 score reflects low severity with low-risk attack parameters: local access vector (AV:L), low complexity (AC:L), no privileges required (PR:N), but mandatory user interaction (UI:R) and limited impact (only integrity; no confidentiality or availability). The attack vector is local, not network, and requires the user to explicitly run mutool info on an attacker-controlled PDF, limiting real-world exposure. EPSS or active exploitation data is not provided, but the presence of a vendor-released patch and public advisory from VulnCheck indicates this is a known, documented issue rather than a zero-day. The primary risk is social engineering via terminal spoofing, not code execution or data exfiltration. Organizations should prioritize higher-severity vulnerabilities; however, this should be patched in routine update cycles, especially for systems where users frequently process untrusted PDFs. The actual risk depends on user behavior: if users are trained to inspect metadata sources or if mutool is run only on trusted files, exploitation likelihood is minimal.

Exploit ScenarioDerived

An attacker creates a PDF with a crafted Title metadata field containing ANSI escape codes, such as \033[2J (clear screen) followed by fake text resembling a login prompt. The attacker distributes this PDF via email or file sharing. A user, thinking they are running a legitimate PDF inspection tool, executes mutool info malicious.pdf, which displays the terminal-cleared screen and spoofed prompt. The user then enters their credentials into the fake prompt, which the attacker captures via a background script or social engineering follow-up.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Apr 16, 2026

MuPDF mutool fails to sanitize PDF metadata before displaying it in terminal output, allowing local attackers to inject ANSI escape sequences through crafted PDF files. When a user runs mutool info on a malicious PDF, embedded escape codes can clear the terminal and display fabricated text for social engineering attacks such as fake login prompts or spoofed shell commands. This is a low-severity local vulnerability (CVSS 3.3) requiring user interaction, with a vendor-released patch available.

RemediationAI

Update MuPDF to a version incorporating commit 0f17d789fe8c29b41e47663be82514aaca3a4dfb or later. The patch is available from the Ghostscript MuPDF repository at https://cgit.ghostscript.com/cgi-bin/cgit.cgi/mupdf.git/commit/?id=0f17d789fe8c29b41e47663be82514aaca3a4dfb. Until patched, users can mitigate by: redirecting mutool info output through a tool that sanitizes ANSI sequences (e.g., piping through sed or using the cat -v flag to display escape sequences literally), restricting mutool usage to trusted PDFs only, or disabling shell features that process PDF metadata (such as running mutool in a restricted terminal environment). As a compensating control, administrators can disable or remove mutool from systems where it is not actively required, or restrict its use to trusted internal documents only. However, these workarounds do not eliminate the social engineering vector and should be considered temporary until patching is completed.

Affected VersionsENISA

MuPDF 0 <0f17d789fe8c29b41e47663be82514aaca3a4dfb

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

MuPDF is a lightweight PDF rendering library and the mutool command-line utility is used to inspect and manipulate PDF files. The vulnerability exploits insufficient input validation of PDF metadata fields (such as Title, Author, Subject) that are passed directly to terminal output without ANSI escape sequence filtering. CWE-150 (Improper Neutralization of Escape, Meta, or Control Sequences) describes the root cause: untrusted metadata content is written to the terminal without stripping control characters that the terminal interprets as commands (e.g., cursor movement, text color, display clearing). The affected product is MuPDF across versions prior to the patched commit, as indicated by the CPE string cpe:2.3:a:artifex_software_inc.:mupdf:*:*:*:*:*:*:*:* covering all versions.

Know when Mupdf gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 4.8 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
SUSE 3.3 LOW
AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

4
Severity Changed
Apr 16, 2026 - 02:34 NVD
LOW MEDIUM
CVSS changed
Apr 16, 2026 - 02:34 NVD
3.3 (LOW) 4.8 (MEDIUM)
Patch released
Apr 16, 2026 - 01:45 nvd
Patch available
CVE Published
Apr 16, 2026 - 01:20 nvd
MEDIUM 4.8

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.0%
Top 98% exploitable
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

24
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +24
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

More in Mupdf

View all
CVE-2014-2013 HIGH POC
7.5 Mar 03

Stack-based buffer overflow in the xps_parse_color function in xps/xps-common.c in MuPDF 1.3 and earlier allows remote a

CVE-2017-5991 HIGH POC
7.5 Feb 15

An issue was discovered in Artifex MuPDF before 1912de5f08e90af1d9d0a9791f58ba3afdb9d465. Rated high severity (CVSS 7.5)

CVE-2017-6060 HIGH POC
7.8 Mar 15

Stack-based buffer overflow in jstest_main.c in mujstest in Artifex Software, Inc. Rated high severity (CVSS 7.8), this

CVE-2017-14686 HIGH POC
7.8 Sep 22

Artifex MuPDF 1.11 allows attackers to execute arbitrary code or cause a denial of service via a crafted .xps file, rela

CVE-2017-14687 HIGH POC
7.8 Sep 22

Artifex MuPDF 1.11 allows attackers to cause a denial of service or possibly have unspecified other impact via a crafted

CVE-2017-14685 HIGH POC
7.8 Sep 22

Artifex MuPDF 1.11 allows attackers to cause a denial of service or possibly have unspecified other impact via a crafted

CVE-2019-13290 HIGH POC
7.8 Jul 04

Artifex MuPDF 1.15.0 has a heap-based buffer overflow in fz_append_display_node located at fitz/list-device.c, allowing

CVE-2018-1000038 HIGH POC
7.8 May 24

In Artifex MuPDF 1.12.0 and earlier, a stack buffer overflow in function pdf_lookup_cmap_full in pdf/pdf-cmap.c could al

CVE-2018-1000051 HIGH POC
7.8 Feb 09

Artifex Mupdf version 1.12.0 contains a Use After Free vulnerability in fz_keep_key_storable that can result in DOS / Po

CVE-2024-24259 HIGH POC
7.5 Feb 05

freeglut through 3.4.0 was discovered to contain a memory leak via the menuEntry variable in the glutAddMenuEntry functi

CVE-2024-24258 HIGH POC
7.5 Feb 05

freeglut 3.4.0 was discovered to contain a memory leak via the menuEntry variable in the glutAddSubMenu function. Rated

CVE-2023-51107 HIGH POC
7.5 Dec 26

A floating point exception (divide-by-zero) vulnerability was discovered in Artifex MuPDF 1.23.4 in functon compute_colo

Vendor StatusVendor

SUSE

Severity: Low

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy