{"id":"RUSTSEC-2026-0585","aliases":["RUSTSEC-2026-0585"],"related":[],"kind":"vulnerability","state":"published","title":"ML-KEM does not perform the FIPS 203 input checks","summary":"`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.","summaryFormat":"markdown","summarySource":"rustsec","descriptions":[{"lang":"en","text":"`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.","format":"markdown","source":"rustsec"}],"published":"2026-11-20T12:00:00.000Z","modified":"2026-11-20T13:00:02.891Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected"}],"ecosystem":"crates.io","package":"pqcrypto-mlkem","purl":"pkg:cargo/pqcrypto-mlkem","source":"rustsec"}],"references":[{"url":"https://crates.io/crates/pqcrypto-mlkem","tags":["package"],"sources":["rustsec"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2026-0585.html","tags":["advisory"],"sources":["rustsec"]},{"url":"https://github.com/RatioLabsEU/pqc-field-notes/tree/main/advisories/2026-mlkem-input-validation","tags":["advisory"],"sources":["rustsec"]}],"credits":[],"sources":[{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2026-0585","url":"https://rustsec.org/advisories/RUSTSEC-2026-0585.html","licence":"CC0-1.0","modified":"2026-11-20T13:00:02.891Z"}],"updatedAt":"2026-11-25T22:56:43.521Z"}