Medium severity · published Sep 29, 2026
CVE-2026-76875
PyPy pyexpat ExternalEntityParserCreate Use-After-Free
5.3
CVSS
0.2%
EPSS
No
On KEV
Description
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
None
Integrity
Low
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.2% · higher than 15% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
PY
PyPy · PyPy
before 3.11.16; 3.12.0 before 3.12.14 · source: vendor
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-76875
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-76875
release-notes
https://doc.pypy.org/release-v8.0.0.html
patch
https://github.com/pypy/pypy/releases/tag/release-pypy3.12-v8.0.0
patch
https://github.com/pypy/pypy/releases/tag/release-pypy3.11-v8.0.0
third-party-advisory
https://www.vulncheck.com/advisories/pypy-pyexpat-externalentityparsercreate-use-after-free
More from PyPy
9.8
CVE-2022-37454
The Keccak XKCP SHA-3 reference implementation before fdc6fef has an integer overflow and resultant buffer overflow that allows attackers to execute arbitrary code or eliminate…
