cvelo
P3 · MediumCVSS 5.3EPSS 0.2%

PyPy pyexpat ExternalEntityParserCreate Use-After-Free

  • CVE-2026-76875
  • GHSA-4h3r-h8c5-46cf
  • EUVD-2026-88811

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.

Text from the CVE.org record.

Recommendation

  • PyPy

    • If you run 3.12.xupdate to 3.12.14 or laterPatch update: breaking changes are unlikely
    • If you run a version before 3.11.16update to 3.11.16 or later

Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.

Affected

  • PyPy

    Affected versionsFixed in
    from 3.12.0 to before 3.12.143.12.14
    before 3.11.163.11.16

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.