Files
advisory-db/crates/ruint/RUSTSEC-2025-0137.md
2025-12-27 03:04:54 +00:00

710 B

[advisory]
id = "RUSTSEC-2025-0137"
package = "ruint"
date = "2025-12-22"
url = "https://github.com/recmo/uint/issues/550"
categories = ["memory-corruption"]
keywords = ["soundness", "out-of-bounds"]
aliases = ["GHSA-9fjq-45qv-pcm7"]

[affected.functions]
"ruint::algorithms::div::reciprocal_mg10" = ["< 1.17.0"]

[versions]
patched = []

Unsoundness of safe reciprocal_mg10

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.