pyo3

Bindings to Python interpreter

0.30.1Latest, 14 Oct 2026
8MDownloads, last 90 days
0Advisories on the latest
14Advisories, all versions
MIT OR Apache-2.0Licence
16KStars
5.6/10OpenSSF Scorecard

Known advisories

Severity Advisory Fix Published
High PyO3 has an Out-of-bounds Read in `nth` / `nth_back` for `PyList` and `PyTuple` iterators GHSA-36hh-v3qg-5jq4 Fixed in 0.29.0 12 Jun 2026
Moderate PyO3 has a missing `Sync` bound on `PyCFunction::new_closure` closures GHSA-chgr-c6px-7xpp Fixed in 0.29.0 12 Jun 2026
Out-of-bounds read in `nth` / `nth_back` for `PyList` and `PyTuple` iterators RUSTSEC-2026-0176 Fixed in 0.29.0 11 Jun 2026
Missing `Sync` bound on `PyCFunction::new_closure` closures RUSTSEC-2026-0177 Fixed in 0.29.0 11 Jun 2026
High PyO3 has type confusion when accessing data from sublasses of subclasses of native types with `abi3` feature GHSA-47qc-857f-7w7f Fixed in 0.28.2 19 Feb 2026
Type confusion when accessing data from sublasses of subclasses of native types with `abi3` feature targeting Python 3.12 and up RUSTSEC-2026-0013 Fixed in 0.28.2 18 Feb 2026
Low PyO3 Risk of buffer overflow in `PyString::from_object` GHSA-pph8-gcv7-4qj5 Fixed in 0.24.1 2 Apr 2025
Risk of buffer overflow in `PyString::from_object` RUSTSEC-2025-0020 Fixed in 0.24.1 1 Apr 2025
Moderate Build corruption when using `PYO3_CONFIG_FILE` environment variable GHSA-vxcf-c7mx-pg53 Fixed in 0.23.3 5 Dec 2024
Build corruption when using `PYO3_CONFIG_FILE` environment variable RUSTSEC-2024-0409 Fixed in 0.23.3 4 Dec 2024
Moderate PyO3 has a risk of use-after-free in `borrowed` reads from Python weak references CVE-2024-9979 Fixed in 0.22.4 15 Oct 2024
Risk of use-after-free in `borrowed` reads from Python weak references CVE-2024-9979 Fixed in 0.22.4 12 Oct 2024
Moderate Reference counting error in pyo3 CVE-2020-35917 Fixed in 0.12.4 25 Aug 2021
Reference counting error in `From<Py<T>>` CVE-2020-35917 Fixed in 0.12.4 28 Nov 2020

In the news

On Hacker News

Sources: crates.io, deps.dev (CC BY 4.0), OSV. Last checked 4 Dec 2026.