Vulnerability · Published Nov 2, 2026 · Assigned by VulnCheck
CVE-2026-120752PyMuPDF 1.25.3 before 2.0 Stack Buffer Overflow via add_freetext_annot() Callout
High 7.5
In plain English
A high-severity stack buffer overflow in PyMuPDF from PyMuPDF. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 31% of all known vulnerabilities).
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | pymupdf | no fix listed | DEBIAN-CVE-2026-120752 |
| Debian:13 | pymupdf | no fix listed | DEBIAN-CVE-2026-120752 |
| Debian:14 | pymupdf | no fix listed | DEBIAN-CVE-2026-120752 |
| Ubuntu:22.04:LTS | pymupdf | no fix listed | UBUNTU-CVE-2026-120752 |
| Ubuntu:24.04:LTS | pymupdf | no fix listed | UBUNTU-CVE-2026-120752 |
| Ubuntu:26.04:LTS | pymupdf | no fix listed | UBUNTU-CVE-2026-120752 |
| Ubuntu:26.10 | pymupdf | no fix listed | UBUNTU-CVE-2026-120752 |
Affected products (as reported)
Weakness: CWE-121 · Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
References
- GitHub Issue #5112 issue-tracking
- GitHub Issue #5173 issue-tracking, technical-description
- Patch Commit patch
- https://github.com/pymupdf/PyMuPDF/blob/1.28.2/src/extra.i#L787-L797 technical-description
- PyMuPDF 2.0 Release Notes release-notes
- https://github.com/pymupdf/PyMuPDF product
- VulnCheck Advisory: PyMuPDF 1.25.3 before 2.0 Stack Buffer Overflow via add_freetext_annot() Callout third-party-advisory