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

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-09-28T12:00:00.000Z
- Modified: 2026-10-07T08:30:02.862Z

## Description

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`.

(As written by RustSec Advisory Database.)

## Affected

- libcrux-kem (crates.io): from 0.0.0-0 before 0.0.10

## References

- <https://crates.io/crates/libcrux-kem> (package)
- <https://rustsec.org/advisories/RUSTSEC-2026-0330.html> (advisory)
- <https://github.com/celabshq/libcrux/pull/1595> (web)

## Sources

- RustSec Advisory Database: [RUSTSEC-2026-0330](https://rustsec.org/advisories/RUSTSEC-2026-0330.html), CC0-1.0, modified 2026-10-07

---

Page: https://cve.day/RUSTSEC-2026-0330 · Whole record: https://cve.day/RUSTSEC-2026-0330.json · Rebuilt by cve.day 2026-11-25T22:56:43.423Z
