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…

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: Thu Apr 16 2026 (04/16/2026, 01:20:08 UTC)
Source: CVE Database V5
Vendor/Project: Artifex Software Inc.
Product: MuPDF

Description

MuPDF's mutool utility does not sanitize PDF metadata fields before outputting them to the terminal. This allows attackers to inject arbitrary ANSI escape sequences via crafted PDF metadata. When a user runs mutool info on such a PDF, the terminal may be manipulated to clear the display and show deceptive text, enabling social engineering attacks like fake prompts or spoofed commands. The vulnerability has a medium severity with a CVSS score of 4. 8. No official patch or remediation guidance is currently available, and no known exploits have been reported in the wild.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 04/16/2026, 02:01:56 UTC

Technical Analysis

CVE-2026-40505 is a vulnerability in Artifex Software Inc.'s MuPDF mutool where PDF metadata fields are not properly sanitized before being written to terminal output. This improper neutralization of escape sequences (CWE-150) enables attackers to embed malicious ANSI escape codes in PDF metadata. When processed by mutool info, these escape sequences can manipulate the terminal display, potentially misleading users through social engineering techniques such as fake prompts or spoofed commands. The vulnerability affects MuPDF versions indicated as '0' (likely meaning initial or unspecified versions). The CVSS 4.8 score reflects a medium severity with local attack vector and user interaction required.

Potential Impact

An attacker can craft a PDF with malicious metadata that, when inspected using mutool info, injects ANSI escape sequences into the terminal output. This can clear the terminal screen and display arbitrary text, potentially tricking users into executing unintended commands or divulging sensitive information. The impact is primarily social engineering rather than direct code execution or system compromise. There are no known exploits in the wild at this time.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, users should exercise caution when running mutool info on untrusted PDF files. Avoid opening or inspecting PDFs from untrusted sources with mutool. Monitor Artifex Software Inc. advisories for updates or patches addressing this issue.

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: 4/16/2026, 1:46:52 AM

Last enriched: 4/16/2026, 2:01:56 AM

Last updated: 4/16/2026, 3:53:35 AM

Views: 6

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