Install
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
Source · Homepage · Ask AI Mode · · Markdown
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
- Rust FFI (PyO3) Acceleration for High-Throughput Python Data Pipelines dev.to, 25 Nov 2026
- Building an Offline-First Local AI Coding Studio with Rust (PyO3), FastAPI, and Tauri 2.0) dev.to, 22 Nov 2026
- Gemma 4 in Rust on TorchTPU: A Native TPU Rig With PyO3 and MCP dev.to, 2 Nov 2026
- Bridging Python and Rust: Building Type-Safe Data Quality Pipelines with PyO3 and JSON Schema 2020-12 #rust #python #pyo3 #jsonschema dev.to, 31 Oct 2026
- I built a Python ORM with a Rust engine — here's how the GIL, PyO3, and asyncio actually cooperate dev.to, 29 Jun 2026
On Hacker News
- PyO3: Rust Bindings for the Python Interpreter 305 points, 77 comments, 29 Jan 2021
- Tauri binding for Python through Pyo3 168 points, 56 comments, 8 Oct 2025
- Calling Rust from Python using PyO3 144 points, 49 comments, 28 Nov 2021
- PyO3: Python Rust binding 138 points, 15 comments, 26 Jul 2017
Sources: crates.io, deps.dev (CC BY 4.0), OSV. Last checked 4 Dec 2026.