RUSTSEC-2026-0133 Invalid pointer arithmetic in `iter()` and `iter_mut()`
Invalid pointer arithmetic in iter APIs causes undefined behavior, potentially leading to memory corruption or crashes in Rust applications.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Not stated
- Victim action needed
- Not needed
- Fix
- None listed
What is RUSTSEC-2026-0133?
RUSTSEC-2026-0133 is a memory corruption vulnerability in auto_vec, published on 2 May 2026.
Official description
The iter() and iter_mut() APIs compute
current = (&children[0] as *const *const RawAutoChild).sub(1), which
performs pointer subtraction going before the start of the allocation. This
is undefined behavior per Rust's pointer arithmetic rules.
This can be triggered through safe public APIs — iter() and iter_mut()
— with no unsafe required from the caller.
Which versions are affected by RUSTSEC-2026-0133?
1 open source package ship an affected version, including auto_vec.
| Package | Affected | Fixed in |
|---|---|---|
auto_vec crates.io | From 0.0.0-0 | None |
How do I fix RUSTSEC-2026-0133?
No fix has been published for RUSTSEC-2026-0133 yet. Limit exposure of the affected software until one is available.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is RUSTSEC-2026-0133 being exploited?
There is no known exploitation of RUSTSEC-2026-0133 in the wild and no public exploit code.