RUSTSEC-2025-0137
MEDIUMruint affected by 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.
- Published
- 22 Dec 2025
- Last modified
- 28 Dec 2025
- Weakness
- CWE-119
- Also known as
- GHSA-9fjq-45qv-pcm7
- Sources
- OSV GHSA-9fjq-45qv-pcm7JSONOSVJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | crates.io | ruint | <= 1.17.0 | |
| OSV | crates.io | ruint | >= 0.0.0-0, < 1.17.1 | 1.17.1 |
References
- https://github.com/recmo/uint/issues/550 · WEB, REPORT
- https://github.com/recmo/uint · PACKAGE
- https://github.com/recmo/uint/blob/17c9b3e9062f74a39701e68dec358375595d33d7/src/algorithms/div/reciprocal.rs#L79-L87 · WEB
- https://rustsec.org/advisories/RUSTSEC-2025-0137.html · WEB, ADVISORY
- https://crates.io/crates/ruint · PACKAGE
History
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 22 Dec 2025)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 26 Dec 2025)