{"id":"RUSTSEC-2026-0585","aliases":[],"title":"ML-KEM does not perform the FIPS 203 input checks","titleSource":"OSV","descriptionSource":"OSV","description":"`pqcrypto-mlkem` wraps PQClean's 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.","severity":"unknown","score":null,"published":"2026-11-20T12:00:00.000Z","modified":"2026-11-20T13:00:02.891Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"crates.io","name":"pqcrypto-mlkem","sources":[{"name":"OSV · RUSTSEC-2026-0585","url":"https://osv.dev/vulnerability/RUSTSEC-2026-0585"}],"ranges":[{"events":[{"introduced":"0.0.0-0"}],"type":"SEMVER"}],"versions":[],"fixed":[]}],"sourceAffected":[],"references":["https://crates.io/crates/pqcrypto-mlkem","https://rustsec.org/advisories/RUSTSEC-2026-0585.html","https://github.com/RatioLabsEU/pqc-field-notes/tree/main/advisories/2026-mlkem-input-validation"],"sources":[{"name":"OSV","id":"RUSTSEC-2026-0585","modified":"2026-11-20T13:00:02.891328885Z","url":"https://osv.dev/vulnerability/RUSTSEC-2026-0585"}],"assessments":[],"products":[],"remediation":[],"observedAt":"2026-11-20T14:03:11.464Z","kev":{"status":"unavailable","checkedAt":"2026-11-28T23:50:30.900Z"},"coverage":[{"source":"NVD","status":"not-checked"},{"source":"GHSA","status":"not-checked"},{"source":"EUVD","status":"not-checked"},{"source":"EPSS","status":"not-checked"}],"evidence":[],"aiSummary":null}