P2 · HighCVSS 7.5EPSS 0.5%
PyMuPDF 1.25.3 before 2.0 Stack Buffer Overflow via add_freetext_annot() Callout
- CVE-2026-120752
- GHSA-x2mr-6hpr-g257
- EUVD-2026-115640
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.
Text from the CVE.org record.
Recommendation
PyMuPDF
- If you run a version from 1.25.3 to before 2.0update to 2.0 or laterMajor version change: expect breaking changes
Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
PyMuPDF
Affected versions Fixed in from 1.25.3 to before 2.0 2.0
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.