GHSA-9fjq-45qv-pcm7
JSON

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 packageVersionsReported by
ruint (crates.io)up to 1.17.0, from 0.0.0-0 before 1.17.1GitHub Advisory Database, RustSec Advisory Database

Classification

References

Sources

SourceRecordLicence
GitHub Advisory DatabaseGHSA-9fjq-45qv-pcm7 changed 2025-12-27CC-BY-4.0
RustSec Advisory DatabaseRUSTSEC-2025-0137 changed 2025-12-28CC0-1.0