{"id":"GHSA-9fjq-45qv-pcm7","aliases":["GHSA-9fjq-45qv-pcm7","RUSTSEC-2025-0137"],"related":[],"kind":"vulnerability","state":"published","title":"ruint affected by unsoundness of safe `reciprocal_mg10`","summary":"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!`.\n\nWhen compiled in release mode, the `debug_assert!` is optimized out, potentially allowing invalid inputs to cause memory corruption.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"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!`.\n\nWhen compiled in release mode, the `debug_assert!` is optimized out, potentially allowing invalid inputs to cause memory corruption.","format":"markdown","source":"ghsa"}],"published":"2025-12-22T12:00:00.000Z","modified":"2025-12-28T09:55:04.497Z","severity":{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"MEDIUM"}],"cwes":["CWE-119"],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"1.17.0"}],"ecosystem":"crates.io","package":"ruint","purl":"pkg:cargo/ruint","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected","fixed":"1.17.1"}],"ecosystem":"crates.io","package":"ruint","purl":"pkg:cargo/ruint","source":"rustsec"}],"references":[{"url":"https://github.com/recmo/uint/issues/550","tags":["report","web"],"sources":["ghsa","rustsec"]},{"url":"https://github.com/recmo/uint","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/recmo/uint/blob/17c9b3e9062f74a39701e68dec358375595d33d7/src/algorithms/div/reciprocal.rs#L79-L87","tags":["web"],"sources":["ghsa"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2025-0137.html","tags":["advisory","web"],"sources":["ghsa","rustsec"]},{"url":"https://crates.io/crates/ruint","tags":["package"],"sources":["rustsec"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-9fjq-45qv-pcm7","url":"https://github.com/advisories/GHSA-9fjq-45qv-pcm7","licence":"CC-BY-4.0","modified":"2025-12-27T05:41:16.165Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2025-0137","url":"https://rustsec.org/advisories/RUSTSEC-2025-0137.html","licence":"CC0-1.0","modified":"2025-12-28T09:55:04.497Z"}],"updatedAt":"2026-11-25T22:56:43.286Z"}