RUSTSEC-2026-0586

Vulnerability from osv_rustsec – Published: 2026-11-20 12:00 – Updated: 2026-11-20 12:47 – Source website
VLAI
Summary
ML-DSA verification accepts non-conforming signatures with the `avx2` feature
Details

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, 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 crate, is recommended.

Impacted products
Ecosystem Package Version
crates.io pqcrypto-mldsa
pkg:cargo/pqcrypto-mldsa
Affected: ≥ 0.0.0-0 (semver)

{
  "affected": [
    {
      "database_specific": {
        "categories": [
          "crypto-failure"
        ],
        "cvss": null,
        "informational": null
      },
      "ecosystem_specific": {
        "affected_functions": null,
        "affects": {
          "arch": [
            "x86_64"
          ],
          "functions": [
            "pqcrypto_mldsa::mldsa44::verify_detached_signature",
            "pqcrypto_mldsa::mldsa65::verify_detached_signature",
            "pqcrypto_mldsa::mldsa87::verify_detached_signature"
          ],
          "os": []
        }
      },
      "package": {
        "ecosystem": "crates.io",
        "name": "pqcrypto-mldsa",
        "purl": "pkg:cargo/pqcrypto-mldsa"
      },
      "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 (non-Windows) and a CPU that supports\nAVX2, `pqcrypto-mldsa` verifies signatures with PQClean\u0027s AVX2 implementation of\nML-DSA. That implementation predates two upstream fixes\n([pq-crystals/dilithium#113](https://github.com/pq-crystals/dilithium/issues/113),\n3 June 2026):\n\n- the verifier does not check that the infinity norm of `z` is below\n  `\u03b31 \u2212 \u03b2` (FIPS 204, Algorithm 8, line 13), so it accepts signatures that\n  conforming verifiers reject;\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 conforming implementations, including this crate without AVX2.\n\nThe Wycheproof ML-DSA verification vectors reproduce both defects: with AVX2,\n37 / 41 / 49 invalid vectors (ML-DSA-44 / -65 / -87) are accepted and one valid\nvector per parameter set is rejected.\n\nThe crate is unmaintained (see RUSTSEC-2026-0166) and no patched version is\nexpected. Disabling the `avx2` feature avoids the affected code. Migrating to a\nmaintained implementation, such as the [`ml-dsa`](https://crates.io/crates/ml-dsa)\ncrate, is recommended.",
  "id": "RUSTSEC-2026-0586",
  "modified": "2026-11-20T12:47:55Z",
  "published": "2026-11-20T12:00:00Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://crates.io/crates/pqcrypto-mldsa"
    },
    {
      "type": "ADVISORY",
      "url": "https://rustsec.org/advisories/RUSTSEC-2026-0586.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"
    }
  ],
  "related": [],
  "severity": [],
  "summary": "ML-DSA 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…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

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.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    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.