{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2020-35917","id":"CVE-2020-35917","title":"Reference counting error in pyo3","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>>.","descriptionLong":"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":"2020-12-31T08:18:37.000Z","updated":"2026-10-24T10:30:38.860974311Z","reserved":"2020-12-31T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"mitre","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"OSV"},{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"GitHub"},{"version":"2.0","score":2.1,"vector":"AV:L/AC:L/Au:N/C:N/I:N/A:P","rating":"low","source":"NVD"}],"rating":"medium","products":[],"affectedProducts":[{"vendor":"n/a","product":"n/a","defaultStatus":null,"versions":[{"status":"affected","version":"n/a"}],"platforms":[]}],"packages":[{"ecosystem":"crates.io","name":"pyo3","purl":"pkg:cargo/pyo3","ranges":[">=0.12.0 <0.12.4"],"fixed":["0.12.4"],"advisory":"GHSA-2vx6-fcw6-hpr6"}],"cwes":["CWE-416"],"aliases":["GHSA-2vx6-fcw6-hpr6","RUSTSEC-2020-0074"],"references":[{"url":"https://rustsec.org/advisories/RUSTSEC-2020-0074.html","tags":["x_refsource_MISC","x_transferred","Exploit","Patch","Third Party Advisory","fix","web","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-35917","tags":["advisory"]},{"url":"https://github.com/PyO3/pyo3/pull/1297","tags":["web"]},{"url":"https://github.com/PyO3/pyo3/commit/8f81f595dd770b586c7ca7195b42004a6c976eb9","tags":["web"]},{"url":"https://github.com/PyO3/pyo3","tags":["package"]},{"url":"https://crates.io/crates/pyo3","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.00393,"epssPercentile":0.34203,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2020-35917","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-35917","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2020-35917","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-2vx6-fcw6-hpr6","ok":true,"note":"GHSA-2vx6-fcw6-hpr6"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2020-35917","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}