SEVERITY NOT PROVIDED

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

Published 2026-11-20 · Updated 2026-11-20

Summary

The pqcrypto-mlkem crate fails to perform FIPS 203 input checks for ML-KEM, accepting invalid encapsulation and decapsulation keys. Users should migrate to the maintained ml-kem crate.

Who is affected

Affected deployments using pqcrypto-mlkem may process invalid keys that conforming implementations would reject, leading to interoperability failures. The flaw allows encapsulation keys with coefficients not reduced modulo q and decapsulation keys with altered hashes. This does not expose key material but violates FIPS 203 compliance requirements.

Exploitability

CVSS vector and base score are not computed, providing no standardized risk metrics. EPSS data is not yet available, and CISA KEV is marked as no, indicating no known active exploitation. The vulnerability exists due to missing input validation, but requires deliberate use of malformed keys to manifest.

Remediation

How to check your project

Automated analysis of the published advisory data, generated 2026-11-20. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
crates.io pqcrypto-mlkem >= 0.0.0-0 (no fix published) not published -

FAQ

What is the vulnerability in ML-KEM?

ML-KEM does not perform FIPS 203 input checks, specifically missing encapsulation key modulus checks and decapsulation key hash verification.

Which crates are affected?

The pqcrypto-mlkem crate, which wraps PQClean's ML-KEM implementation.

Is there a fixed version?

No fixed version is available; the crate is unmaintained and migrating to the ml-kem crate is recommended.

Original advisory 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.

References

Source records: RUSTSEC-2026-0585 (OSV.dev).