logo

CVE-2024-9979 pyo3

Package

Manager: cargo
Name: pyo3
Vulnerable Version: >=0.22.0 <0.22.4

Severity

Level: Medium

CVSS v3.1: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L

CVSS v4.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

EPSS: 0.001 pctl0.2837

Details

PyO3 has a risk of use-after-free in `borrowed` reads from Python weak references The family of functions to read "borrowed" values from Python weak references were fundamentally unsound, because the weak reference does itself not have ownership of the value. At any point the last strong reference could be cleared and the borrowed value would become dangling. In PyO3 0.22.4 these functions have all been deprecated and patched to leak a strong reference as a mitigation. PyO3 0.23 will remove these functions entirely.

Metadata

Created: 2024-10-15T15:30:56Z
Modified: 2024-10-15T17:04:56Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/10/GHSA-6jgw-rgmm-7cv6/GHSA-6jgw-rgmm-7cv6.json
CWE IDs: ["CWE-416"]
Alternative ID: GHSA-6jgw-rgmm-7cv6
Finding: F138
Auto approve: 1