# CVE-2026-76875: PyPy pyexpat ExternalEntityParserCreate Use-After-Free

- Severity: Medium 6.3 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 16% of CVEs (2026-12-01)
- Published: 2026-09-29T12:45:19.797Z
- Modified: 2026-11-08T14:08:53.277Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- PyPy PyPy: before 3.11.16; from 3.12.0 before 3.12.14

## Every score

- VulnCheck: CVSS:4.0 6.3 Medium `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N`
- VulnCheck: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`

## References

- <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)
- <https://www.vulncheck.com/advisories/pypy-pyexpat-externalentityparsercreate-use-after-free> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-76875](https://www.cve.org/CVERecord?id=CVE-2026-76875), CVE Terms of Use, modified 2026-11-08
- NVD: [CVE-2026-76875](https://nvd.nist.gov/vuln/detail/CVE-2026-76875), Public domain, modified 2026-10-02

---

Page: https://cve.day/CVE-2026-76875 · Whole record: https://cve.day/CVE-2026-76875.json · Rebuilt by cve.day 2026-11-25T22:59:41.464Z
