RUSTSEC-2026-0593

Vulnerability from osv_rustsec – Published: 2026-11-21 12:00 – Updated: 2026-11-22 21:14 – Source website
VLAI
Summary
Dilithium verification accepts non-conforming signatures with the `avx2` feature
Details

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, 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.


{
  "affected": [
    {
      "database_specific": {
        "categories": [
          "crypto-failure"
        ],
        "cvss": null,
        "informational": null
      },
      "ecosystem_specific": {
        "affected_functions": null,
        "affects": {
          "arch": [
            "x86_64"
          ],
          "functions": [],
          "os": []
        }
      },
      "package": {
        "ecosystem": "crates.io",
        "name": "pqcrypto-dilithium",
        "purl": "pkg:cargo/pqcrypto-dilithium"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0.0.0-0"
            }
          ],
          "type": "SEMVER"
        }
      ],
      "versions": []
    }
  ],
  "aliases": [],
  "database_specific": {
    "license": "CC0-1.0"
  },
  "details": "With the default `avx2` feature on x86_64 and a CPU that supports AVX2,\n`pqcrypto-dilithium` verifies signatures with PQClean\u0027s AVX2 implementation of\nDilithium. That implementation predates two upstream fixes\n([pq-crystals/dilithium#113](https://github.com/pq-crystals/dilithium/issues/113),\n3 June 2026), the same ones described in RUSTSEC-2026-0586 for `pqcrypto-mldsa`:\n\n- the verifier does not check that the infinity norm of `z` is below\n  `\u03b31 \u2212 \u03b2`, so it accepts signatures that the crate\u0027s own portable\n  implementation rejects;\n- `use_hint_avx()` mishandles a boundary case, so one class of valid\n  signatures is rejected.\n\nCreating an accepted out-of-bound signature requires the private key. The\npractical effect is that verification results differ between this crate with\nAVX2 and the same crate without it.\n\nTested on version 0.5.0: for each of dilithium2, dilithium3 and dilithium5, 20\nsignatures with `z` out of bound are accepted with AVX2 and rejected by the\nportable code, and 2 valid signatures that exercise the `use_hint` boundary\nare rejected with AVX2 and accepted by the portable code. This crate\nimplements a pre-standard version of the scheme, so the Wycheproof ML-DSA\nvectors do not apply; the test signatures are built with the crate\u0027s own\nsigner.\n\nThe crate is unmaintained (see RUSTSEC-2024-0380) and no patched version is\nexpected. Disabling the `avx2` feature avoids the affected code.",
  "id": "RUSTSEC-2026-0593",
  "modified": "2026-11-22T21:14:42Z",
  "published": "2026-11-21T12:00:00Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://crates.io/crates/pqcrypto-dilithium"
    },
    {
      "type": "ADVISORY",
      "url": "https://rustsec.org/advisories/RUSTSEC-2026-0593.html"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/RatioLabsEU/pqc-field-notes/tree/main/advisories/2026-mldsa-avx2-verifier"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/pq-crystals/dilithium/issues/113"
    },
    {
      "type": "ADVISORY",
      "url": "https://rustsec.org/advisories/RUSTSEC-2026-0586.html"
    }
  ],
  "related": [],
  "severity": [],
  "summary": "Dilithium verification accepts non-conforming signatures with the `avx2` feature"
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…