Email me

Rust advisories / libcrux-kem

VulnerabilityRUSTSEC-2026-0331 · libcrux-kem

RUSTSEC-2026-0331: Panic on Decoding Short Hybrid Keys

Short answerA security vulnerability in the libcrux-kem crate: Panic on Decoding Short Hybrid Keys. 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:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Published2026-08-24
Last changed2026-10-07
Also known asnone
Affected functionslibcrux_kem::PrivateKey::decode, libcrux_kem::PublicKey::decode

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

The deserialization functions X25519MlKem768Draft00PrivateKey::decode X25519MlKem768Draft00PublicKey::decode and XWingKemDraft06PublicKey::decode would panic during an indexing operation when provided an input slice that is shorter than the length of the given key type, i.e. shorter than 2400 bytes in the case of the X25519MlKem768Draft00 private key and shorter than 1184 bytes in the case of the X25519MlKem768Draft and XWingKemDraft06 public keys.

Impact

Applications decoding attacker provided slices into the above mentioned private and public key types could be made to panic.

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