{"id":"UBUNTU-CVE-2026-76875","details":"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.","modified":"2026-10-01T00:22:09.321436718Z","published":"2026-09-29T13:17:00Z","upstream":["CVE-2026-76875"],"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"}],"affected":[{"package":{"name":"pypy3","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/pypy3?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"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.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_version":"7.3.1+dfsg-4ubuntu0.1","binary_name":"pypy3-tk"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-76875.json"}},{"package":{"name":"pypy3","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/pypy3?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"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_version":"7.3.9+dfsg-1ubuntu0.1","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_name":"pypy3-tk","binary_version":"7.3.9+dfsg-1ubuntu0.1"},{"binary_name":"pypy3-venv","binary_version":"7.3.9+dfsg-1ubuntu0.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-76875.json"}},{"package":{"name":"pypy3","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/pypy3?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"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.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_version":"7.3.15+dfsg-1build3","binary_name":"pypy3-tk"},{"binary_name":"pypy3-venv","binary_version":"7.3.15+dfsg-1build3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-76875.json"}},{"package":{"name":"pypy3","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/pypy3?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["7.3.20+dfsg-3","7.3.20+dfsg-4"],"ecosystem_specific":{"binaries":[{"binary_name":"pypy3","binary_version":"7.3.20+dfsg-4"},{"binary_version":"7.3.20+dfsg-4","binary_name":"pypy3-lib"},{"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"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-76875.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"},{"type":"CVSS_V4","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":"Ubuntu","score":"medium"}]}