Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: GSA_kwCzR0hTQS02amd3LXJnbW0tN2N2Ns4ABARX
PyO3 has a risk of use-after-free in `borrowed` reads from Python weak references
The family of functions to read "borrowed" values from Python weak references were fundamentally unsound, because the weak reference does itself not have ownership of the value. At any point the last strong reference could be cleared and the borrowed value would become dangling.
In PyO3 0.22.4 these functions have all been deprecated and patched to leak a strong reference as a mitigation. PyO3 0.23 will remove these functions entirely.
Permalink: https://github.com/advisories/GHSA-6jgw-rgmm-7cv6JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS02amd3LXJnbW0tN2N2Ns4ABARX
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: about 9 hours ago
Updated: about 7 hours ago
CVSS Score: 5.3
CVSS vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
Identifiers: GHSA-6jgw-rgmm-7cv6, CVE-2024-9979
References:
- https://nvd.nist.gov/vuln/detail/CVE-2024-9979
- https://github.com/PyO3/pyo3/pull/4590
- https://access.redhat.com/security/cve/CVE-2024-9979
- https://bugzilla.redhat.com/show_bug.cgi?id=2318646
- https://crates.io/crates/pyo3
- https://rustsec.org/advisories/RUSTSEC-2024-0378.html
- https://github.com/advisories/GHSA-6jgw-rgmm-7cv6
Blast Radius: 17.9
Affected Packages
cargo:pyo3
Dependent packages: 666Dependent repositories: 2,349
Downloads: 45,330,358 total
Affected Version Ranges: >= 0.22.0, < 0.22.4
Fixed in: 0.22.4
All affected versions: 0.22.0, 0.22.1, 0.22.2, 0.22.3
All unaffected versions: 0.1.0, 0.2.0, 0.2.1, 0.2.2, 0.2.3, 0.2.4, 0.2.5, 0.2.6, 0.2.7, 0.3.0, 0.3.1, 0.3.2, 0.4.0, 0.4.1, 0.5.0, 0.5.1, 0.5.2, 0.5.3, 0.5.4, 0.6.0, 0.7.0, 0.8.0, 0.8.1, 0.8.2, 0.8.3, 0.8.4, 0.8.5, 0.9.0, 0.9.1, 0.9.2, 0.10.0, 0.10.1, 0.11.0, 0.11.1, 0.12.0, 0.12.1, 0.12.2, 0.12.3, 0.12.4, 0.13.0, 0.13.1, 0.13.2, 0.14.0, 0.14.1, 0.14.2, 0.14.3, 0.14.4, 0.14.5, 0.15.0, 0.15.1, 0.15.2, 0.16.0, 0.16.1, 0.16.2, 0.16.3, 0.16.4, 0.16.5, 0.16.6, 0.17.0, 0.17.1, 0.17.2, 0.17.3, 0.18.0, 0.18.1, 0.18.2, 0.18.3, 0.19.0, 0.19.1, 0.19.2, 0.20.0, 0.20.1, 0.20.2, 0.20.3, 0.21.0, 0.21.1, 0.21.2, 0.22.4