SEVERITY NOT PROVIDED

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

How to check your project

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

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
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
With the default `avx2` feature on x86_64 and a CPU that supports AVX2, `pqcrypto-dilithium` verifies signatures with PQClean's AVX2 implementation of Dilithium. That implementation predates two upstream fixes ([pq-crystals/dilithium#113](https://github.com/pq-crystals/dilithium/issues/113), 3 June 2026), the same ones described in RUSTSEC-2026-0586 for `pqcrypto-mldsa`: - the verifier does not check that the infinity norm of `z` is below `γ1 − β`, so it accepts signatures that the crate's own portable implementation rejects; - `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 the same crate without it. Tested on version 0.5.0: for each of dilithium2, dilithium3 and dilithium5, 20 signatures with `z` out of bound are accepted with AVX2 and rejected by the portable code, and 2 valid signatures that exercise the `use_hint` boundary are rejected with AVX2 and accepted by the portable code. This crate implements a pre-standard version of the scheme, so the Wycheproof ML-DSA vectors do not apply; the test signatures are built with the crate's own signer. The crate is unmaintained (see RUSTSEC-2024-0380) and no patched version is expected. Disabling the `avx2` feature avoids the affected code.

References

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