CVE-2026-120752PyMuPDF stack-based buffer overflow
CVSS score
7.7
High
CVSS 4.0 from vulncheck.com
Exploit probability (EPSS)
0.54%
0.54% chance of exploitation in the next 30 days, higher than 46.5% of all CVEs.
CISA KEV
Not in KEV
No confirmed exploitation reported by CISA so far.
Official 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.
Source: NVD · CNA: disclosure@vulncheck.com
How to fix it, step by step
Check whether you're affected
Find every system running PyMuPDF and compare its version with the affected versions.
Update to a fixed version
- Update PyMuPDF to 2.0 or later.
Confirm the fix
Check that every affected system now reports a fixed version, and recheck the vendor's advisory: fixes are sometimes revised.
Was this useful?
How it can be exploited
- Attack vector
- Network
- Attack complexity
- Low
- Attack requirements
- Present
- Privileges required
- Low
- User interaction
- None
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Values in red make the vulnerability easier to exploit or more damaging. 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Affected products
| Affected products | Versions |
|---|---|
| PyMuPDF PyMuPDF | ≥ 1.25.3, < 2.0 |
Weakness
- CWE-121 stack-based buffer overflow
Timeline
- Published:
- Last modified:
Frequently asked questions
Is CVE-2026-120752 being exploited?
There is no confirmed exploitation in CISA's KEV catalog so far. Its EPSS score estimates a 0.5% probability of exploitation in the next 30 days.
What is the CVSS score of CVE-2026-120752?
CVE-2026-120752 has a CVSS 4.0 base score of 7.7 (high).
Which versions are affected?
Pymupdf PyMuPDF (≥ 1.25.3, < 2.0)
Is there a patch for CVE-2026-120752?
The official record links to vendor advisories or patches; see “What to do” above.
References
- github.com/pymupdf/PyMuPDF
- github.com/pymupdf/PyMuPDF/blob/1.28.2/src/extra.i#L787-L797
- github.com/pymupdf/PyMuPDF/commit/d4298ead84ceeae1c9065c81cd9a275a1b092f5e
- github.com/pymupdf/PyMuPDF/issues/5112
- github.com/pymupdf/PyMuPDF/issues/5173
- github.com/pymupdf/PyMuPDF/releases/tag/2.0
- www.vulncheck.com/advisories/pymupdf-1.25.3-before-2.0-stack-buffer-overflow-via-add-freetext-annot-callout
Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.