GHSA-9fjq-45qv-pcm7 ruint affected by unsoundness of safe `reciprocal_mg10`
MediumCVSS 6.6
- Published
- Updated
- Exploit status
- No public exploit known
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.
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| crates.io ruint(crates.io) | <= 1.17.0; >= 0.0.0-0, < 1.17.1 | 1.17.1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| crates.io ruint(crates.io) | <= 1.17.0 | No fix listed |
| crates.io ruint(crates.io) | >= 0.0.0-0, < 1.17.1 | 1.17.1 |
References
- github.com issue-tracking
- github.com product
- github.com
- rustsec.org vendor-advisory
- crates.io product
- github.com