نسخههای متأثر
بازهها نیاز به بررسی دارند.
شرح آسیبپذیری
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.
پیوندها
- https://crates.io/crates/ruint
- https://github.com/advisories/GHSA-9fjq-45qv-pcm7
- https://github.com/recmo/uint
- https://github.com/recmo/uint/blob/17c9b3e9062f74a39701e68dec358375595d33d7/src/algorithms/div/reciprocal.rs#L79-L87
- https://github.com/recmo/uint/issues/550
- https://rustsec.org/advisories/RUSTSEC-2025-0137.html

