Skip to main content

Mupdf CVE-2026-3308

| EUVDEUVD-2026-17412 HIGH
Integer Overflow or Wraparound (CWE-190)
2026-03-31 certcc GHSA-6jrq-hjxp-2x5r
7.8
CVSS 3.1 · Vendor: certcc
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Deliver malicious PDF via phishing/download
  2. Delivery
    Victim opens PDF in MuPDF viewer
  3. Exploit
    Trigger integer overflow in image dimension calculation
  4. Install
    Allocate undersized heap buffer
  5. C2
    Write oversized image data beyond buffer
  6. Execute
    Corrupt heap metadata/function pointers
  7. Impact
    Hijack control flow
  8. Step 8
    Execute 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv2 – 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)
v1 Mar 31, 2026 - 13:48 CVSS 7.8

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

MuPDF 0 ≤1.27.0

Affected Packages

euvd mupdf no fix

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

Vendor (certcc) PRIMARY 7.8 HIGH
AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
SUSE HIGH

Primary rating from Vendor (certcc).

CVSS VectorVendor: certcc

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

2
Analysis Updated
Apr 21, 2026 - 10:28 vuln.today
v2 - CVSS changed
CVE Published
Mar 31, 2026 - 13:13 nvd
HIGH 7.8

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.0%
Top 96% exploitable
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor GitHub VulDB

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

39
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +39
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

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: High

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