RUSTSEC-2026-0593: Dilithium verification accepts non-conforming signatures with the `avx2` feature
Published 2026-11-21 · Updated 2026-11-22
Summary
The pqcrypto-dilithium crate accepts non-conforming signatures and rejects certain valid signatures when using the AVX2 implementation. Engineering teams using this unmaintained crate on x86_64 systems should disable the avx2 feature.
Who is affected
When using the default avx2 feature on x86_64 CPUs supporting AVX2, signature verification results differ between the AVX2 and portable implementations. Specifically, the verifier fails to check that the infinity norm of z is below the required threshold (accepting invalid signatures) and mishandles a boundary case in use_hint_avx (rejecting valid signatures). Creating an accepted out-of-bound signature requires the private key.
Exploitability
CVSS vector, base score, and EPSS are not documented. CISA Known Exploited Vulnerabilities is no, so active exploitation is not claimed.
Remediation
- Disable the avx2 feature to avoid the affected code.
- Note that no patched version is expected because the crate is unmaintained.
How to check your project
- Check Cargo.toml for dependencies on the pqcrypto-dilithium crate.
- Check whether the avx2 feature is enabled for pqcrypto-dilithium on x86_64 targets.
Automated analysis of the published advisory data, generated 2026-11-22. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| crates.io | pqcrypto-dilithium |
>= 0.0.0-0 (no fix published) | not published | - |
FAQ
Which packages are affected?
The crates.io package pqcrypto-dilithium (introduced at version 0.0.0-0).
Is there a patched version available?
No patched version is expected as the crate is unmaintained.
How can I avoid the affected code?
Disabling the avx2 feature avoids the affected code.
Original advisory description
References
- PACKAGE https://crates.io/crates/pqcrypto-dilithium
- ADVISORY https://rustsec.org/advisories/RUSTSEC-2026-0593.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
- ADVISORY https://rustsec.org/advisories/RUSTSEC-2026-0586.html
Source records: RUSTSEC-2026-0593 (OSV.dev).