SEVERITY NOT PROVIDED

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

How to check your project

Automated analysis of the published advisory data, generated 2026-11-20. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
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
With the default `avx2` feature on x86_64 (non-Windows) and a CPU that supports AVX2, `pqcrypto-mldsa` verifies signatures with PQClean's AVX2 implementation of ML-DSA. That implementation predates two upstream fixes ([pq-crystals/dilithium#113](https://github.com/pq-crystals/dilithium/issues/113), 3 June 2026): - the verifier does not check that the infinity norm of `z` is below `γ1 − β` (FIPS 204, Algorithm 8, line 13), so it accepts signatures that conforming verifiers reject; - `use_hint_avx()` mishandles a boundary case, so one class of valid signatures is rejected. Creating an accepted out-of-bound signature requires the private key. The practical effect is that verification results differ between this crate with AVX2 and conforming implementations, including this crate without AVX2. The Wycheproof ML-DSA verification vectors reproduce both defects: with AVX2, 37 / 41 / 49 invalid vectors (ML-DSA-44 / -65 / -87) are accepted and one valid vector per parameter set is rejected. The crate is unmaintained (see RUSTSEC-2026-0166) and no patched version is expected. Disabling the `avx2` feature avoids the affected code. Migrating to a maintained implementation, such as the [`ml-dsa`](https://crates.io/crates/ml-dsa) crate, is recommended.

References

Source records: RUSTSEC-2026-0586 (OSV.dev).