{"id":"RUSTSEC-2026-0330","aliases":["RUSTSEC-2026-0330"],"related":[],"kind":"vulnerability","state":"published","title":"Hybrid Encapsulation from Seed Panics on Short Seed","summary":"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.\n\n# Impact\n\nApplications 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.\n\n# Mitigation\n\nWith 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.\n\nWe recommend users upgrade to `libcrux-kem` version `0.0.10`.","summaryFormat":"markdown","summarySource":"rustsec","descriptions":[{"lang":"en","text":"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.\n\n# Impact\n\nApplications 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.\n\n# Mitigation\n\nWith 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.\n\nWe recommend users upgrade to `libcrux-kem` version `0.0.10`.","format":"markdown","source":"rustsec"}],"published":"2026-09-28T12:00:00.000Z","modified":"2026-10-07T08:30:02.862Z","severities":[{"scorer":"RustSec Advisory Database","scheme":"CVSS:4.0","vector":"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"}],"cwes":[],"affected":[{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected","fixed":"0.0.10"}],"ecosystem":"crates.io","package":"libcrux-kem","purl":"pkg:cargo/libcrux-kem","source":"rustsec"}],"references":[{"url":"https://crates.io/crates/libcrux-kem","tags":["package"],"sources":["rustsec"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2026-0330.html","tags":["advisory"],"sources":["rustsec"]},{"url":"https://github.com/celabshq/libcrux/pull/1595","tags":["web"],"sources":["rustsec"]}],"credits":[],"sources":[{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2026-0330","url":"https://rustsec.org/advisories/RUSTSEC-2026-0330.html","licence":"CC0-1.0","modified":"2026-10-07T08:30:02.862Z"}],"updatedAt":"2026-11-25T22:56:43.423Z"}