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

EcosystemPackageFixed inAdvisory
Debian:13rust-pyo30.22.5-1DEBIAN-CVE-2024-9979
Debian:14rust-pyo30.22.5-1DEBIAN-CVE-2024-9979
Ubuntu:24.04:LTSrust-pyo3no fix listedUBUNTU-CVE-2024-9979

Affected products (as reported)

VendorProductVersions
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