---
title: "CVE-2026-120752: PyMuPDF - Buffer Overflow"
description: "PyMuPDF < 2.0 contains a stack-based buffer overflow caused by copying caller-supplied callout points into a fixed three-element stack array in JM_set_annot_callout_line, letting attackers crash the process or execute code by supplying four or more points via Page.add_freetext_annot."
url: https://panop.io/threat-heartbeat/CVE-2026-120752/
---

# CVE-2026-120752 PyMuPDF - Buffer Overflow

PyMuPDF < 2.0 contains a stack-based buffer overflow caused by copying caller-supplied callout points into a fixed three-element stack array in JM\_set\_annot\_callout\_line, letting attackers crash the process or execute code by supplying four or more points via Page.add\_freetext\_annot.

CVSS base score 7.5 /10

High

CISA KEV

Not listed

Public exploit

None known

Authentication

Required

[View the NVD record ↗](https://nvd.nist.gov/vuln/detail/CVE-2026-120752)

## Details

Type

Buffer Overflow

Impact

Remote Code Execution, Denial Of Service

CVSS vector

CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Published

2 November 2026

Updated

3 November 2026

Weakness

[CWE-121](https://cwe.mitre.org/data/definitions/121.html)

## Vendor fix

Update to version 2.0 or later.

Patching closes this CVE. It does not tell you which of your systems run the affected version, or what else is exposed alongside them.

## References

- [https://nvd.nist.gov/vuln/detail/CVE-2026-120752](https://nvd.nist.gov/vuln/detail/CVE-2026-120752)
- [https://github.com/pymupdf/PyMuPDF/releases/tag/2.0](https://github.com/pymupdf/PyMuPDF/releases/tag/2.0)
- [https://www.vulncheck.com/advisories/pymupdf-1.25.3-before-2.0-stack-buffer-overflow-via-add-freetext-annot-callout](https://www.vulncheck.com/advisories/pymupdf-1.25.3-before-2.0-stack-buffer-overflow-via-add-freetext-annot-callout)
- [https://github.com/pymupdf/PyMuPDF](https://github.com/pymupdf/PyMuPDF)
- [https://github.com/pymupdf/PyMuPDF/blob/1.28.2/src/extra.i#L787-L797](https://github.com/pymupdf/PyMuPDF/blob/1.28.2/src/extra.i#L787-L797)
- [https://github.com/pymupdf/PyMuPDF/commit/d4298ead84ceeae1c9065c81cd9a275a1b092f5e](https://github.com/pymupdf/PyMuPDF/commit/d4298ead84ceeae1c9065c81cd9a275a1b092f5e)
- [https://github.com/pymupdf/PyMuPDF/issues/5112](https://github.com/pymupdf/PyMuPDF/issues/5112)
- [https://github.com/pymupdf/PyMuPDF/issues/5173](https://github.com/pymupdf/PyMuPDF/issues/5173)

[← All CVEs](https://panop.io/threat-heartbeat/)

## What this record can't tell you

- Whether you run the affected software, and where
- Whether an attacker can actually reach and exploit it
- The misconfigurations that never get a CVE number
- What it would cost the business, ranked into what to fix first

Panop answers these inside your environment, for this CVE and every other finding.

[Book a demo](https://panop.io/demo)
