CVE-2024-9979
published medium CVSS 3.1 · 5.3Pyo3: risk of use-after-free in `borrowed` reads from python weak references
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Not stated | — | pyo30.22.0 to < 0.22.4 · Other versions: unaffected | Affected | Not stated | redhat |
| Red Hat | — | python3.11-nh3Red Hat Ansible Automation Platform 2 | Unaffected | Not required | redhat |
| Red Hat | — | python3.11-rpds-pyRed Hat Ansible Automation Platform 2 | Unaffected | Not required | redhat |
| Red Hat Enterprise Linux | 10 | python-rpds-py | Affected | Not stated | redhat |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Red Hat Enterprise Linux | 8, 9 | python3.11-cryptography | Unaffected | Not required | redhat |
| Red Hat Enterprise Linux | 8, 9 | python3.12-cryptography | Unaffected | Not required | redhat |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.3 / 10
- Severity
- medium
- Provider
- redhat · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| pyo3 | 0.22.0 to < 0.22.4 (affected · semver)Default: unaffected | redhat · cna | |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: unaffected | redhat · cna |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: unaffected | redhat · cna |
| Red Hat | Red Hat Enterprise Linux 10 | Default: affected | redhat · cna |
| Red Hat | Red Hat Enterprise Linux 8 | Default: unaffected | redhat · cna |
| Red Hat | Red Hat Enterprise Linux 8 | Default: unaffected | redhat · cna |
| Red Hat | Red Hat Enterprise Linux 9 | Default: unaffected | redhat · cna |
| Red Hat | Red Hat Enterprise Linux 9 | Default: unaffected | redhat · cna |
Weaknesses
1- CWE-416 Use After Free
References
5- https://access.redhat.com/security/cve/CVE-2024-9979
- RHBZ#2318646 https://bugzilla.redhat.com/show_bug.cgi?id=2318646
- https://crates.io/crates/pyo3
- https://github.com/PyO3/pyo3/pull/4590
- https://rustsec.org/advisories/RUSTSEC-2024-0378.html
Provider assertions
2redhat · cna
Pyo3: risk of use-after-free in `borrowed` reads from python weak references
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 47cb52618506acabf1e73f9fd8a415383e31eb620c3c89b793c0e83633ef0341
- Ingested
- 24 Nov 2026, 06:28:17 UTC
- Source record
- Official CVE record