Skip to content

CVE-2024-9979 Pyo3: risk of use-after-free in `borrowed` reads from python weak references

MediumCVSS 5.3 EPSS 0.21%
Published
Updated
Exploit status
No public exploit known

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 products

ProductAffected versionsFixed in
crates.io pyo3(crates.io) >= 0.22.0, < 0.22.4 0.22.4
debian/rust-pyo3(Debian:13) < 0.22.5-1 0.22.5-1
debian/rust-pyo3(Debian:14) < 0.22.5-1 0.22.5-1
pyo3 >= 0.22.0, < 0.22.4 0.22.4
redhat ansible automation platform = 2 No fix listed
redhat enterprise linux All versions No fix listed
redhat enterprise linux = 8 No fix listed
redhat enterprise linux = 9 No fix listed

References