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

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.

Classification

CVE ID: CVE-2024-9979

Exploit Prediction Scoring System (EPSS)

EPSS Score: 0.05% (probability of being exploited)

EPSS Percentile: 17.83% (scored less or equal to compared to others)

EPSS Date: 2025-02-04 (when was this score calculated)

References

https://access.redhat.com/security/cve/CVE-2024-9979
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

Timeline