CVE-2026-76875PyPy pyexpat ExternalEntityParserCreate 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
Fixed builds are available from Debian: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | pypy3 | Fix pending | UBUNTU-CVE-2026-76875 | |
| Ubuntu 26.04 | pypy3 | Under investigation | UBUNTU-CVE-2026-76875 | |
| Ubuntu 24.04 | pypy3 | Under investigation | UBUNTU-CVE-2026-76875 | |
| Ubuntu 22.04 | pypy3 | Under investigation | UBUNTU-CVE-2026-76875 | |
| Ubuntu 20.04 | pypy3 | Fix pending | UBUNTU-CVE-2026-76875 | |
| Debian 14 | pypy3 | Fixed | 8.0.0+dfsg-1 | DEBIAN-CVE-2026-76875 |
| Debian 13 | pypy3 | Fix pending | DEBIAN-CVE-2026-76875 | |
| Debian 12 | pypy3 | Fix pending | DEBIAN-CVE-2026-76875 |
What the vendor says
As published in the CVE record by VulnCheck, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- PyPy: affected: before 3.11.16, 3.12.0 to before 3.12.14; fixed in
3.11.16,3.12.14
Vendor advisories:
- https://doc.pypy.org/release-v8.0.0.html (release-notes)
- https://github.com/pypy/pypy/releases/tag/release-pypy3.12-v8.0.0 (patch, release-notes)
- https://github.com/pypy/pypy/releases/tag/release-pypy3.11-v8.0.0 (patch, release-notes)
References
- https://doc.pypy.org/release-v8.0.0.html
- https://github.com/pypy/pypy/releases/tag/release-pypy3.12-v8.0.0
- https://github.com/pypy/pypy/releases/tag/release-pypy3.11-v8.0.0
- https://www.vulncheck.com/advisories/pypy-pyexpat-externalentityparsercreate-use-after-free
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.