Skip to content
OpenAdvisories
Medium GHSA-9fjq-45qv-pcm7 RUSTSEC-2025-0137

ruint affected by unsoundness of safe `reciprocal_mg10`

Published Dec 26, 2025 · Updated Dec 27, 2025 · Assigned by GHSA

Description

The function `reciprocal_mg10` is marked as safe but can trigger undefined behavior (out-of-bounds access) because it relies on `debug_assert!` for safety checks instead of `assert!`.

When compiled in release mode, the `debug_assert!` is optimized out, potentially allowing invalid inputs to cause memory corruption.

Affected packages

EcosystemPackageAffectedFixedRecord
crates.io ruint <= 1.17.0 — GHSA-9fjq-45qv-pcm7
crates.io ruint >= 0.0.0-0, < 1.17.1 1.17.1 RUSTSEC-2025-0137

References