CVE-2026-40505

CVE-2026-40505 is a low-severity vulnerability in Artifex Mupdf with a CVSS 3.x base score of 3.3. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-150.

Key facts

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.

Frequently asked questions

What is CVE-2026-40505?
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.
How severe is CVE-2026-40505?
CVE-2026-40505 has a CVSS 3.x base score of 3.3, rated low severity. It is exploitable over local access with low attack complexity, requires no privileges and user interaction. Impact on confidentiality is none, integrity low, and availability none.
Is CVE-2026-40505 being actively exploited?
It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 0% (6th percentile), an estimate of the probability of exploitation in the next 30 days.
What products are affected by CVE-2026-40505?
CVE-2026-40505 affects Artifex Mupdf. See the affected-products list for the exact vulnerable versions.
How do I fix CVE-2026-40505?
Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
Does CVE-2026-40505 have an EU (EUVD) identifier?
Yes. CVE-2026-40505 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2026-23147.
When was CVE-2026-40505 published?
CVE-2026-40505 was published on 2026-04-16 and last updated on 2026-06-17.

References

Affected products (1)

More vulnerabilities in Artifex Mupdf

All CVEs affecting Artifex Mupdf →

Other CWE-150 vulnerabilities

Browse all CWE-150 vulnerabilities →