Email me

Rust advisories / libcrux-kem

VulnerabilityRUSTSEC-2026-0330 · libcrux-kem

RUSTSEC-2026-0330: Hybrid Encapsulation from Seed Panics on Short Seed

Short answerA security vulnerability in the libcrux-kem crate: Hybrid Encapsulation from Seed Panics on Short Seed. No severity score was published. Fixed in 0.0.10: update to a fixed version.

Cratelibcrux-kem
TypeVulnerability
Affected versionsBefore 0.0.10.
Fixed in0.0.10
Severitynot scored
CVSS:4.0/AV:L/AC:L/AT:P/PR:H/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Published2026-09-28
Last changed2026-10-07
Also known asnone
Affected functionslibcrux_kem::PublicKey::encapsulate_derand

What to do

  1. See which version you have: cargo tree -i libcrux-kem (it also shows which of your dependencies pulls it in).
  2. Update within your version requirement: cargo update -p libcrux-kem. If the fix is a newer major or minor than your requirement allows, raise it in Cargo.toml (for example libcrux-kem = "0.0.10") or update the dependency that pulls it in.
  3. Check again with cargo audit, or paste your Cargo.lock into our Cargo.toml checker.

Details from the advisory

For a hybrid KEM public key of type PublicKey::WingKemDraft06 or PublicKey::X25519MlKem768Draft06, the PublicKey::encapsulate_derand function would panic in an indexing operation on a seed input of length shorter than 32 bytes.

Impact

Applications encapsulating with an attacker controlled seed value could be made to panic. Since the encapsulation seed should be considered a secret of the encapsulating party for the KEM to remain secure, an application should never take the seed value from a potentially attacker controlled source.

Mitigation

With release of version 0.0.10 of libcrux-kem this bug has been fixed and the serialization functions return InvalidPrivateKey and InvalidPublicKey errors on invalid input buffer lengths.

We recommend users upgrade to libcrux-kem version 0.0.10.

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 libcrux-kem

Full security history of libcrux-kem

Up next

Same cratelibcrux-kem: 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