Skip to main content
Vulnerability Database/CVE-2026-112036

CVE-2026-112036: Artifex MuPDF Use-After-Free Vulnerability

CVE-2026-112036 is a use-after-free flaw in Artifex MuPDF up to version 1.28.5 affecting signature locking. Attackers can exploit this remotely to cause double free conditions. This post covers technical details, affected versions, impact, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-112036 Overview

CVE-2026-112036 is a double free vulnerability in Artifex MuPDF versions up to 1.28.5. The flaw resides in the free_char_list function within source/pdf/pdf-xref.c, part of the Signature Locking component. An attacker can trigger the condition by supplying a crafted PDF document that forces the application to free the same memory region twice. The issue is classified under CWE-119 covering improper restriction of operations within memory buffer bounds. Public exploit details are available, and remote initiation is possible when a user opens a malicious document. Artifex has published a fix referenced by commit 3984925b660afb8a781ddf504021e91be1bc671e.

Critical Impact

Successful exploitation can corrupt heap metadata, cause process crashes, and may enable further memory manipulation in affected MuPDF deployments.

Affected Products

  • Artifex MuPDF versions up to and including 1.28.5
  • Signature Locking component within source/pdf/pdf-xref.c
  • Downstream applications and libraries embedding vulnerable MuPDF builds

Discovery Timeline

  • 2026-10-19 - CVE-2026-112036 published to the National Vulnerability Database
  • 2026-10-19 - Last updated in NVD database

Technical Details for CVE-2026-112036

Vulnerability Analysis

The vulnerability is a double free condition [CWE-119] triggered during signature locking processing in Artifex MuPDF. When the free_char_list function in source/pdf/pdf-xref.c executes, a list element can be released and then referenced again on a subsequent cleanup pass. The second deallocation corrupts heap allocator metadata and destabilizes the process. Attackers can deliver a weaponized PDF through email, web downloads, or any channel that invokes MuPDF rendering. User interaction is required to open the document, but no authentication is needed. Public exploit material is available, raising the operational risk for organizations that parse untrusted PDFs with MuPDF.

Root Cause

The root cause is improper tracking of ownership for allocated character list nodes inside the cross-reference and signature locking logic. The free_char_list routine releases a pointer without clearing or guarding the reference, allowing a later code path to free the same pointer. This produces the classic double free pattern described in [CWE-119]. The upstream patch, identified by commit hash 3984925b660afb8a781ddf504021e91be1bc671e, restructures the cleanup sequence to prevent the duplicate release.

Attack Vector

An attacker crafts a PDF file that exercises the signature locking pathway and reaches free_char_list under conditions that trigger duplicate deallocation. Delivery occurs remotely through any channel where a victim opens the file in a vulnerable MuPDF-based viewer or tool. Exploitation primarily results in process termination, with potential for heap corruption that could be chained with other weaknesses. Full technical details and the public proof of concept are referenced in the Ghostscript Bug Report #709768 and the VulDB CVE-2026-112036 entry.

No verified exploitation code is published alongside this advisory. See the Ghostscript Bug Attachment for the researcher-provided reproduction material.

Detection Methods for CVE-2026-112036

Indicators of Compromise

  • Unexpected crashes or abort signals in processes using MuPDF, especially when parsing PDFs with signature fields
  • Heap corruption indicators such as malloc/free assertion failures or glibc double free messages in system logs
  • Receipt of PDF files from untrusted sources that reference signature locking structures

Detection Strategies

  • Inventory MuPDF versions across endpoints and servers and flag any build at or below 1.28.5
  • Monitor PDF-processing workloads for abnormal termination patterns and segmentation faults
  • Inspect inbound email and file-sharing channels for PDF documents containing malformed signature dictionaries

Monitoring Recommendations

  • Enable application crash telemetry on hosts that render PDFs with MuPDF or Ghostscript-derived tools
  • Correlate process termination events with the parent application and the file hash being processed
  • Centralize logs from PDF processing services and alert on repeated crashes tied to the same document source

How to Mitigate CVE-2026-112036

Immediate Actions Required

  • Upgrade Artifex MuPDF to a build that includes commit 3984925b660afb8a781ddf504021e91be1bc671e or later
  • Audit third-party applications bundling MuPDF and request patched releases from those vendors
  • Restrict automated PDF processing pipelines to trusted sources until the patch is applied

Patch Information

Artifex has committed a fix to the upstream repository under hash 3984925b660afb8a781ddf504021e91be1bc671e. Review the change through the Ghostscript Git Repository and track vendor builds via the Artifex Official Website. Rebuild downstream binaries and redistribute updated packages across all affected hosts.

Workarounds

  • Disable or sandbox MuPDF-based PDF rendering for documents originating outside the organization
  • Route PDF viewing through isolated environments or containerized processors with limited privileges
  • Block PDF attachments at the mail gateway when signature-related content cannot be validated as trusted
bash
# Verify installed MuPDF version and plan upgrade
mutool -v
# Replace vulnerable package once vendor builds are available
# Example on Debian-based systems:
sudo apt-get update && sudo apt-get install --only-upgrade mupdf mupdf-tools

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.