RustSec logo

History ⋅ Edit ⋅ JSON (OSV)

RUSTSEC-2026-0585

ML-KEM does not perform the FIPS 203 input checks

Reported
Issued
Package
pqcrypto-mlkem (crates.io)
Type
Vulnerability
Categories
Keywords
#ml-kem #fips203 #input-validation
References
Patched
no patched versions
Affected Functions
Version
pqcrypto_mlkem::mlkem1024::decapsulate
  • <=0.1.1
pqcrypto_mlkem::mlkem1024::encapsulate
  • <=0.1.1
pqcrypto_mlkem::mlkem512::decapsulate
  • <=0.1.1
pqcrypto_mlkem::mlkem512::encapsulate
  • <=0.1.1
pqcrypto_mlkem::mlkem768::decapsulate
  • <=0.1.1
pqcrypto_mlkem::mlkem768::encapsulate
  • <=0.1.1

Description

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

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.

Advisory available under CC0-1.0 license.