CVE-2026-76875

published 29 Sep 2026 · updated 8 Nov 2026

PyPy pyexpat ExternalEntityParserCreate Use-After-Free

5.3MediumCVSS 5.3EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 3.11.16 and 3.12.14.

PyPy before versions 3.11.16 and 3.12.14 contains a use-after-free vulnerability in the pyexpat module's ExternalEntityParserCreate function that allows attackers to corrupt memory by supplying a crafted XML document to applications that create external-entity sub-parsers without retaining a reference to the parent parser. The child parser retains a raw C back-pointer to the parent parser struct while PyPy's tracing garbage collector can free the parent's C struct, causing bundled libexpat to dereference the freed pointer on every parsed token, producing memory corruption.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
PyPy<3.11.16, >=3.12.0 <3.12.143.11.16, 3.12.14

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-76875 severity on Zeptric[![CVE-2026-76875](https://zeptric.io/badge/cve/CVE-2026-76875.svg)](https://zeptric.io/cve/CVE-2026-76875)