CVE-2024-9979 Pyo3: risk of use-after-free in `borrowed` reads from python weak references
MediumCVSS 5.3
EPSS 0.21%
- Published
- Updated
- Exploit status
- No public exploit known
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.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| crates.io pyo3(crates.io) | >= 0.22.0, < 0.22.4 | 0.22.4 |
| debian/rust-pyo3(Debian:13) | < 0.22.5-1 | 0.22.5-1 |
| debian/rust-pyo3(Debian:14) | < 0.22.5-1 | 0.22.5-1 |
| pyo3 | >= 0.22.0, < 0.22.4 | 0.22.4 |
| redhat ansible automation platform | = 2 | No fix listed |
| redhat enterprise linux | All versions | No fix listed |
| redhat enterprise linux | = 8 | No fix listed |
| redhat enterprise linux | = 9 | No fix listed |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com patch
- access.redhat.com vdb-entry
- RHBZ#2318646 issue-tracking
- crates.io product
- github.com product
- rustsec.org vendor-advisory
- github.com
- Debian Security Tracker CVE-2024-9979 vendor-advisory
- bugs.debian.org issue-tracking