GHSA-9fjq-45qv-pcm7
medium
ruint affected by unsoundness of safe `reciprocal_mg10`
- Severity
- medium CVSS:4.0 by GitHub
- Published
- Last changed
- Also known as
- RUSTSEC-2025-0137
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| ruint (crates.io) | up to 1.17.0, from 0.0.0-0 before 1.17.1 | GitHub Advisory Database, RustSec Advisory Database |
Classification
References
Sources
| Source | Record | Licence |
|---|---|---|
| GitHub Advisory Database | GHSA-9fjq-45qv-pcm7 changed 2025-12-27 | CC-BY-4.0 |
| RustSec Advisory Database | RUSTSEC-2025-0137 changed 2025-12-28 | CC0-1.0 |