Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. ml-dsa
  4. ›
  5. GHSA-h37v-hp6w-2pp8

GHSA-h37v-hp6w-2pp8: ml-dsa's UseHint function has off by two error when r0 equals zero

February 2, 2026

There’s a bug in the use_hint function where it adds 1 instead of subtracting 1 when the decomposed low bits r0 equal exactly zero. FIPS 204 Algorithm 40 is pretty clear that r0 > 0 means strictly positive, but the current code treats zero as positive. This causes valid signatures to potentially fail verification when this edge case gets hit.

References

  • github.com/RustCrypto/signatures
  • github.com/RustCrypto/signatures/commit/10f4ff04cb43ef2b789ee06e885f11cd054b1335
  • github.com/RustCrypto/signatures/security/advisories/GHSA-h37v-hp6w-2pp8
  • github.com/advisories/GHSA-h37v-hp6w-2pp8

Code Behaviors & Features

Detect and mitigate GHSA-h37v-hp6w-2pp8 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 0.1.0-rc.5

Fixed versions

  • 0.1.0-rc.5

Solution

Upgrade to version 0.1.0-rc.5 or above.

Impact 5.3 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-193: Off-by-one Error
  • CWE-682: Incorrect Calculation

Source file

cargo/ml-dsa/GHSA-h37v-hp6w-2pp8.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 08 Nov 2026 00:16:32 +0000.