RUSTSEC-2026-0586: ML-DSA verification accepts non-conforming signatures with the `avx2` feature
Published 2026-11-20 · Updated 2026-11-20
Summary
The pqcrypto-mldsa crate incorrectly verifies ML-DSA signatures when using the AVX2 feature, accepting non-conforming signatures and rejecting some valid ones. Engineering and security teams using this crate on x86_64 systems should disable the AVX2 feature or migrate to a maintained alternative.
Who is affected
Deployments using the pqcrypto-mldsa crate with the default avx2 feature enabled on supported x86_64 non-Windows CPUs will experience verification discrepancies compared to conforming implementations. Specifically, it accepts invalid signatures and incorrectly rejects certain valid signatures due to upstream defects in PQClean's AVX2 implementation.
Exploitability
The CVSS vector, base score, and EPSS are not documented, and CISA KEV active exploitation is no. Creating an accepted out-of-bound signature requires access to the private key.
Remediation
- Disable the avx2 feature in the pqcrypto-mldsa crate configuration.
- Migrate to a maintained implementation, such as the ml-dsa crate.
How to check your project
- Check Cargo.toml for dependencies on the pqcrypto-mldsa crate.
- Inspect build configurations to determine if the avx2 feature is enabled for pqcrypto-mldsa on x86_64 targets.
Automated analysis of the published advisory data, generated 2026-11-20. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| crates.io | pqcrypto-mldsa |
>= 0.0.0-0 (no fix published) | not published | - |
FAQ
Is there a patched version of pqcrypto-mldsa available?
No, the crate is unmaintained and no patched version is expected.
Can an attacker forge a signature without the private key?
No, creating an accepted out-of-bound signature requires the private key.
How can I avoid the affected code without migrating crates?
Disabling the avx2 feature avoids the affected code.
Original advisory description
References
- PACKAGE https://crates.io/crates/pqcrypto-mldsa
- ADVISORY https://rustsec.org/advisories/RUSTSEC-2026-0586.html
- ADVISORY https://github.com/RatioLabsEU/pqc-field-notes/tree/main/advisories/2026-mldsa-avx2-verifier
- REPORT https://github.com/pq-crystals/dilithium/issues/113
Source records: RUSTSEC-2026-0586 (OSV.dev).