CVE-2020-35917

Description

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

Severity
MEDIUM
CVSS v3
5.5
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H · source nvd
Exploit chance (EPSS)
0.393%
chance of exploitation in the next 30 days
higher than 34% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
Yes
Exploit references (NVD and CNA): 1
Metasploit modules: 0
Nuclei templates: 0

Weakness

Timeline

  1. 2020-12-31Published by the CNA08:18 UTC
  2. 2021-08-25GitHub advisory published (GHSA-2vx6-fcw6-hpr6)237 days after publication

The timeline shows what already happened. To be told when this CVE changes next, watch it from the API.

Exploit and advisory records

GitHub advisory GHSA-2vx6-fcw6-hpr6, affected packages:

PackageVulnerable versionsFixed in
crates.io pyo3from 0.12.0 before 0.12.40.12.4

Affected products

Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.

ProductVulnerable versionsFixed in
pyo3_project pyo3before 0.12.4fixed in 0.12.40.12.4

Products and versions as NVD and the vendor that published the CVE list them.

References

Get more CVE data from the API.

Free without a key or signup. Pro adds monitoring and higher limits: pricing.

Sources