CVE-2026-120752 PyMuPDF 1.25.3 before 2.0 Stack Buffer Overflow via add_freetext_annot() Callout
- 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.
| Package | Affected | Fixed in |
|---|---|---|
pymupdf PyPIpkg:pypi/pymupdf | From 1.25.3 | 2.0 |
Linux distribution packages (1)
python-PyMuPDF openSUSE:Tumbleweedpkg:rpm/opensuse/python-PyMuPDF | All versions | 2.1-1.1 |
Status by vendor (1)
| Who | Release | Status | Packages |
|---|---|---|---|
| openSUSE | Tumbleweed | fixed | python-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.