# pyo3 (crates.io)

Bindings to Python interpreter

- Latest: 0.30.1 (2026-10-14)
- Licence: MIT OR Apache-2.0
- Downloads: 79978588 last 90 days
- Advisories on the latest version: 0

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

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