Skip to content
OpenAdvisories
High · 7.5 CVE-2026-120752 EUVD-2026-115640GHSA-x2mr-6hpr-g257

PyMuPDF 1.25.3 before 2.0 Stack Buffer Overflow via add_freetext_annot() Callout

Published Nov 2, 2026 · Updated Nov 7, 2026 · Assigned by VulnCheck

Description

PyMuPDF 1.25.3 before 2.0 contains a stack-based buffer overflow vulnerability in JM_set_annot_callout_line() that copies a caller-supplied number of callout points into a fixed three-element stack array. Attackers who control the callout argument passed to Page.add_freetext_annot() can supply four or more points to overwrite the stack frame, crashing the process or executing code.

Affected products

VendorProductAffectedFixed
PyMuPDF PyMuPDF 1.25.3 – < 2.0 2.0

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 pymupdf No fix yet —
Debian 13 pymupdf No fix yet —
Debian 12 pymupdf No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 pymupdf No fix yet —
Ubuntu 26.04 LTS pymupdf No fix yet —
Ubuntu 24.04 LTS pymupdf No fix yet —
Ubuntu 22.04 LTS pymupdf No fix yet —
Ubuntu 20.04 LTS pymupdf No fix yet —

References