Vulnerability 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.
CVSS Score
HIGH
Related Weaknesses (CWE)
References
- https://github.com/pymupdf/PyMuPDF
- https://github.com/pymupdf/PyMuPDF/blob/1.28.2/src/extra.i#L787-L797
- https://github.com/pymupdf/PyMuPDF/commit/d4298ead84ceeae1c9065c81cd9a275a1b092f
- https://github.com/pymupdf/PyMuPDF/issues/5112
- https://github.com/pymupdf/PyMuPDF/issues/5173
- https://github.com/pymupdf/PyMuPDF/releases/tag/2.0
- https://www.vulncheck.com/advisories/pymupdf-1.25.3-before-2.0-stack-buffer-over
- https://github.com/pymupdf/PyMuPDF/issues/5112
FAQ
What is CVE-2026-120752?
CVE-2026-120752 is a vulnerability with a CVSS score of 7.5 (HIGH). 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 ar...
How severe is CVE-2026-120752?
CVE-2026-120752 has been rated HIGH with a CVSS base score of 7.5/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-120752?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.