CVE-2026-25556

MuPDF 1.23.0 through 1.27.0 Barcode Decoding Double Free

Published Feb 6, 2026 CVSS 4.0 · 5.9 Medium EPSS < 1% KEV · Not listed
Description
MuPDF versions 1.23.0 through 1.27.0 contain a double-free vulnerability in fz_fill_pixmap_from_display_list() when an exception occurs during display list rendering. The function accepts a caller-owned fz_pixmap pointer but incorrectly drops the pixmap in its error handling path before rethrowing the exception. Callers (including the barcode decoding path in fz_decode_barcode_from_display_list) also drop the same pixmap in cleanup, resulting in a double-free that can corrupt the heap and crash the process. This issue affects applications that enable and use MuPDF barcode decoding and can be triggered by processing crafted input that causes a rendering-time error while decoding barcodes.

Analysis

AI-generated

Technical impact

The vulnerability arises in MuPDF versions 1.23.0 through 1.27.0 when an exception occurs during display list rendering while processing a barcode. The function fz_fill_pixmap_from_display_list incorrectly frees a caller‑owned pixmap in its error path, and the caller later frees the same pixmap in cleanup, producing a double‑free. This flaw allows heap corruption and can terminate the application.

Affected Systems

MuPDF, a PDF and XPS rendering engine from Artifex Software, is affected for all releases from 1.23.0 up to and including 1.27.0. Applications that enable MuPDF barcode decoding and process user documents are therefore impacted.

Risk and Exploitability

The CVSS score is 5.9 and the EPSS score is under 1 %, indicating a low likelihood of active exploitation. The flaw is not listed in the CISA KEV catalog. An attacker can trigger the issue by delivering a specially crafted document that causes a rendering-time error during barcode decoding. This results in a deterministic heap corruption that usually crashes the process, affecting availability and potentially enabling further exploitation if additional vulnerabilities exist. The primary attack vector therefore requires the attacker to supply malicious content to a MuPDF‑using application.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade MuPDF to version 1.28 or later, which contains the patch for the double‑free bug.
  • If an upgrade is not immediately possible, disable or remove the barcode decoding feature from the MuPDF integration until a patch is applied.
  • Run MuPDF in a sandboxed or restricted environment and validate input files before rendering to limit the impact of any additional memory‑corruption vulnerabilities.

Generated by OpenCVE AI on April 16, 2026 at 17:24 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Title MuPDF <= 1.27.0 Barcode Decoding Double Free MuPDF 1.23.0 through 1.27.0 Barcode Decoding Double Free
Type Values Removed Values Added
CPEs cpe:2.3:a:artifex:mupdf:*:*:*:*:*:*:*:*
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H'}

cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

Type Values Removed Values Added
Weaknesses CWE-763
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
First Time appeared Artifex
Artifex mupdf
Vendors & Products Artifex
Artifex mupdf
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description MuPDF versions 1.23.0 through 1.27.0 contain a double-free vulnerability in fz_fill_pixmap_from_display_list() when an exception occurs during display list rendering. The function accepts a caller-owned fz_pixmap pointer but incorrectly drops the pixmap in its error handling path before rethrowing the exception. Callers (including the barcode decoding path in fz_decode_barcode_from_display_list) also drop the same pixmap in cleanup, resulting in a double-free that can corrupt the heap and crash the process. This issue affects applications that enable and use MuPDF barcode decoding and can be triggered by processing crafted input that causes a rendering-time error while decoding barcodes.
Title MuPDF <= 1.27.0 Barcode Decoding Double Free
Weaknesses CWE-415
References
Metrics cvssV4_0

{'score': 5.9, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Jul 14, 2026, 3:53 PM
Reserved
Feb 2, 2026, 8:12 PM
Status
Analyzed
Published
Feb 6, 2026, 5:16 PM
Modified
Jul 14, 2026, 4:16 PM
Severity
Moderate
Public date
Feb 6, 2026, 4:11 PM