Use After Free Affecting pyo3 package, versions >=0.12.0 <0.12.4


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.04% (15th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RUST-PYO3-1300161
  • published4 Jun 2021
  • disclosed28 Nov 2020
  • creditUnknown

Introduced: 28 Nov 2020

CVE-2020-35917  (opens in a new tab)
CWE-416  (opens in a new tab)

How to fix?

Upgrade pyo3 to version 0.12.4 or higher.

Overview

pyo3 is a package that provides Rust bindings for Python. This includes running and interacting with Python code from a Rust binary, as well as writing native Python modules.

Affected versions of this package are vulnerable to Use After Free. A bug in From<Py<T>> would lead to an extra reference count decrement, often leading to use-after-free issues.

CVSS Scores

version 3.1