{"answers":{"affected":"3 open source packages ship an affected version, including pyo3.","exploited":"There is no known exploitation of CVE-2024-9979 in the wild and no public exploit code.","fix":"Upgrade pyo3 to 0.22.4 or later.","what":"CVE-2024-9979 is a medium-severity use after free vulnerability in Red Hat Ansible Automation Platform 2, published on 15 Oct 2024. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-9979 and fix it if it is affected.\n\nWhat it is: CVE-2024-9979 is a medium-severity use after free vulnerability in Red Hat Ansible Automation Platform 2, published on 15 Oct 2024. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-9979 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- pyo3 (crates.io): affected from 0.22.0; fixed in 0.22.4\n- pyo3 (crates.io): affected from 0.22.0; fixed in 0.22.4\n- pyo3 (crates.io): affected from 0.22.0; fixed in 0.22.4\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-9979/ (Markdown: https://insights.sbomify.com/CVE-2024-9979/index.md)","id":"CVE-2024-9979","markdown":"https://insights.sbomify.com/CVE-2024-9979/index.md","name":"CVE-2024-9979","record":{"aliases":["DEBIAN-CVE-2024-9979","GHSA-6jgw-rgmm-7cv6","RUSTSEC-2024-0378"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","denial_of_service"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Python Rust binding library","requires_auth":"low_privilege","summary":"Attackers can trigger use-after-free via unsound borrowing from weak Python references, potentially causing memory corruption or crashes in applications using PyO3.","user_interaction":"not_required","vuln_class":"use_after_free"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[],"cvss":{"score":5.3,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","version":"3.1"},"cwes":[{"id":"CWE-416","name":"Use After Free"}],"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.","ecosystems":["crates.io"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Pyo3: risk of use-after-free in `borrowed` reads from python weak references","id":"CVE-2024-9979","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"crates.io","product":null,"products":[],"type":"use_after_free","year":"2024"},"n_packages":3,"n_references":5,"next":{"headline":"FormosaSoft ee-class - SQL Injection","id":"CVE-2024-9980"},"packages":[{"ecosystem":"crates.io","fixed":["0.22.4"],"introduced":["0.22.0"],"last_affected":[],"package":"pyo3","purl":null,"source":"GHSA-6jgw-rgmm-7cv6"},{"ecosystem":"crates.io","fixed":["0.22.4"],"introduced":["0.22.0"],"last_affected":[],"package":"pyo3","purl":"pkg:cargo/pyo3","source":"GHSA-6jgw-rgmm-7cv6"},{"ecosystem":"crates.io","fixed":["0.22.4"],"introduced":["0.22.0"],"last_affected":[],"package":"pyo3","purl":"pkg:cargo/pyo3","source":"RUSTSEC-2024-0378"}],"prev":{"headline":"Liteos_a has an out-of-bounds read vulnerability","id":"CVE-2024-9978"},"products":["Red Hat Ansible Automation Platform 2","Red Hat Enterprise Linux 10","Red Hat Enterprise Linux 8","Red Hat Enterprise Linux 9"],"published":"2024-10-15","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"open","licence":"CC0 1.0","name":"RustSec","prefix":"RUSTSEC"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-11-20","vendors":["Red Hat"]},"summary":"Attackers can trigger use-after-free via unsound borrowing from weak Python references, potentially causing memory corruption or crashes in applications using PyO3.","url":"https://insights.sbomify.com/CVE-2024-9979/"}