GHSA-9fjq-45qv-pcm7

Suggest an improvement
Source
https://github.com/advisories/GHSA-9fjq-45qv-pcm7
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/12/GHSA-9fjq-45qv-pcm7/GHSA-9fjq-45qv-pcm7.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-9fjq-45qv-pcm7
Aliases
Published
2025-12-26T18:55:53Z
Modified
2025-12-27T05:41:16.165671Z
Severity
  • 6.6 (Medium) CVSS_V4 - 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 CVSS Calculator
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.

Database specific
{
    "nvd_published_at": null,
    "cwe_ids": [
        "CWE-119"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2025-12-26T18:55:53Z"
}
References

Affected packages

crates.io / ruint

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Last affected
1.17.0