CVE-2026-76875
published medium CVSS 4.0 · 6.3PyPy pyexpat ExternalEntityParserCreate Use-After-Free
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| PyPy | — | PyPy0 to < 3.11.16 · 3.12.0 to < 3.12.14 · Other versions: unaffected | Affected | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 6.3 / 10
- Severity
- medium
- Provider
- VulnCheck · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 5.3 | medium | VulnCheck · cna | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N | en: GENERAL |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| PyPy | PyPy | 0 to < 3.11.16 (affected · semver)3.12.0 to < 3.12.14 (affected · semver)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-416 Use After Free
References
4- Release Notes https://doc.pypy.org/release-v8.0.0.html
- PyPy release-pypy3.11-v8.0.0 Release Notes https://github.com/pypy/pypy/releases/tag/release-pypy3.11-v8.0.0
- PyPy release-pypy3.12-v8.0.0 Release Notes https://github.com/pypy/pypy/releases/tag/release-pypy3.12-v8.0.0
- https://www.vulncheck.com/advisories/pypy-pyexpat-externalentityparsercreate-use-after-free
Provider assertions
2VulnCheck · cna
PyPy pyexpat ExternalEntityParserCreate Use-After-Free
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 89fbbf8099c398885ec608ee9d743b0c69e9afbe0801f207bec2abbee3087ef6
- Ingested
- 08 Nov 2026, 14:15:24 UTC
- Source record
- Official CVE record