medium5.5
CVE-2020-35917
Reference counting error in pyo3
Impact
An issue was discovered in the pyo3 crate before 0.12.4 for Rust. There is a reference-counting error and use-after-free in From<Py<T>>.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| rust | pyo3 | >= 0.12.0, < 0.12.4 | 0.12.4 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Pyo3 Project | Pyo3 | before 0.12.4 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://rustsec.org/advisories/RUSTSEC-2020-0074.html
- https://github.com/advisories/GHSA-2vx6-fcw6-hpr6
- https://nvd.nist.gov/vuln/detail/CVE-2020-35917
- https://github.com/PyO3/pyo3/pull/1297
- https://github.com/PyO3/pyo3/commit/8f81f595dd770b586c7ca7195b42004a6c976eb9