RUSTSEC-2026-0593: Dilithium verification accepts non-conforming signatures with the `avx2` feature

Published Nov 21, 2026
·
Updated

With the default avx2 feature on x8664 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, 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; - usehintavx() 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 usehint 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.

Affected Software

1 affected component
rust/pqcrypto-dilithium>=0.0.0-0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    Disable the avx2 feature to avoid the affected AVX2 verification code.

    pqcrypto-dilithium avx2 feature = disabled

Event History

Nov 21, 2026
Advisory Published
via OSV·12:00 PM
Data Sourced
via OSV·12:00 PM
DescriptionAffected Software

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203