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 · NVD
Share

Severity by source

NVD 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
SUSE
3.3 LOW
AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
P
Scope
X

Lifecycle Timeline

7
Severity Changed
Apr 16, 2026 - 02:34 NVD
LOW MEDIUM
CVSS changed
Apr 16, 2026 - 02:34 NVD
3.3 (LOW) 4.8 (MEDIUM)
Analysis Generated
Apr 16, 2026 - 01:49 vuln.today
EUVD ID Assigned
Apr 16, 2026 - 01:45 euvd
EUVD-2026-23147
Analysis Generated
Apr 16, 2026 - 01:45 vuln.today
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.

AnalysisAI

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.

Technical ContextAI

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.

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.

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

Share

EUVD-2026-23147 vulnerability details – vuln.today

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