Skip to main content

Boteraser | Website and Server Security Solutions

🛡️ RUSTSEC-2026-0176 — pyo3

⚪ Unknown ✅ No Known Exploit OSV
N/A
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

Out-of-bounds read in nth / nth_back for PyList and PyTuple iterators

PyO3 0.24.0 added optimized implementations of Iterator::nth and

DoubleEndedIterator::nth_back for the BoundListIterator and

BoundTupleIterator types. These implementations computed the target index

using unchecked usize addition (index + n) before bounds-checking against

the sequence length, then read the element via get_item_unchecked.

In nth methods, a sufficiently large n (combined with a non-zero internal

index) could cause the addition to overflow and wrap around, producing a small

"target index" that passed the bounds check and enabling reads at the front

of the list or tuple of elements previously yielded by the iterator.

In nth_back methods, a sufficiently large n could cause underflow in a

similar fashion, however would instead allow reads of arbitrary memory past

the end of the list or tuple storage.

PyO3 0.29.0 has corrected these methods to use checked arithmetic at the

positions which could be at risk of overflow.

Affected software

RUSTSEC-2026-0176 is recorded against 1 package.

  • pyo3

Timeline and source

Published on 11 June 2026 and last revised on 13 June 2026. No public exploit is currently recorded for this entry. Record sourced from OSV.

References

crates.io (Package)
rustsec.org (Advisory)
github.com (Web)

Other advisories for this package

pyo3 has other advisories on record. If you are patching this one, these are worth checking on the same host:

Details

Severity Unknown
CVSS Score N/A
CVSS Vector N/A
CWE N/A
Public Exploit ✅ No
Source OSV
Published 2026-06-11
Updated 2026-08-20
Modified 2026-06-13
Fix URL N/A

Affected Packages

Software From version Fixed in
pyo3 — —

Free Vulnerability Check

Is your site affected by RUSTSEC-2026-0176?

BotEraser helps you identify potentially vulnerable plugins and themes by checking your installation against RUSTSEC-2026-0176 and other known CVE records.

Scan My Site Free →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.

Browse related advisories

All advisoriesRustsecRustsec 2026
✓