Advisory

RUSTSEC-2025-0137

Also known as: GHSA-9fjq-45qv-pcm7

Summary

Unsoundness of safe reciprocal_mg10

Details

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.

Severity

Not rated by the source.

Dates

Published
2025-12-22 12:00 UTC
Modified
2025-12-28 09:55 UTC

Affected packages and fixes

ruint

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 1.17.1 (semver)

Fixed versions

1.17.1

Fix

  • Fixed version 1.17.1
    cargo update -p ruint --precise 1.17.1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: RustSec Advisory Database · CC0-1.0

Sources & licences