UBUNTU-CVE-2026-76875 (CVE-2026-76875)
Vulnerability from osv_ubuntu – Published: 2026-09-29 13:17 – Updated: 2026-09-29 13:17 – Source websitePyPy 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.
{
"affected": [
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "pypy3",
"binary_version": "7.3.1+dfsg-4ubuntu0.1"
},
{
"binary_name": "pypy3-lib",
"binary_version": "7.3.1+dfsg-4ubuntu0.1"
},
{
"binary_name": "pypy3-lib-testsuite",
"binary_version": "7.3.1+dfsg-4ubuntu0.1"
},
{
"binary_name": "pypy3-tk",
"binary_version": "7.3.1+dfsg-4ubuntu0.1"
}
]
},
"package": {
"ecosystem": "Ubuntu:20.04:LTS",
"name": "pypy3",
"purl": "pkg:deb/ubuntu/pypy3@7.3.1+dfsg-4ubuntu0.1?arch=source\u0026distro=focal"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"7.1.1+dfsg-1",
"7.2.0+dfsg-1",
"7.3.0+dfsg-1",
"7.3.0+dfsg-1ubuntu2",
"7.3.0+dfsg-1ubuntu3",
"7.3.1+dfsg-4",
"7.3.1+dfsg-4ubuntu0.1"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "pypy3",
"binary_version": "7.3.9+dfsg-1ubuntu0.1"
},
{
"binary_name": "pypy3-lib",
"binary_version": "7.3.9+dfsg-1ubuntu0.1"
},
{
"binary_name": "pypy3-lib-testsuite",
"binary_version": "7.3.9+dfsg-1ubuntu0.1"
},
{
"binary_name": "pypy3-tk",
"binary_version": "7.3.9+dfsg-1ubuntu0.1"
},
{
"binary_name": "pypy3-venv",
"binary_version": "7.3.9+dfsg-1ubuntu0.1"
}
]
},
"package": {
"ecosystem": "Ubuntu:22.04:LTS",
"name": "pypy3",
"purl": "pkg:deb/ubuntu/pypy3@7.3.9+dfsg-1ubuntu0.1?arch=source\u0026distro=jammy"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"7.3.5+dfsg-2",
"7.3.7+dfsg-1",
"7.3.7+dfsg-4",
"7.3.7+dfsg-5",
"7.3.8+dfsg-2",
"7.3.9+dfsg-1",
"7.3.9+dfsg-1ubuntu0.1"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "pypy3",
"binary_version": "7.3.15+dfsg-1build3"
},
{
"binary_name": "pypy3-lib",
"binary_version": "7.3.15+dfsg-1build3"
},
{
"binary_name": "pypy3-lib-testsuite",
"binary_version": "7.3.15+dfsg-1build3"
},
{
"binary_name": "pypy3-tk",
"binary_version": "7.3.15+dfsg-1build3"
},
{
"binary_name": "pypy3-venv",
"binary_version": "7.3.15+dfsg-1build3"
}
]
},
"package": {
"ecosystem": "Ubuntu:24.04:LTS",
"name": "pypy3",
"purl": "pkg:deb/ubuntu/pypy3@7.3.15+dfsg-1build3?arch=source\u0026distro=noble"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"7.3.12+dfsg-1",
"7.3.13+dfsg-1",
"7.3.14+dfsg-1",
"7.3.15+dfsg-1",
"7.3.15+dfsg-1build2",
"7.3.15+dfsg-1build3"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "pypy3",
"binary_version": "7.3.20+dfsg-4"
},
{
"binary_name": "pypy3-lib",
"binary_version": "7.3.20+dfsg-4"
},
{
"binary_name": "pypy3-lib-testsuite",
"binary_version": "7.3.20+dfsg-4"
},
{
"binary_name": "pypy3-tk",
"binary_version": "7.3.20+dfsg-4"
},
{
"binary_name": "pypy3-venv",
"binary_version": "7.3.20+dfsg-4"
}
]
},
"package": {
"ecosystem": "Ubuntu:26.04:LTS",
"name": "pypy3",
"purl": "pkg:deb/ubuntu/pypy3@7.3.20+dfsg-4?arch=source\u0026distro=resolute"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"7.3.20+dfsg-3",
"7.3.20+dfsg-4"
]
}
],
"aliases": [],
"details": "PyPy before versions 3.11.16 and 3.12.14 contains a use-after-free vulnerability in the pyexpat module\u0027s 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\u0027s tracing garbage collector can free the parent\u0027s C struct, causing bundled libexpat to dereference the freed pointer on every parsed token, producing memory corruption.",
"id": "UBUNTU-CVE-2026-76875",
"modified": "2026-09-29T13:17:00Z",
"published": "2026-09-29T13:17:00Z",
"references": [
{
"type": "REPORT",
"url": "https://ubuntu.com/security/CVE-2026-76875"
},
{
"type": "REPORT",
"url": "https://www.cve.org/CVERecord?id=CVE-2026-76875"
},
{
"type": "REPORT",
"url": "https://doc.pypy.org/release-v8.0.0.html"
},
{
"type": "REPORT",
"url": "https://github.com/pypy/pypy/releases/tag/release-pypy3.11-v8.0.0"
},
{
"type": "REPORT",
"url": "https://github.com/pypy/pypy/releases/tag/release-pypy3.12-v8.0.0"
},
{
"type": "REPORT",
"url": "https://www.vulncheck.com/advisories/pypy-pyexpat-externalentityparsercreate-use-after-free"
}
],
"related": [],
"schema_version": "1.7.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N",
"type": "CVSS_V3"
},
{
"score": "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",
"type": "CVSS_V4"
},
{
"score": "medium",
"type": "Ubuntu"
}
],
"upstream": [
"CVE-2026-76875"
]
}
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.