# RUSTSEC-2026-0585: ML-KEM does not perform the FIPS 203 input checks

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-11-20T12:00:00.000Z
- Modified: 2026-11-20T13:00:02.891Z

## Description

`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`](https://crates.io/crates/ml-kem) crate, is recommended.

(As written by RustSec Advisory Database.)

## Affected

- pqcrypto-mlkem (crates.io): from 0.0.0-0

## References

- <https://crates.io/crates/pqcrypto-mlkem> (package)
- <https://rustsec.org/advisories/RUSTSEC-2026-0585.html> (advisory)
- <https://github.com/RatioLabsEU/pqc-field-notes/tree/main/advisories/2026-mlkem-input-validation> (advisory)

## Sources

- RustSec Advisory Database: [RUSTSEC-2026-0585](https://rustsec.org/advisories/RUSTSEC-2026-0585.html), CC0-1.0, modified 2026-11-20

---

Page: https://cve.day/RUSTSEC-2026-0585 · Whole record: https://cve.day/RUSTSEC-2026-0585.json · Rebuilt by cve.day 2026-11-25T22:56:43.521Z
