crates.io (Rust)Worst: High8 advisories
pyo3: known vulnerabilities
pyo3 has 8 reviewed security advisories in the GitHub Advisory Database — 2 high, 5 moderate, 1 low. The most recent was published 2026-06-12. Each one below lists the affected version range, the release that fixes it, its CVE and severity. SkyShield matches these against the pyo3 versions running across your servers, containers and images, and ranks what to patch first.
How to fix pyo3
Upgrade pyo3 to a release at or above the fixed version shown for each advisory below. For crates.io (Rust):
cargo update -p pyo3 --precise 0.29.0 (cargo audit)
SkyShield checks the installed version on every machine and container, so you can see which hosts are still on an affected release after you roll the fix out.
Advisories (8)
PyO3 has an Out-of-bounds Read in `nth` / `nth_back` for `PyList` and `PyTuple` iterators
High CWE-125
— Affected: before 0.29.0. Fixed in 0.29.0. Published 2026-06-12. GHSA-36hh-v3qg-5jq4
PyO3 has a missing `Sync` bound on `PyCFunction::new_closure` closures
Moderate CWE-362
— Affected: before 0.29.0. Fixed in 0.29.0. Published 2026-06-12. GHSA-chgr-c6px-7xpp
PyO3 has type confusion when accessing data from sublasses of subclasses of native types with `abi3` feature
High CWE-843
— Affected: from 0.28.0 up to 0.28.2. Fixed in 0.28.2. Published 2026-02-19. GHSA-47qc-857f-7w7f
PyO3 Risk of buffer overflow in `PyString::from_object`
Low CWE-125
— Affected: from 0.1.0 up to 0.24.1. Fixed in 0.24.1. Published 2025-04-02. GHSA-pph8-gcv7-4qj5
Build corruption when using `PYO3_CONFIG_FILE` environment variable
Moderate
— Affected: from 0.23.0 up to 0.23.3. Fixed in 0.23.3. Published 2024-12-05. GHSA-vxcf-c7mx-pg53
PyO3 has a risk of use-after-free in `borrowed` reads from Python weak references
Moderate 5.3 CWE-416
— Affected: from 0.22.0 up to 0.22.4. Fixed in 0.22.4. Published 2024-10-15. GHSA-6jgw-rgmm-7cv6 · CVE-2024-9979
Duplicate Advisory: PyO3 has a risk of use-after-free in `borrowed` reads from Python weak references
Moderate CWE-416
— Affected: from 0.22.0 up to 0.22.4. Fixed in 0.22.4. Published 2024-10-15. GHSA-f8x4-f32r-w556
Reference counting error in pyo3
Moderate 5.5 CWE-416
— Affected: from 0.12.0 up to 0.12.4. Fixed in 0.12.4. Published 2021-08-25. GHSA-2vx6-fcw6-hpr6 · CVE-2020-35917
Find pyo3 across your fleet
Install one agent per server and connect your cloud. SkyShield matches your packages and images against GHSA,
CISA KEV and EPSS and shows the fix per machine. Free for one server, then from $49 per server a month.
Start free.