{"id":"CVE-2026-120752","summary":"PyMuPDF 1.25.3 before 2.0 Stack Buffer Overflow via add_freetext_annot() Callout","details":"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.","modified":"2026-11-14T17:28:18.950273228Z","published":"2026-11-02T22:16:12.885Z","related":["openSUSE-SU-2026:12554-1"],"database_specific":{"cwe_ids":["CWE-121"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/120xxx/CVE-2026-120752.json","cna_assigner":"VulnCheck"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/120xxx/CVE-2026-120752.json"},{"type":"ADVISORY","url":"https://github.com/pymupdf/PyMuPDF/releases/tag/2.0"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-120752"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/pymupdf-1.25.3-before-2.0-stack-buffer-overflow-via-add-freetext-annot-callout"},{"type":"REPORT","url":"https://github.com/pymupdf/PyMuPDF/issues/5112"},{"type":"REPORT","url":"https://github.com/pymupdf/PyMuPDF/issues/5173"},{"type":"FIX","url":"https://github.com/pymupdf/PyMuPDF/commit/d4298ead84ceeae1c9065c81cd9a275a1b092f5e"},{"type":"PACKAGE","url":"https://github.com/pymupdf/PyMuPDF"},{"type":"ARTICLE","url":"https://github.com/pymupdf/PyMuPDF/blob/1.28.2/src/extra.i#L787-L797"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/pymupdf/pymupdf","events":[{"introduced":"d84e90c3d9048f060ebc356e6aefdf33a5644624"},{"fixed":"b8904b27efa0c4e2258f0e46ab4498a6173ffa22"},{"fixed":"d4298ead84ceeae1c9065c81cd9a275a1b092f5e"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"1.25.3"},{"fixed":"2.0"}],"source":"AFFECTED_FIELD","strategy":"StandardRange"},{"source":"REFERENCES_COMMIT","range":[{"fixed":"d4298ead84ceeae1c9065c81cd9a275a1b092f5e"}]},{"source":"REFERENCES_TAG","original_tag":"2.0","range":[{"fixed":"b8904b27efa0c4e2258f0e46ab4498a6173ffa22"}]}]}}],"versions":["1.28.2","1.28.0","1.27.2.3","1.27.2.2","1.27.2","internal-rf2.4.1","1.27.1","1.26.7","1.26.6","1.26.5","1.26.4","1.26.3","1.26.1","1.26.0","1.25.5","1.25.4","1.25.3"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-120752.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"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"}]}