Duplicate Advisory: PyO3 has a risk of use-after-free in `borrowed` reads from Python weak references

Severity: medium · CVSS 4 · Published 2024-10-15

Duplicate Advisory: PyO3 has a risk of use-after-free in `borrowed` reads from Python weak references

Technologies: pyo3 (crates.io). Vendors: crates.io.

Quick answers

Is This vulnerability exploited in the wild?
No. Junglewise Threat Intelligence has no report of This vulnerability being exploited in the wild.
How severe is This vulnerability?
Medium severity, with a CVSS score of 4, published 15 October 2024.
Which products and versions are affected?
pyo3 (crates.io) SEMVER:introduced=0.22.0,fixed=0.22.4.
Is there a fix for This vulnerability?
Yes. pyo3 (crates.io): upgrade to 0.22.4 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected?
Check whether you run pyo3 (crates.io) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • pyo3 (crates.io): upgrade to 0.22.4 or later
    cargo update -p pyo3

Affected products

  • pyo3 (crates.io) SEMVER:introduced=0.22.0,fixed=0.22.4

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.