GitHub Advisoryadvisory · crates.io
GHSA-5x2r-hc65-25f9 ML-DSA Signature Verification Accepts Signatures with Repeated Hint Indices
MEDIUM
Official page ↗
- Aliases
- CVE-2026-24850
- Ecosystem
- crates.io
- Packages
- ml-dsa
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
- Weaknesses
- CWE-347
- Reviewed
- 2026-01-28
Affected packages
• crates.io ml-dsa: >= 0.0.4, < 0.1.0-rc.4 → fixed in 0.1.0-rc.4
Description
Affected Crate: `ml-dsa`
Affected Versions: v0.1.0-rc.2 (and commits since `b01c3b7`)
Severity: Medium
Reporter: Oren Yomtov (Fireblocks)
Summary
The ML-DSA signature verification implementation in the RustCrypto `ml-dsa` crate incorrectly accepts signatures with repeated (duplicate) hint indices. According to the ML-DSA specification (FIPS 204 / RFC 9881), hint indices within each polynomial must be strictly increasing. The current implementation uses a non-strict monotonic check (` bool {
a.iter().enumerate().all(|(i, x)| i == 0 || a[i - 1] bool {
a.iter().enumerate().all(|(i, x)| i == 0 || a[i - 1] bool {
a.iter().enumerate().all(|(i, x)| i == 0 || a[i - 1] < *x)
}
```
Design Intent: ML-DSA is NOT Intended to Allow Malleability
While some cryptographic libraries intentionally permit signature malleability for compatibility or performance reasons, ML-DSA is explicitly designed to prevent it:
1. FIPS 204 Specification: ML-DSA is designed to be strongly unforgeable under chosen message attacks (SUF-CMA). This security property explicitly prevents signature malleability.
2. NIST PQC Forum Discussion: In February 2024, there was a discussion on the NIST PQC forum about potential malleability in ML-DSA's hint unpacking. The consensus was that ML-DSA is intended to be SUF-CMA, meaning any malleability issues should be considered bugs and fixed.
3. No Documentation of Intentional Malleability: There is no documentation in the RustCrypto `ml-dsa` crate, FIPS 204, or RFC 9881 suggesting that signature malleability is an acceptable or intentional property.
4. Regression Bug: The fact that the original implementation had strict ordering (`<`) and this was changed to non-strict (`<=`) in a "fix" commit suggests this was an unintentional regression, not a design decision.
Related
Alias · CVE (1)
- CVE-2026-24850 The ML-DSA crate is a Rust implementation of the Module-Lattice-Based Digital Signature Standard (ML-DSA). vulnerability
Weakness · CWE (1)
- CWE-347 Improper Verification of Cryptographic Signature weakness
References
- https://github.com/RustCrypto/signatures/security/advisories/GHSA-5x2r-hc65-25f9 web
- https://nvd.nist.gov/vuln/detail/CVE-2026-24850 advisory
- https://github.com/RustCrypto/signatures/issues/894 web
- https://github.com/RustCrypto/signatures/pull/895 web
- https://github.com/RustCrypto/signatures/commit/400961412be2e2ab787942cf30e0a9b66b37a54a web
- https://github.com/RustCrypto/signatures/commit/b01c3b73dd08d0094e089aa234f78b6089ec1f38 web
- https://csrc.nist.gov/pubs/fips/204/final web
- https://datatracker.ietf.org/doc/html/rfc9881 web
- https://github.com/C2SP/wycheproof web
- https://github.com/C2SP/wycheproof/blob/master/testvectors_v1/mldsa_44_verify_test.json web
- https://github.com/C2SP/wycheproof/blob/master/testvectors_v1/mldsa_65_verify_test.json web
- https://github.com/C2SP/wycheproof/blob/master/testvectors_v1/mldsa_87_verify_test.json web
- https://github.com/RustCrypto/signatures package