RUSTSEC-2025-0165 i_tree allowed out-of-bounds access through safe public node accessors
- Published
- Updated
- Exploit status
- No public exploit known
Description
Affected versions of i_tree exposed safe public Tree::node and Tree::mut_node methods in the public tree module. These methods accepted an arbitrary u32 index and passed it directly to Vec::get_unchecked / get_unchecked_mut on the internal node buffer, without validating that the index was in bounds.
Because these methods were safe and public, a caller could pass an out-of-bounds index without writing any unsafe code, producing an out-of-bounds shared or mutable reference and triggering undefined behavior.
Starting with 0.10.0 the crate was restructured and these accessors are no longer reachable from outside the crate.
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| crates.io i_tree(crates.io) | >= 0.0.0-0, < 0.10.0 | 0.10.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| crates.io i_tree(crates.io) | >= 0.0.0-0, < 0.10.0 | 0.10.0 |
References
- crates.io product
- rustsec.org vendor-advisory
- github.com issue-tracking
- github.com
- github.com