IntelligenceFindingsNMN-2026-0137
ML-DSA Signature Verification Accepts Signatures with Repeated Hint Indices
CandidateMachine- or researcher-generated; not independently verified.
In short
What to know.
- Package
- ml-dsa crates.ioml-dsa: from 0.0.4 before 0.1.0-rc.4
- What to do
- Upgrade ml-dsa to 0.1.0-rc.4 or later.
- Severity
- ModerateRated by the source advisory.
- Confidence
- HighThe affected range comes from the advisory; no system that uses the component has been assessed.
Verification
Where it stands.
- Candidate
- In review
- Reproduced
- Confirmed
- Resolved
- Disputed
- Withdrawn
14 listed
Sources
- OSV record GHSA-5x2r-hc65-25f9osv.devRetrieved 3 December 2026
- web reference for GHSA-5x2r-hc65-25f9github.comRetrieved 3 December 2026
- advisory reference for GHSA-5x2r-hc65-25f9nvd.nist.govRetrieved 3 December 2026
- web reference for GHSA-5x2r-hc65-25f9github.comRetrieved 3 December 2026
- web reference for GHSA-5x2r-hc65-25f9github.comRetrieved 3 December 2026
- web reference for GHSA-5x2r-hc65-25f9github.comRetrieved 3 December 2026
- web reference for GHSA-5x2r-hc65-25f9github.comRetrieved 3 December 2026
- web reference for GHSA-5x2r-hc65-25f9csrc.nist.govRetrieved 3 December 2026
- web reference for GHSA-5x2r-hc65-25f9datatracker.ietf.orgRetrieved 3 December 2026
- web reference for GHSA-5x2r-hc65-25f9github.comRetrieved 3 December 2026
- web reference for GHSA-5x2r-hc65-25f9github.comRetrieved 3 December 2026
- web reference for GHSA-5x2r-hc65-25f9github.comRetrieved 3 December 2026
- web reference for GHSA-5x2r-hc65-25f9github.comRetrieved 3 December 2026
- package reference for GHSA-5x2r-hc65-25f9github.comRetrieved 3 December 2026
Full record
- Finding
- NMN-2026-0137
- Category
- vulnerability
- Component
- ml-dsa (crates.io)ml-dsa: from 0.0.4 before 0.1.0-rc.4
- Severity
- Moderate. Rated by the source advisory.Severity as labelled by the source advisory GHSA-5x2r-hc65-25f9. CVSS as given: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N. Noumen has not assessed it.
- Confidence
- High.The affected range comes from the advisory; no system that uses the component has been assessed.
- State
- Candidate. Machine- or researcher-generated; not independently verified.
- Disclosure
- Public
- Mitigation
- Upgrade ml-dsa to 0.1.0-rc.4 or later.
- Discovery method
- imported from a public advisory by the Advisory Monitor (1.0.0)Machine-generated by the agent advisory-monitor@1.0.0.
- Reproduction
- No reproduction steps recorded.
- Related advisories
- GHSA-5x2r-hc65-25f9CVE-2026-24850
- Affected systems
- None listed. A link to a system needs its own evidence.
- Attribution
- Researcher: advisory-monitor@1.0.0 (agent, machine-generated)Validators: None yet
- Assigned reviewer
- Nobody yet
- Dates
- Created 3 December 2026, 16:51 UTCUpdated 3 December 2026, 16:51 UTC
Summary, as published by the source advisory
**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 (`<=` instead of `<`), allowing duplicate indices.
**Note:** This is a regression bug. The original implementation was correct, but commit `b01c3b7` ("Make ML-DSA signature decoding follow the spec (#895)", fixing issue #894) inadvertently changed the strict `<` comparison to `<=`, introducing the vulnerability.
## Vulnerability Details
### Root Cause
The vulnerability is located in the `monotonic` helper function in `ml-dsa/src/hint.rs`:
```rust
fn monotonic(a: &[usize]) -> bool {
a.iter().enumerate().all(|(i, x)| i == 0 || a[i - 1] <= *x)
}
```
The comparison operator `<=` allows equal consecutive values, meaning duplicate hint indices are not rejected. The correct implementation should use strict less-than (`<`):
```rust
fn monotonic(a: &[usize]) -> bool {
a.iter().enumerate().all(|(i, x)| i == 0 || a[i - 1] < *x)
}
```
### Regression Analysis
- **Original correct code** (commit `1d3a1d1` - "Add support for ML-DSA (#877)"): Used `<` (strict)
- **Bug introduced** (commit `b01c3b7` - "Make ML-DSA signature decoding follow the spec (#895)"): Changed to `<=`
The commit message suggests it was intended to fix issue #894 and make decoding follow the spec, but the change to the `monotonic` function was in the wrong direction. The other changes in that commit (to `use_hint` function) may have been correct, but this specific change introduced signature malleability.
### Technical Impact
This vulnerability allows **signature malleability** - the same logical signature can have multiple valid byte-level encodings. An attacker can take a valid signature and create additional "valid" signatures by duplicating hint indices.
Per the ML-DSA specification (FIPS 204, Section 6.2 and Algorithm 26 `HintBitUnpack`), hint indices must be strictly increasing to ensure a unique, canonical encoding. Accepting non-canonical signatures can lead to:
1. **Signature Malleability:** Multiple distinct byte sequences verify as valid for the same message/key pair
2. **Protocol-Level Vulnerabilities:** Systems that rely on signature uniqueness (e.g., for transaction deduplication, replay protection, or signature-based identifiers) may be vulnerable
3. **Interoperability Issues:** Non-compliant signatures may be rejected by other conforming implementations
### Affected Security Levels
All ML-DSA parameter sets are affected:
- ML-DSA-44 (NIST Security Level 2)
- ML-DSA-65 (NIST Security Level 3)
- ML-DSA-87 (NIST Security Level 5)
## Proof of Concept
See the file [`poc_mldsa_repeated_hint.rs`](https://gist.github.com/orenyomtov/fb4616eb77d33017f41a71b30aa41a04) for a standalone proof of concept that demonstrates the vulnerability.
The PoC uses test vectors from the Wycheproof test suite that specifically test for this invalid encoding:
- **Test Vector Source:** [Wycheproof ML-DSA Test Vectors](https://github.com/C2SP/wycheproof/blob/master/testvectors_v1/mldsa_44_verify_test.json)
- Test Case ID 18: "signature with a repeated hint"
- Expected Result: `invalid`
- Actual Result: `valid` (BUG)
## Remediation
Update the `monotonic` function in `ml-dsa/src/hint.rs` to use strict less-than comparison:
```rust
fn monotonic(a: &[usize]) -> 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
1 event, oldest first
History
History verified: 1 eventLatest hashd0e42f1c8aa5d0e42f1c8aa52ff1fb8ebc7cf5b02e2783d9a3957738f0be0ab3f51af2f45b74
Record createdMachine-generated
By advisory-monitor@1.0.0 (agent, machine-generated)
Reason: Imported from public advisory GHSA-5x2r-hc65-25f9.
Entered the record in the state Candidate.
Event 1 hashd0e42f1c8aa5d0e42f1c8aa52ff1fb8ebc7cf5b02e2783d9a3957738f0be0ab3f51af2f45b74
About this record
Severity and confidence are rated separately, each with its own reason.
History events are never edited or deleted. Each stores the hash of the one before, so a later change breaks the chain.
Corrections keep the value before and after.