{"id":"CVE-2024-9979","summary":"Pyo3: risk of use-after-free in `borrowed` reads from python weak references","details":"A flaw was found in PyO3. This vulnerability causes a use-after-free issue, potentially leading to memory corruption or crashes via unsound borrowing from weak Python references.","aliases":["GHSA-6jgw-rgmm-7cv6","RUSTSEC-2024-0378"],"modified":"2026-09-15T11:30:40.981168799Z","published":"2024-10-15T14:01:54.309Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/9xxx/CVE-2024-9979.json","cna_assigner":"redhat","cwe_ids":["CWE-416"]},"references":[{"type":"WEB","url":"https://access.redhat.com/downloads/content/package-browser/"},{"type":"WEB","url":"https://crates.io/crates/pyo3"},{"type":"ADVISORY","url":"https://access.redhat.com/security/cve/CVE-2024-9979"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/9xxx/CVE-2024-9979.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-9979"},{"type":"ADVISORY","url":"https://rustsec.org/advisories/RUSTSEC-2024-0378.html"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2318646"},{"type":"FIX","url":"https://github.com/PyO3/pyo3/pull/4590"},{"type":"PACKAGE","url":"https://github.com/PyO3/pyo3"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/pyo3/pyo3","events":[{"introduced":"2e2d4404a682ce87e0b0fe254816457872acf5b2"},{"fixed":"dff972320287043777fd77063175d23879fef90f"}],"database_specific":{"extracted_events":[{"introduced":"0.22.0"},{"fixed":"0.22.4"}],"source":"AFFECTED_FIELD"}}],"versions":["v0.22.3","v0.22.2","v0.22.1","v0.22.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-9979.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L"}]}