CVE-2026-76875
PyPy before versions 3.11.16 and 3.12.14 contains a use-after-free …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- doc.pypy.org/release-v8.0.0.html
- github.com/pypy/pypy/releases/tag/release-pypy3.11-v8.0.0
- github.com/pypy/pypy/releases/tag/release-pypy3.12-v8.0.0
- www.vulncheck.com/advisories/pypy-pyexpat-externalentityparsercreate-use-after-free
- nvd.nist.gov/vuln/detail/CVE-2026-76875
- cve.org/CVERecord?id=CVE-2026-76875
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.