{"id":"CVE-2024-9979","published":"2024-10-15T14:01:54Z","modified":"2026-11-05T14:45:39Z","title":"Pyo3: risk of use-after-free in `borrowed` reads from python weak references","vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00206,"percentile":0.10783,"provenance":"source"},"cwes":[{"id":"CWE-416","name":"Use After Free"}],"references":[{"url":"https://access.redhat.com/security/cve/CVE-2024-9979","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2318646","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://crates.io/crates/pyo3","tags":[]},{"url":"https://github.com/PyO3/pyo3/pull/4590","tags":[]},{"url":"https://rustsec.org/advisories/RUSTSEC-2024-0378.html","tags":[]}],"priority":{"score":5.9,"factors":[{"name":"EPSS percentile","points":2.16},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"red-hat","affectedVersions":[{"vendor":null,"product":null,"versions":[">= 0.22.0, < 0.22.4"]},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 10","versions":["all versions"]}],"workarounds":{"items":["Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability."],"from":"CVE.org CNA","provenance":"source"},"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-10-15T14:19:04.359472Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"crates.io","package":"pyo3","vulnerableRanges":[">=0.22.0, <0.22.4"],"patched":["0.22.4"],"from":["GHSA-6jgw-rgmm-7cv6","RUSTSEC-2024-0378"],"provenance":"source"}],"summary":{"text":"A use-after-free flaw in the PyO3 component of Red Hat Ansible Automation Platform 2 stems from unsound borrowing from Python weak references. An attacker with local access and low privileges, requiring no user interaction, could trigger memory corruption or crashes.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:18:40Z"},"euvd":{"id":"EUVD-2024-2969","exploited":false,"provenance":"source"}}