Vulnerability DatabaseRUSTSEC-2020-0074

RUSTSEC-2020-0074
Rust vulnerability analysis and mitigation

Overview

A reference counting error and use-after-free vulnerability was discovered in the pyo3 crate versions before 0.12.4 for Rust. The vulnerability was identified with identifier RUSTSEC-2020-0074 (CVE-2020-35917) and affected the From<Py<T>> implementation for PyObject (NVD).

Technical details

The vulnerability stemmed from an incorrect implementation where destructuring of a Py object led to unexpected behavior. The issue occurred because a pointer (ptr) implemented Copy, causing it to be copied from the original object before the object was dropped, resulting in an incorrect decrease in the reference count. This created a potential use-after-free condition in the From<Py<T>> implementation (PyO3 PR). The vulnerability has been assigned a CVSS v3.1 base 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 (NVD).

Impact

The vulnerability could lead to use-after-free conditions, potentially causing application crashes or memory corruption. The issue affects the stability and security of applications using the affected versions of the pyo3 crate (NVD).

Exploitability

The vulnerability requires local access and low privileges to exploit. It affects applications using pyo3 crate versions prior to 0.12.4 (NVD).

Mitigation and workarounds

Users should upgrade to pyo3 version 0.12.4 or later, which contains the fix for this vulnerability. The fix was implemented by correcting the reference counting behavior in the From<Py<T>> implementation (PyO3 PR).

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-46369HIGH7.5
  • Rust logoRust
  • nimiq-blockchain
NoYesAug 12, 2026
CVE-2026-73430MEDIUM5.3
  • Rust logoRust
  • russh
NoYesAug 12, 2026
CVE-2026-73429MEDIUM5.3
  • Rust logoRust
  • yazi
NoYesAug 12, 2026
CVE-2026-73489MEDIUM4.3
  • Rust logoRust
  • russh
NoYesAug 13, 2026
RUSTSEC-2026-0256NONEN/A
  • Rust logoRust
  • circular-buffer
NoYesAug 11, 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