{"id":"CVE-2026-76875","state":"PUBLISHED","title":"PyPy pyexpat ExternalEntityParserCreate Use-After-Free","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.","publishedAt":"2026-09-29T12:45:19.797Z","updatedAt":"2026-10-02T12:07:30.652Z","severity":{"score":6.3,"label":"Medium","version":"4.0","vector":"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","source":"VulnCheck"},"assigner":"VulnCheck","products":["PyPy PyPy"],"affected":[{"vendor":"PyPy","product":"PyPy","packageURL":"pkg:github/pypy/pypy","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"3.11.16","versionType":"semver"},{"version":"3.12.0","status":"affected","lessThan":"3.12.14","versionType":"semver"}],"repo":"https://github.com/pypy/pypy"}],"references":["https://doc.pypy.org/release-v8.0.0.html","https://github.com/pypy/pypy/releases/tag/release-pypy3.12-v8.0.0","https://github.com/pypy/pypy/releases/tag/release-pypy3.11-v8.0.0","https://www.vulncheck.com/advisories/pypy-pyexpat-externalentityparsercreate-use-after-free"],"weaknesses":["CWE-416"],"ingestedAt":"2026-10-29T20:12:58.252Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/76xxx/CVE-2026-76875.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-76875","state":"PUBLISHED","datePublished":"2026-09-29T12:45:19.797Z","dateUpdated":"2026-10-02T12:07:30.652Z","assignerShortName":"VulnCheck","assignerOrgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateReserved":"2026-08-19T21:47:08.936Z"},"containers":{"cna":{"title":"PyPy pyexpat ExternalEntityParserCreate Use-After-Free","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"PyPy","product":"PyPy","packageURL":"pkg:github/pypy/pypy","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"3.11.16","versionType":"semver"},{"version":"3.12.0","status":"affected","lessThan":"3.12.14","versionType":"semver"}],"repo":"https://github.com/pypy/pypy"}],"references":[{"url":"https://doc.pypy.org/release-v8.0.0.html","name":"Release Notes","tags":["release-notes"]},{"url":"https://github.com/pypy/pypy/releases/tag/release-pypy3.12-v8.0.0","name":"3.12 Release Tag","tags":["patch"]},{"url":"https://github.com/pypy/pypy/releases/tag/release-pypy3.11-v8.0.0","name":"3.11 Release Tag","tags":["patch"]},{"url":"https://www.vulncheck.com/advisories/pypy-pyexpat-externalentityparsercreate-use-after-free","tags":["third-party-advisory"]}],"metrics":[{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV4_0":{"attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"PRESENT","privilegesRequired":"NONE","userInteraction":"NONE","vulnConfidentialityImpact":"NONE","subConfidentialityImpact":"NONE","vulnIntegrityImpact":"LOW","subIntegrityImpact":"NONE","vulnAvailabilityImpact":"NONE","subAvailabilityImpact":"NONE","exploitMaturity":"NOT_DEFINED","Safety":"NOT_DEFINED","Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","valueDensity":"NOT_DEFINED","vulnerabilityResponseEffort":"NOT_DEFINED","providerUrgency":"NOT_DEFINED","version":"4.0","baseSeverity":"MEDIUM","baseScore":6.3,"vectorString":"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"}},{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV3_1":{"attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"LOW","availabilityImpact":"NONE","version":"3.1","baseSeverity":"MEDIUM","baseScore":5.3,"vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-416","lang":"en","description":"Use After Free","type":"CWE"}]}],"providerMetadata":{"shortName":"VulnCheck","orgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateUpdated":"2026-09-29T12:45:19.797Z"},"tags":["x_open-source"],"datePublic":"2026-09-19T00:00:00.000Z","credits":[{"lang":"en","value":"Fabian Wahle (Hap Security)","type":"finder"},{"lang":"en","value":"VulnCheck","type":"coordinator"}],"source":{"discovery":"UNKNOWN"},"x_generator":{"engine":"vulncheck"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-10-02T12:07:14.237053Z","id":"CVE-2026-76875","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-10-02T12:07:30.652Z"}}]}}}