Advisory

GHSA-9fjq-45qv-pcm7

Also known as: RUSTSEC-2025-0137

Summary

ruint affected by 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

Medium Basis: The source's own band: MODERATE

Dates

Published
2025-12-26 18:55 UTC
Modified
2025-12-27 05:41 UTC

Affected packages and fixes

ruint

crates.io · All systems

Affected

  • introduced 0, last affected 1.17.0 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

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: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences