PT-2020-17549 · Rust · Pyo3
Published
2020-11-28
·
Updated
2021-08-25
·
CVE-2020-35917
CVSS v3.1
5.5
Medium
| Vector | AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Name of the Vulnerable Software and Affected Versions
pyo3 crate versions prior to 0.12.4
Description
An issue in the pyo3 crate leads to a reference-counting error and use-after-free in
From<Py<T>>. This is caused by a bug that results in an extra reference count decrement, often leading to use-after-free issues.Recommendations
For versions prior to 0.12.4, update to version 0.12.4 or later to resolve the issue. As a temporary workaround, consider restricting the use of
From<Py<T>> to minimize the risk of exploitation.Exploit
Fix
Use After Free
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Pyo3