Advisory

RUSTSEC-2025-0164

Also known as: None

Summary

DTriangle accessors may read out of bounds in affected versions

Details

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.

Severity

Not rated by the source.

Dates

Published
2025-04-24 12:00 UTC
Modified
2026-06-23 11:30 UTC

Affected packages and fixes

i_triangle

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.29.0 (semver)

Fixed versions

0.29.0

Fix

  • Fixed version 0.29.0
    cargo update -p i_triangle --precise 0.29.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: RustSec Advisory Database · CC0-1.0

Sources & licences