NetSight
medium6.6No CVE yet

GHSA-9fjq-45qv-pcm7

ruint affected by unsoundness of safe `reciprocal_mg10`

Impact

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.

An attacker can exploit this over the network, without logging in, without any action by a user. If it succeeds: high risk of outages.

Affected packages

EcosystemPackageAffectedFixed in
rustruint<= 1.17.0none recorded

Weakness classification

References