Skip to main content
← All vulnerabilities
CVE-2026-76875

PyPy pyexpat ExternalEntityParserCreate Use-After-Free

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.11.16, 3.12.14
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published3 days
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • PyPy PyPy

    fixed in 3.11.16; From 3.12.0 · fixed in 3.12.14

References 4

doc.pypy.org

GitHub · pypy/pypy

vulncheck.com