CVE-2026-120752 PyMuPDF 1.25.3 before 2.0 Stack Buffer Overflow via add_freetext_annot() Callout

High 7.7 Published Updated
Exploited in the wild
Not known
Fix
Available

What is CVE-2026-120752?

CVE-2026-120752 is a high-severity vulnerability in PyMuPDF, published on 2 Nov 2026.

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

Weakness: CWE-121

Which versions are affected by CVE-2026-120752?

1 open source package ship an affected version, including pymupdf.

PackageAffectedFixed in
pymupdf PyPI
pkg:pypi/pymupdf
From 1.25.32.0
Linux distribution packages (1)
python-PyMuPDF openSUSE:Tumbleweed
pkg:rpm/opensuse/python-PyMuPDF
All versions2.1-1.1
Status by vendor (1)
WhoReleaseStatusPackages
openSUSETumbleweedfixedpython-PyMuPDF (2.1-1.1)

How do I fix CVE-2026-120752?

Upgrade pymupdf to 2.0 or later.

Is CVE-2026-120752 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-120752 exists.

Sources

Also known as DEBIAN-CVE-2026-120752, GHSA-x2mr-6hpr-g257, UBUNTU-CVE-2026-120752, openSUSE-SU-2026:12554-1.

Is CVE-2026-120752 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free