CVE-2024-9979 json
Pyo3: risk of use-after-free in `borrowed` reads from python weak references
published 2024-10-12 2 y ago modified 2026-11-05 3 d ago also GHSA-6jgw-rgmm-7cv6 , RUSTSEC-2024-0378 , EUVD-2024-2969
- cvss
- 5.3
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 10%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- crates.io pyo3 0.22.4
- rust-pyo3 Debian 14, Debian 13 0.22.5-1
debian advisories DEBIAN-CVE-2024-9979
- github.com/PyO3/pyo3#4590 pull request
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2024-9979 updated cvss 5.3
pyo3: Risk of use-after-free in `borrowed` reads from Python weak references
-
Red Hat Enterprise Linux 10 python-rpds-pyaffected: workaround, no fix planned “Will not fix”
-
Red Hat Ansible Automation Platform 2 python3.11-nh3, python3.11-rpds-py Red Hat Enterprise Linux 8 python3.11-cryptography, python3.12-cryptography Red Hat Enterprise Linux 9 python3.11-cryptography, python3.12-cryptographynot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.21% chance of exploitation in the next 30 days, higher than 10% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 5.3 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L |
| GitHub | 3.1 | 5.3 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| crates.io | pyo3 | >=0.22.0, <0.22.4 |
0.22.4 |
Affected products
- Red Hat Red Hat Ansible Automation Platform 2
- Red Hat Red Hat Enterprise Linux 10
- Red Hat Red Hat Enterprise Linux 8
- Red Hat Red Hat Enterprise Linux 9
Classification
- Weakness
-
- CWE-416 Use After Free
References
-
github.com
/PyO3/pyo3/pull/4590
web
-
access.redhat.com
/security/cve/CVE-2024-9979
vdb-entry, web
-
bugzilla.redhat.com
/show_bug.cgi?id=2318646
issue-tracking, web
-
crates.io
/crates/pyo3
web, package
-
rustsec.org
/advisories/RUSTSEC-2024-0378.html
web, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2024-9979
advisory
-
github.com
/PyO3/pyo3
package
Sources
- CVE List CVE-2024-9979
- GitHub Advisory GHSA-6jgw-rgmm-7cv6
- NVD CVE-2024-9979
- OSV RUSTSEC-2024-0378
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.