{"id":"RUSTSEC-2025-0165","aliases":["RUSTSEC-2025-0165"],"related":[],"kind":"vulnerability","state":"published","title":"i_tree allowed out-of-bounds access through safe public node accessors","summary":"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.\n\nBecause 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.\n\nStarting with `0.10.0` the crate was restructured and these accessors are no longer reachable from outside the crate.","summaryFormat":"markdown","summarySource":"rustsec","descriptions":[{"lang":"en","text":"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.\n\nBecause 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.\n\nStarting with `0.10.0` the crate was restructured and these accessors are no longer reachable from outside the crate.","format":"markdown","source":"rustsec"}],"published":"2025-07-04T12:00:00.000Z","modified":"2026-06-29T15:15:03.953Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected","fixed":"0.10.0"}],"ecosystem":"crates.io","package":"i_tree","purl":"pkg:cargo/i_tree","source":"rustsec"}],"references":[{"url":"https://crates.io/crates/i_tree","tags":["package"],"sources":["rustsec"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2025-0165.html","tags":["advisory"],"sources":["rustsec"]},{"url":"https://github.com/iShape-Rust/iTree/issues/1","tags":["report"],"sources":["rustsec"]},{"url":"https://github.com/iShape-Rust/iTree/commit/a948b891cf159233bfed5b16bf185268fd9e1985","tags":["web"],"sources":["rustsec"]},{"url":"https://github.com/iShape-Rust/iTree/compare/0.9.0...0.10.0","tags":["web"],"sources":["rustsec"]}],"credits":[],"sources":[{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2025-0165","url":"https://rustsec.org/advisories/RUSTSEC-2025-0165.html","licence":"CC0-1.0","modified":"2026-06-29T15:15:03.953Z"}],"updatedAt":"2026-11-25T22:56:43.295Z"}