CVE-2024-9979
MEDIUM 5.3CVSS 3.1Pyo3: risk of use-after-free in `borrowed` reads from python weak references
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.
- Published
- 15 Oct 2024
- Last modified
- 24 Nov 2026
- Assigned by
- secalert@redhat.com
- NVD status
- Deferred
- Weakness
- CWE-416
- Also known as
- GHSA-6jgw-rgmm-7cv6RUSTSEC-2024-0378
- Sources
- NVDJSONCVE ListJSONOSV GHSA-6jgw-rgmm-7cv6JSONOSV RUSTSEC-2024-0378JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N | |
| NVD | secalert@redhat.com (Secondary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L |
| CVE List | redhat | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L |
| CVE List | CISA-ADP | SSVC | Exploitation: none; Automatable: no; Technical Impact: partial |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| CVE List | https://github.com/PyO3/pyo3 | pyo3 | >= 0.22.0, < 0.22.4 | 0.22.4 |
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | python3.11-nh3cpe:/a:redhat:ansible_automation_platform:2 |
||
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | python3.11-rpds-pycpe:/a:redhat:ansible_automation_platform:2 |
||
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | python-rpds-pycpe:/o:redhat:enterprise_linux:10 |
all versions | |
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | python3.11-cryptographycpe:/o:redhat:enterprise_linux:8 |
||
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | python3.12-cryptographycpe:/o:redhat:enterprise_linux:8 |
||
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | python3.11-cryptographycpe:/o:redhat:enterprise_linux:9 |
||
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | python3.12-cryptographycpe:/o:redhat:enterprise_linux:9 |
||
| OSV | crates.io | pyo3 | >= 0.22.0, < 0.22.4 | 0.22.4 |
References
- https://access.redhat.com/security/cve/CVE-2024-9979 · vdb-entry, x_refsource_REDHAT, WEB
- https://bugzilla.redhat.com/show_bug.cgi?id=2318646 · issue-tracking, x_refsource_REDHAT, WEB
- https://crates.io/crates/pyo3 · WEB, PACKAGE
- https://github.com/PyO3/pyo3/pull/4590 · WEB
- https://rustsec.org/advisories/RUSTSEC-2024-0378.html · WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2024-9979 · ADVISORY
- https://github.com/PyO3/pyo3 · PACKAGE
History
- 25 Nov 2026 20:36 UTC · CVE List: first stored (published 15 Oct 2024)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 12 Oct 2024)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 15 Oct 2024)
- 25 Nov 2026 20:10 UTC · NVD: first stored (published 15 Oct 2024)