# CVE-2026-120752: PyMuPDF 1.25.3 before 2.0 Stack Buffer Overflow via add_freetext_annot() Callout

- Severity: High 7.7 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.54%, higher than 47% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-11-02T22:16:12.885Z
- Modified: 2026-11-07T03:17:04.837Z
- Weaknesses: CWE-121
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- PyMuPDF PyMuPDF: from 1.25.3 before 2.0

## Every score

- VulnCheck: CVSS:4.0 7.7 High `CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- VulnCheck: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/pymupdf/PyMuPDF/issues/5112> (exploit, issue-tracking)
- <https://github.com/pymupdf/PyMuPDF/issues/5173> (issue-tracking, technical-description)
- <https://github.com/pymupdf/PyMuPDF/commit/d4298ead84ceeae1c9065c81cd9a275a1b092f5e> (patch)
- <https://github.com/pymupdf/PyMuPDF/blob/1.28.2/src/extra.i#L787-L797> (technical-description)
- <https://github.com/pymupdf/PyMuPDF/releases/tag/2.0> (release-notes)
- <https://github.com/pymupdf/PyMuPDF> (product)
- <https://www.vulncheck.com/advisories/pymupdf-1.25.3-before-2.0-stack-buffer-overflow-via-add-freetext-annot-callout> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-120752](https://www.cve.org/CVERecord?id=CVE-2026-120752), CVE Terms of Use, modified 2026-11-07
- NVD: [CVE-2026-120752](https://nvd.nist.gov/vuln/detail/CVE-2026-120752), Public domain, modified 2026-11-07

---

Page: https://cve.day/CVE-2026-120752 · Whole record: https://cve.day/CVE-2026-120752.json · Rebuilt by cve.day 2026-11-25T22:59:48.311Z
