{"id":"RUSTSEC-2025-0164","aliases":["RUSTSEC-2025-0164"],"related":[],"kind":"vulnerability","state":"published","title":"`DTriangle` accessors may read out of bounds in affected versions","summary":"In affected versions, `DTriangle::neighbor_by_order` and `DTriangle::vertex_by_order` were public safe functions that accepted an\narbitrary `order` value. These functions used `order` to access fixed-size internal arrays with `get_unchecked`, without checking whether `order` was within bounds. Calling these methods with an out-of-bounds `order` could cause an out-of-bounds read from safe Rust code. This made the old APIs unsound, since safe callers could trigger undefined behavior without using `unsafe`.\n\nThe issue was fixed in version `0.29.0` as part of a broader rewrite that replaced the old triangle implementation with `IntTriangle` and removed the affected accessor methods.","summaryFormat":"markdown","summarySource":"rustsec","descriptions":[{"lang":"en","text":"In affected versions, `DTriangle::neighbor_by_order` and `DTriangle::vertex_by_order` were public safe functions that accepted an\narbitrary `order` value. These functions used `order` to access fixed-size internal arrays with `get_unchecked`, without checking whether `order` was within bounds. Calling these methods with an out-of-bounds `order` could cause an out-of-bounds read from safe Rust code. This made the old APIs unsound, since safe callers could trigger undefined behavior without using `unsafe`.\n\nThe issue was fixed in version `0.29.0` as part of a broader rewrite that replaced the old triangle implementation with `IntTriangle` and removed the affected accessor methods.","format":"markdown","source":"rustsec"}],"published":"2025-04-24T12:00:00.000Z","modified":"2026-06-23T11:30:04.212Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected","fixed":"0.29.0"}],"ecosystem":"crates.io","package":"i_triangle","purl":"pkg:cargo/i_triangle","source":"rustsec"}],"references":[{"url":"https://crates.io/crates/i_triangle","tags":["package"],"sources":["rustsec"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2025-0164.html","tags":["advisory"],"sources":["rustsec"]},{"url":"https://github.com/iShape-Rust/iTriangle/issues/4","tags":["report"],"sources":["rustsec"]},{"url":"https://github.com/iShape-Rust/iTriangle/commit/13e0e9f4d5333e3a815191e5f6f402641997f91b","tags":["web"],"sources":["rustsec"]}],"credits":[],"sources":[{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2025-0164","url":"https://rustsec.org/advisories/RUSTSEC-2025-0164.html","licence":"CC0-1.0","modified":"2026-06-23T11:30:04.212Z"}],"updatedAt":"2026-11-25T22:56:43.295Z"}