CVE-2026-120752
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.
How to fix
- PyMuPDF PyMuPDF2.0 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| PyMuPDF PyMuPDF | 1.25.3 ≤ v < 2.0 | 2.0 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.