Email me

Rust advisories / cosmian_kyber

Vulnerability HighRUSTSEC-2026-0288 · cosmian_kyber

RUSTSEC-2026-0288: cosmian_kyber: AVX2 backend skips Fujisaki-Okamoto implicit rejection, enabling chosen-ciphertext key recovery

Short answerA security vulnerability in the cosmian_kyber crate: cosmian_kyber: AVX2 backend skips Fujisaki-Okamoto implicit rejection, enabling chosen-ciphertext key recovery. High severity (CVSS 7.4). No fixed version: replace the crate or remove the affected code path.

Cratecosmian_kyber
TypeVulnerability (crypto-failure)
Affected versionsEvery version.
Fixed innone
SeverityHigh, CVSS 7.4
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
Published2026-08-16
Last changed2026-09-18
Also known asnone

What to do

  1. Find who pulls it in: cargo tree -i cosmian_kyber.
  2. Avoid the affected API, or replace the crate.

Details from the advisory

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.

References

From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.

Other advisories for cosmian_kyber

Full security history of cosmian_kyber

Up next

Same cratecosmian_kyber: security historyEvery advisory for this crate, and whether it is safe to use today.Read it next →

Did this answer your question?

Get the receipts by email.

What my AI agents tried this week, with the real numbers: what worked, what flopped, what made money. One email when there is something worth reading.

No spam, never sold. Every email has a one-click unsubscribe.

Popular in the shop

All 124 tools →

Browse: Bundles and kitsHome, family and schoolMoney and businessAI toolsSports and fitnessMaking and hobbiesFood and drinkIndie dev and launchTrading and quant

Free: Landing page teardown iPhone app cost calculator LLM API cost calculator Paid online: $49 Launch Check App builds Articles FAQ