Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconDeliver malicious PDF via phishing/download
-
DeliveryVictim opens PDF in MuPDF viewer
-
ExploitTrigger integer overflow in image dimension calculation
-
InstallAllocate undersized heap buffer
-
C2Write oversized image data beyond buffer
-
ExecuteCorrupt heap metadata/function pointers
-
ImpactHijack control flow
-
Step 8Execute arbitrary code as user
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Integer overflow checks
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires victim to open attacker-controlled PDF file using MuPDF 1.27.0 or earlier in an application that invokes the pdf_load_image_imp function during rendering. Specifically affects PDFs containing embedded image objects (standard feature in most PDFs with graphics). No special MuPDF configuration required-default installation is vulnerable. User interaction mandatory (UI:R in CVSS vector): victim must explicitly open file or application must auto-render PDF (preview panes, thumbnail generation). Local access required (AV:L): attacker cannot exploit remotely without first delivering malicious file through email attachment, web download, file share, or removable media. Exploitation limited by: (1) operating system ASLR/DEP making reliable code execution more complex but not impossible; (2) sandboxing in some PDF viewers (Adobe Reader, Chrome PDF viewer) isolating MuPDF if used as rendering backend; (3) SELinux/AppArmor policies restricting viewer process capabilities on hardened systems. |
| Impact | CVSS 7.8 (High) reflects significant impact potential (code execution with full confidentiality/integrity/availability compromise) but critical limiting factors reduce practical risk. Attack vector Local (AV:L) with required user interaction (UI:R) means exploitation demands social engineering to deliver malicious PDF and convince target to open it-cannot be exploited remotely against server components. Attack complexity Low (AC:L) and no privileges required (PR:N) indicate reliable exploitation once file is opened. EPSS 0.02% (4th percentile) confirms security community assessment of low real-world exploitation probability, consistent with lack of CISA KEV listing. No public exploit identified at time of analysis, though commit a26f0142e7 provides technical details enabling POC development. SSVC assessment: exploitation status POC-likely, automatable NO (requires user action), technical impact TOTAL (arbitrary code execution). Real-world risk is MODERATE-serious vulnerability in widely deployed PDF library but attack surface limited to local file handling, not network services. Organizations using MuPDF in automated server-side PDF processing face elevated risk if untrusted PDFs are processed without sandboxing. Desktop users face phishing risk but typical defense-in-depth (email filtering, endpoint protection) provides layered mitigation. |
| Exploit ScenarioDerived | Attacker crafts malicious PDF with specially formatted image object containing oversized dimension values designed to trigger integer overflow in pdf_load_image_imp buffer size calculation. Delivers PDF via phishing email, malicious website download, or compromised file share. When victim opens PDF in MuPDF-based viewer, parser allocates undersized heap buffer due to integer wraparound, then writes image data beyond allocation boundaries. Heap corruption overwrites adjacent structures (vtable pointers, function pointers, or memory management metadata) enabling control-flow hijacking to execute attacker-supplied shellcode with privileges of PDF viewer process. Publicly available commit a26f0142e7 provides exploitation blueprint for developing reliable POC. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Apr 21, 2026
Heap overflow in MuPDF 1.27.0 PDF parser enables arbitrary code execution when victims open maliciously crafted PDF files. Integer overflow in pdf_load_image_imp function allows heap-based buffer overflow through crafted PDF image objects. Upstream fix committed (a26f0142e7) but packaged release version unconfirmed. EPSS probability low (0.02%, 4th percentile) indicates theoretical risk without active exploitation campaigns. Requires local file access and user interaction (opening malicious PDF), limiting remote attack scenarios but viable for phishing/watering hole attacks.
Earlier versions of this analysis (1)
Arbitrary code execution in Artifex MuPDF 1.27.0 via integer overflow in PDF image processing. A maliciously crafted PDF triggers an integer overflow in the pdf_load_image_imp function within pdf-image.c, resulting in a heap out-of-bounds write that enables remote code execution without authentication. No public exploit code or active exploitation has been confirmed at time of analysis.
RemediationAI
Upstream fix available in commit a26f0142e7d390d4a82c6e5ae0e312e07cc4ec85 at both GitHub (github.com/ArtifexSoftware/mupdf) and Ghostscript cgit repository. Debian has issued security updates per debian-lts-announce list (April 2026). Organizations should upgrade to patched MuPDF versions distributed through their package managers or build from source incorporating commit a26f0142e7 or later. For systems where immediate patching is infeasible, implement defense-in-depth controls: (1) process untrusted PDFs in sandboxed environments (containers, VMs, or browser-based viewers with process isolation), accepting performance overhead; (2) deploy application allowlisting to prevent execution of unexpected child processes from PDF viewers; (3) disable automatic PDF preview/thumbnail generation in file managers and email clients, requiring explicit user action to render; (4) use SELinux/AppArmor mandatory access control to restrict PDF viewer capabilities even if exploitation succeeds. For server-side PDF processing, consider alternative libraries (e.g., Poppler, pdf.js in headless browser) until MuPDF updates are validated, though this introduces migration complexity and potential feature gaps.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
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 and XPS viewer library from Artifex Software, commonly embedded in applications requiring PDF rendering capabilities. The vulnerability resides in pdf-image.c within the pdf_load_image_imp function, which handles image object parsing from PDF streams. CWE-190 (Integer Overflow) occurs when processing malformed image dimensions or buffer size calculations, causing wraparound to small allocation sizes while subsequent write operations use the original large values. This classic integer-to-buffer-overflow pattern produces heap corruption beyond allocated boundaries. CPE string indicates vulnerability affects MuPDF versions through 1.27.0, including PyMuPDF Python bindings that wrap the native library. The PDF specification's flexibility in image encoding formats (JPEG, JPEG2000, JBIG2, raw samples) creates complex parsing paths where integer validation failures can occur.
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
AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Primary rating from Vendor (certcc).
CVSS VectorVendor: certcc
Lifecycle Timeline
2DescriptionCVE.org
An integer overflow vulnerability in 'pdf-image.c' in Artifex's MuPDF version 1.27.0 allows an attacker to maliciously craft a PDF that can trigger an integer overflow within the 'pdf_load_image_imp' function. This allows a heap out-of-bounds write that could be exploited for arbitrary code execution.
Executive ViewAI
MuPDF 1.27.0 contains a heap overflow vulnerability in PDF image parsing that enables arbitrary code execution when users open maliciously crafted PDF files. This affects any organization using MuPDF for document processing or embedded in applications, creating risk through phishing campaigns or compromised document sources. While no active exploitation is currently documented, the vulnerability requires only user interaction and a malicious file to trigger code execution.
Until vendor-released patch confirmed: (1) Disable or restrict PDF file uploads from external sources; (2) Process PDFs in isolated, sandboxed environments without network access; (3) Implement file validation and disable image parsing in MuPDF configuration if functionally possible; (4) Deploy user awareness training to prevent opening unsolicited PDF attachments; (5) Maintain application isolation so compromised processes cannot access sensitive data or lateral movement paths.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
Integer overflow occurs when an arithmetic operation produces a result that exceeds the maximum value a given integer type can store.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Stack-based buffer overflow in the xps_parse_color function in xps/xps-common.c in MuPDF 1.3 and earlier allows remote a
An issue was discovered in Artifex MuPDF before 1912de5f08e90af1d9d0a9791f58ba3afdb9d465. Rated high severity (CVSS 7.5)
Stack-based buffer overflow in jstest_main.c in mujstest in Artifex Software, Inc. Rated high severity (CVSS 7.8), this
Artifex MuPDF 1.11 allows attackers to execute arbitrary code or cause a denial of service via a crafted .xps file, rela
Artifex MuPDF 1.11 allows attackers to cause a denial of service or possibly have unspecified other impact via a crafted
Artifex MuPDF 1.11 allows attackers to cause a denial of service or possibly have unspecified other impact via a crafted
Artifex MuPDF 1.15.0 has a heap-based buffer overflow in fz_append_display_node located at fitz/list-device.c, allowing
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
Artifex Mupdf version 1.12.0 contains a Use After Free vulnerability in fz_keep_key_storable that can result in DOS / Po
freeglut through 3.4.0 was discovered to contain a memory leak via the menuEntry variable in the glutAddMenuEntry functi
freeglut 3.4.0 was discovered to contain a memory leak via the menuEntry variable in the glutAddSubMenu function. Rated
A floating point exception (divide-by-zero) vulnerability was discovered in Artifex MuPDF 1.23.4 in functon compute_colo
EUVD-2026-17412
GHSA-6jrq-hjxp-2x5r
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB