Red Hat VEX
RHVEX-CVE-2024-9979
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Red Hat:enterprise_linux:10 | python3-rpds-py | All versions, will not be fixed |
References
- https://access.redhat.com/security/cve/CVE-2024-9979
- https://bugzilla.redhat.com/show_bug.cgi?id=2318646
- https://www.cve.org/CVERecord?id=CVE-2024-9979
- https://nvd.nist.gov/vuln/detail/CVE-2024-9979
- https://crates.io/crates/pyo3
- https://github.com/PyO3/pyo3/pull/4590
- https://rustsec.org/advisories/RUSTSEC-2024-0378.html