CVE-2020-35917
MEDIUM 5.5CVSS 3.1Reference counting error in pyo3
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>>.
- Published
- 31 Dec 2020
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-416
- Also known as
- GHSA-2vx6-fcw6-hpr6RUSTSEC-2020-0074
- Sources
- NVDJSONOSV GHSA-2vx6-fcw6-hpr6JSONOSV RUSTSEC-2020-0074JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| OSV | RustSec | CVSS 3.1 | MEDIUM 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | LOW 2.1 | AV:L/AC:L/Au:N/C:N/I:N/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | pyo3_project | pyo3cpe:2.3:a:pyo3_project:pyo3:*:*:*:*:*:rust:*:* |
< 0.12.4 | 0.12.4 |
| OSV | crates.io | pyo3 | >= 0.12.0, < 0.12.4 | 0.12.4 |
References
- https://rustsec.org/advisories/RUSTSEC-2020-0074.html · Exploit, Patch, Third Party Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2020-35917 · ADVISORY
- https://github.com/PyO3/pyo3/pull/1297 · WEB
- https://github.com/PyO3/pyo3/commit/8f81f595dd770b586c7ca7195b42004a6c976eb9 · WEB
- https://github.com/PyO3/pyo3 · PACKAGE
- https://crates.io/crates/pyo3 · PACKAGE
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 31 Dec 2020)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 28 Nov 2020)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 25 Aug 2021)