# RUSTSEC-2026-0288: cosmian\_kyber: AVX2 backend skips Fujisaki-Okamoto implicit rejection, enabling chosen-ciphertext key recovery

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **Published:** 2026-08-16T12:00:00.000Z
- **Modified:** 2026-09-18T09:15:05.126Z

## Who should check

- Projects that depend on crates.io package cosmian\_kyber (\>= 0.0.0-0)

## Description

\#\# Summary

\`cosmian\_kyber\` is a fork of \`Argyle-Software/kyber\` and inherits a broken
constant-time conditional-move routine \`cmov\` in its AVX2 backend. When built
with the opt-in \`avx2\` feature on x86\_64, \`cmov\` is a no-op: it never performs
the copy. That \`cmov\` is the step that applies the Fujisaki-Okamoto (FO) implicit
rejection during decapsulation. With it disabled, decapsulating an \*invalid\*
ciphertext no longer returns a key-independent pseudorandom value; it returns a
value that depends on the decrypted plaintext of the attacker-chosen ciphertext.
This restores the chosen-ciphertext decryption oracle that the FO transform
exists to remove, and yields full recovery of the static secret key.

The attack requires no timing measurement, no side channel, and no faults; only
the ability to submit ciphertexts to a decapsulation operation under a reused
key pair and observe the resulting shared secret. See the linked pull request
for the root cause and the reachable call path.

\#\# Affected configuration

Reachable only in builds with \`features = \["avx2"\]\` on an x86\_64 target. The
default (reference) backend and all non-x86\_64 targets are unaffected.

\#\# Impact

Complete IND-CCA break. The plaintext-checking oracle drives a standard
chosen-ciphertext key-recovery attack and extracts the entire static secret key.
Any protocol reusing a Kyber key pair across decapsulations is exposed;
ephemeral-only key shares are not. The identical defect in the parent crate was
verified end to end on ML-KEM-768 (full key recovered in 4,272 decapsulation
queries).

\#\# Maintenance status

\`cosmian\_kyber\` is a stale fork (last published 0.1.0, January 2023) of an
unmaintained upstream, and no fixed release is expected.

\#\# Mitigation

- If remaining on this crate, do not enable the \`avx2\` feature; the default
  reference backend performs implicit rejection correctly.
- Do not reuse a Kyber key pair across decapsulations.

\#\# Credit

Reported by 007bsd.

## Affected and fixed versions

- crates.io `cosmian_kyber`: affected \>= 0.0.0-0; fixed no fix listed yet (osv)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by RUSTSEC-2026-0288. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/RUSTSEC-2026-0288.md
Affected: cosmian_kyber >= 0.0.0-0
Fixed in: no fixed version listed yet

Steps:
1. Search this machine and project for cosmian_kyber (crates.io): dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is RUSTSEC-2026-0288 being exploited?

There is no confirmed exploitation: RUSTSEC-2026-0288 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

### How serious is RUSTSEC-2026-0288?

It has no CVSS score yet. Unknown.

### Which versions are affected by RUSTSEC-2026-0288?

cosmian\_kyber \>= 0.0.0-0.

### Is there a fix for RUSTSEC-2026-0288?

No fixed version is listed in the sources yet. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by RUSTSEC-2026-0288?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://rustsec.org/advisories/RUSTSEC-2026-0288.html>
- patch: <https://github.com/Cosmian/kyber/pull/6>
- other: <https://crates.io/crates/cosmian_kyber>

## Attribution

- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/RUSTSEC-2026-0288> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/RUSTSEC-2026-0288> · JSON: <https://flawdb.com/api/v1/entries/RUSTSEC-2026-0288>
