RUSTSEC-2026-0585

Vulnerability from osv_rustsec – Published: 2026-11-20 12:00 – Updated: 2026-11-20 12:47 – Source website
VLAI
Summary
ML-KEM does not perform the FIPS 203 input checks
Details

pqcrypto-mlkem wraps PQClean's ML-KEM implementation, which does not perform the input checks required by FIPS 203:

  • encapsulation does not perform the encapsulation key modulus check (section 7.2), so encapsulation keys with coefficients that are not reduced modulo q are accepted;
  • decapsulation does not perform the decapsulation key hash check (section 7.3), so a decapsulation key whose stored hash or embedded encapsulation key has been altered is accepted.

With the Wycheproof ML-KEM vectors, 108 / 112 / 116 invalid encapsulation keys (ML-KEM-512 / -768 / -1024) and 2 invalid decapsulation keys per parameter set are accepted.

This does not disclose key material. It is a FIPS 203 non-conformance, and an affected implementation can disagree with a conforming one about which keys are valid.

The crate is unmaintained (see RUSTSEC-2026-0161) and no patched version is expected. Migrating to a maintained implementation, such as the ml-kem crate, is recommended.

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

{
  "affected": [
    {
      "database_specific": {
        "categories": [
          "crypto-failure"
        ],
        "cvss": null,
        "informational": null
      },
      "ecosystem_specific": {
        "affected_functions": null,
        "affects": {
          "arch": [],
          "functions": [
            "pqcrypto_mlkem::mlkem1024::decapsulate",
            "pqcrypto_mlkem::mlkem1024::encapsulate",
            "pqcrypto_mlkem::mlkem512::decapsulate",
            "pqcrypto_mlkem::mlkem512::encapsulate",
            "pqcrypto_mlkem::mlkem768::decapsulate",
            "pqcrypto_mlkem::mlkem768::encapsulate"
          ],
          "os": []
        }
      },
      "package": {
        "ecosystem": "crates.io",
        "name": "pqcrypto-mlkem",
        "purl": "pkg:cargo/pqcrypto-mlkem"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0.0.0-0"
            }
          ],
          "type": "SEMVER"
        }
      ],
      "versions": []
    }
  ],
  "aliases": [],
  "database_specific": {
    "license": "CC0-1.0"
  },
  "details": "`pqcrypto-mlkem` wraps PQClean\u0027s ML-KEM implementation, which does not perform\nthe input checks required by FIPS 203:\n\n- encapsulation does not perform the encapsulation key modulus check\n  (section 7.2), so encapsulation keys with coefficients that are not reduced\n  modulo q are accepted;\n- decapsulation does not perform the decapsulation key hash check\n  (section 7.3), so a decapsulation key whose stored hash or embedded\n  encapsulation key has been altered is accepted.\n\nWith the Wycheproof ML-KEM vectors, 108 / 112 / 116 invalid encapsulation keys\n(ML-KEM-512 / -768 / -1024) and 2 invalid decapsulation keys per parameter set\nare accepted.\n\nThis does not disclose key material. It is a FIPS 203 non-conformance, and an\naffected implementation can disagree with a conforming one about which keys\nare valid.\n\nThe crate is unmaintained (see RUSTSEC-2026-0161) and no patched version is\nexpected. Migrating to a maintained implementation, such as the\n[`ml-kem`](https://crates.io/crates/ml-kem) crate, is recommended.",
  "id": "RUSTSEC-2026-0585",
  "modified": "2026-11-20T12:47:55Z",
  "published": "2026-11-20T12:00:00Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://crates.io/crates/pqcrypto-mlkem"
    },
    {
      "type": "ADVISORY",
      "url": "https://rustsec.org/advisories/RUSTSEC-2026-0585.html"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/RatioLabsEU/pqc-field-notes/tree/main/advisories/2026-mlkem-input-validation"
    }
  ],
  "related": [],
  "severity": [],
  "summary": "ML-KEM does not perform the FIPS 203 input checks"
}



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.