Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.2%top 94%

CVE-2026-40505: CWE-150 Improper Neutralization of Escape, Meta, or Control Sequences in Artifex Software Inc. MuPDF

0
Medium
VulnerabilityCVE-2026-40505cvecve-2026-40505cwe-150
Published: 04/16/2026 (04/16/2026, 01:20:08 UTC)
Source: CVE Database V5
Vendor/Project: Artifex Software Inc.
Product: MuPDF

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.

CVSS v4.0

Score 4.8medium

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vuln. Confidentiality
None
Vuln. Integrity
Low
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

GitHub Actionsmore threats →ai
artifexsoftware/mupdf
pkg:github/artifexsoftware/mupdf
Affected versions
<1.27

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/15/2026, 10:27:53 UTC

Technical Analysis

CVE-2026-40505 is an ANSI injection vulnerability in Artifex Software Inc.'s MuPDF before version 1.27. The mutool utility does not properly neutralize ANSI escape sequences embedded in PDF metadata fields. As a result, attackers can craft PDFs with malicious metadata that, when processed by mutool info, output arbitrary ANSI escape codes to the terminal. This can manipulate terminal display for social engineering purposes. The vulnerability is categorized under CWE-150 (Improper Neutralization of Escape, Meta, or Control Sequences). No vendor advisory or patch is currently available.

Potential Impact

The vulnerability allows attackers to inject arbitrary ANSI escape sequences into terminal output when running mutool info on crafted PDFs. This can lead to terminal display manipulation, potentially deceiving users with fake prompts or spoofed commands. There is no indication of direct code execution or privilege escalation. The impact is primarily social engineering and user deception.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, users should exercise caution when running mutool info on untrusted PDF files and consider sanitizing or inspecting PDF metadata before processing.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
VulnCheck
Date Reserved
2026-04-13T20:29:02.808Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null

Threat ID: 69e03f8c82d89c981fff3a67

Added to database: 04/16/2026, 01:46:52 UTC

Last enriched: 07/15/2026, 10:27:53 UTC

Last updated: 07/31/2026, 19:22:58 UTC

Views: 150

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses