PyMuPDF 1.25.3 before 2.0 Stack Buffer Overflow via add_freetext_annot() Callout
- State
- Published
- Severity
- 7.7 High
- Published
- Nov 2, 2026
- Updated
- Nov 7, 2026
- Reserved
- Nov 2, 2026
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.
| Product | Versions |
|---|---|
| PyMuPDF PyMuPDF | 1.25.3 to before 2.0 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 7.7 High | VulnCheck | |
| 3.1 | 7.5 High | VulnCheck |
Weaknesses
- CWE-121 Stack-based Buffer Overflow
References
- GitHub Issue #5112Issue Tracker
- GitHub Issue #5173Issue TrackerTechnical Details
- Patch CommitPatch
- https://github.com/pymupdf/PyMuPDF/blob/1.28.2/src/extra.i#L787-L797Technical Details
- PyMuPDF 2.0 Release NotesRelease Notes
- https://github.com/pymupdf/PyMuPDFProduct Page
- VulnCheck Advisory: PyMuPDF 1.25.3 before 2.0 Stack Buffer Overflow via add_freetext_annot() CalloutThird-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.