logo

GHSA-f8x4-f32r-w556 pyo3

Package

Manager: cargo
Name: pyo3
Vulnerable Version: <0

Severity

Level: Medium

CVSS v3.1: N/A

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: N/A pctlN/A

Details

Duplicate Advisory: PyO3 has a risk of use-after-free in `borrowed` reads from Python weak references ## Duplicate Advisory This advisory has been withdrawn because it is a duplicate of GHSA-6jgw-rgmm-7cv6. This link is maintained to preserve external references. ## Original Advisory 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-15T14:08:25Z
Modified: 2024-10-15T17:13:46Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/10/GHSA-f8x4-f32r-w556/GHSA-f8x4-f32r-w556.json
CWE IDs: ["CWE-416"]
Alternative ID: N/A
Finding: N/A
Auto approve: 0