Advisory

RUSTSEC-2020-0074

Also known as: CVE-2020-35917, GHSA-2vx6-fcw6-hpr6

Summary

Reference counting error in From<Py<T>>

Details

A bug in From<Py<T>> would lead to an extra reference count decrement, often
leading to use-after-free issues.

Severity

Medium Basis: CVSS v3 score 5.5, vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Dates

Published
2020-11-28 12:00 UTC
Modified
2023-11-08 04:03 UTC

Affected packages and fixes

pyo3

crates.io · All systems

Affected

  • introduced 0.12.0, fixed 0.12.4 (semver)

Fixed versions

0.12.4

Fix

  • Fixed version 0.12.4
    cargo update -p pyo3 --precise 0.12.4

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: RustSec Advisory Database · CC0-1.0

Sources & licences