# RUSTSEC-2025-0164: `DTriangle` accessors may read out of bounds in affected versions

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2025-04-24T12:00:00.000Z
- Modified: 2026-06-23T11:30:04.212Z

## Description

In affected versions, `DTriangle::neighbor_by_order` and `DTriangle::vertex_by_order` were public safe functions that accepted an
arbitrary `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`.

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

(As written by RustSec Advisory Database.)

## Affected

- i_triangle (crates.io): from 0.0.0-0 before 0.29.0

## References

- <https://crates.io/crates/i_triangle> (package)
- <https://rustsec.org/advisories/RUSTSEC-2025-0164.html> (advisory)
- <https://github.com/iShape-Rust/iTriangle/issues/4> (report)
- <https://github.com/iShape-Rust/iTriangle/commit/13e0e9f4d5333e3a815191e5f6f402641997f91b> (web)

## Sources

- RustSec Advisory Database: [RUSTSEC-2025-0164](https://rustsec.org/advisories/RUSTSEC-2025-0164.html), CC0-1.0, modified 2026-06-23

---

Page: https://cve.day/RUSTSEC-2025-0164 · Whole record: https://cve.day/RUSTSEC-2025-0164.json · Rebuilt by cve.day 2026-11-25T22:56:43.295Z
