Vulnerability · Published Oct 15, 2024 · Assigned by redhat
CVE-2024-9979Pyo3: risk of use-after-free in `borrowed` reads from python weak references
Medium 5.3
In plain English
A medium-severity use-after-free in pyo3. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 11% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)5.3Medium
Exploit odds (30 days)0.2%top 89.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:13 | rust-pyo3 | 0.22.5-1 | DEBIAN-CVE-2024-9979 |
| Debian:14 | rust-pyo3 | 0.22.5-1 | DEBIAN-CVE-2024-9979 |
| Ubuntu:24.04:LTS | rust-pyo3 | no fix listed | UBUNTU-CVE-2024-9979 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| pyo3 | 0.22.0 – before 0.22.4 | |
| Red Hat | Red Hat Ansible Automation Platform 2 | see references |
| Red Hat | Red Hat Ansible Automation Platform 2 | see references |
| Red Hat | Red Hat Enterprise Linux 10 | see references |
| Red Hat | Red Hat Enterprise Linux 8 | see references |
| Red Hat | Red Hat Enterprise Linux 8 | see references |
| Red Hat | Red Hat Enterprise Linux 9 | see references |
| Red Hat | Red Hat Enterprise Linux 9 | see references |
Weakness: CWE-416 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
References
- https://access.redhat.com/security/cve/CVE-2024-9979 vdb-entry, x_refsource_REDHAT
- RHBZ#2318646 issue-tracking, x_refsource_REDHAT
- https://crates.io/crates/pyo3
- https://github.com/PyO3/pyo3/pull/4590
- https://rustsec.org/advisories/RUSTSEC-2024-0378.html