# RUSTSEC-2025-0165: i\_tree allowed out-of-bounds access through safe public node accessors

- Database: RustSec
- Published: 2025-07-04
- Modified: 2026-06-29

## Affected versions

- i\_tree (crates.io): fixed in 0.10.0

## 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.

## References

- https://crates.io/crates/i_tree
- https://rustsec.org/advisories/RUSTSEC-2025-0165.html
- https://github.com/iShape-Rust/iTree/issues/1
- https://github.com/iShape-Rust/iTree/commit/a948b891cf159233bfed5b16bf185268fd9e1985
- https://github.com/iShape-Rust/iTree/compare/0.9.0...0.10.0

Page: https://cve.now/RUSTSEC-2025-0165

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
