Register for the AI for Security Summit: Join Figma, Perplexity & Wiz

CVE-2020-35917
Rust vulnerability analysis and mitigation

Overview

An issue was discovered in the pyo3 crate before 0.12.4 for Rust. The vulnerability (CVE-2020-35917) involves a reference-counting error and use-after-free in From<Py<T>> implementation. The issue was reported and issued on November 28, 2020, affecting versions from 0.12.0 to versions prior to 0.12.4 (RUSTSEC Advisory).

Technical details

The vulnerability stems from a bug in the From<Py<T>> implementation that causes an extra reference count decrement. This incorrect reference counting behavior frequently results in use-after-free issues, which is a serious memory corruption vulnerability. The issue has been assigned a CVSS v3.1 score of 5.5 (MEDIUM) with vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H (RUSTSEC Advisory).

Impact

The vulnerability can lead to use-after-free issues, which could result in program crashes or potential memory corruption. The CVSS scoring indicates high impact on availability while confidentiality and integrity remain unaffected (RUSTSEC Advisory).

Exploitability

The vulnerability requires local access with low attack complexity and low privileges. No user interaction is needed for exploitation, as indicated by the CVSS metrics (RUSTSEC Advisory).

Mitigation and workarounds

The vulnerability has been fixed in version 0.12.4 of the pyo3 crate. Users are advised to upgrade to version 0.12.4 or later. Versions before 0.12.0 are unaffected by this vulnerability (RUSTSEC Advisory).

Additional resources


SourceThis report was generated using AI

Related Rust vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-68537HIGH7.5
  • Rust logoRust
  • fulgur
NoYesSep 17, 2026
CVE-2026-68523HIGH7.5
  • Rust logoRust
  • fulgur
NoYesSep 17, 2026
RUSTSEC-2026-0289NONEN/A
  • Rust logoRust
  • pqc_kyber
NoNoSep 17, 2026
RUSTSEC-2026-0287NONEN/A
  • Rust logoRust
  • cosmian_kyber
NoNoSep 17, 2026
RUSTSEC-2026-0286NONEN/A
  • Rust logoRust
  • cryptoki
NoYesSep 16, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management