{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-9979","id":"CVE-2024-9979","title":"Pyo3: risk of use-after-free in `borrowed` reads from python weak references","description":"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.","descriptionLong":"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.","published":"2024-10-15T14:01:54.309Z","updated":"2026-11-07T02:30:50.890701858Z","reserved":"2024-10-15T06:47:28.744Z","status":"Deferred","rejected":false,"assigner":"redhat","metric":{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","rating":"medium","source":"redhat"},"metrics":[{"version":"4.0","score":null,"vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N","rating":"medium","source":"GitHub"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","rating":"medium","source":"redhat"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","rating":"medium","source":"redhat.com"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","rating":"medium","source":"OSV"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","rating":"medium","source":"GitHub"}],"rating":"medium","products":["pyo3","Red Hat Ansible Automation Platform 2","Red Hat Enterprise Linux 10","Red Hat Enterprise Linux 8","Red Hat Enterprise Linux 9"],"affectedProducts":[{"vendor":"","product":"pyo3","defaultStatus":"unaffected","versions":[{"status":"affected","version":"0.22.0","lessThan":"0.22.4","versionType":"semver"}],"platforms":[]},{"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2","defaultStatus":"unaffected","versions":[],"platforms":[]},{"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2","defaultStatus":"unaffected","versions":[],"platforms":[]},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 10","defaultStatus":"affected","versions":[],"platforms":[]},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8","defaultStatus":"unaffected","versions":[],"platforms":[]},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8","defaultStatus":"unaffected","versions":[],"platforms":[]},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9","defaultStatus":"unaffected","versions":[],"platforms":[]},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9","defaultStatus":"unaffected","versions":[],"platforms":[]}],"packages":[{"ecosystem":"crates.io","name":"pyo3","purl":"pkg:cargo/pyo3","ranges":[">=0.22.0 <0.22.4"],"fixed":["0.22.4"],"advisory":"GHSA-6jgw-rgmm-7cv6"}],"cwes":["CWE-416"],"aliases":["GHSA-6jgw-rgmm-7cv6","RUSTSEC-2024-0378"],"references":[{"url":"https://access.redhat.com/security/cve/CVE-2024-9979","tags":["vdb-entry","x_refsource_REDHAT","advisory","web"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2318646","tags":["issue-tracking","x_refsource_REDHAT","report","web"]},{"url":"https://crates.io/crates/pyo3","tags":["web","package"]},{"url":"https://github.com/PyO3/pyo3/pull/4590","tags":["fix","web"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2024-0378.html","tags":["advisory","web"]},{"url":"https://access.redhat.com/downloads/content/package-browser/","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/9xxx/CVE-2024-9979.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-9979","tags":["advisory"]},{"url":"https://github.com/PyO3/pyo3","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00206,"epssPercentile":0.10652,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-9979","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-9979","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-9979","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-6jgw-rgmm-7cv6","ok":true,"note":"GHSA-6jgw-rgmm-7cv6"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-9979","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}