Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. ruint
  4. ›
  5. GHSA-9fjq-45qv-pcm7

GHSA-9fjq-45qv-pcm7: ruint affected by unsoundness of safe `reciprocal_mg10`

December 26, 2025

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.

References

  • github.com/advisories/GHSA-9fjq-45qv-pcm7
  • github.com/recmo/uint
  • github.com/recmo/uint/blob/17c9b3e9062f74a39701e68dec358375595d33d7/src/algorithms/div/reciprocal.rs
  • github.com/recmo/uint/issues/550
  • rustsec.org/advisories/RUSTSEC-2025-0137.html

Code Behaviors & Features

Detect and mitigate GHSA-9fjq-45qv-pcm7 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 1.17.0

Solution

Unfortunately, there is no solution available yet.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer

Source file

cargo/ruint/GHSA-9fjq-45qv-pcm7.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 04 Feb 2026 00:35:19 +0000.