Vulnerability RUSTSEC-2026-0331

Unknown
UNKNOWN RISK
Vulnerabilities without an assigned CVSS score. Severity is not determinable from available data.
1 month ago
August 24, 2026 at 12:00 PM UTC
Panic on Decoding Short Hybrid Keys
0.0.2 and 0.0.3 and 0.0.4 and 0.0.5 and 0.0.6 and 0.0.7 and 0.0.8 and 0.0.9
0.0.2 and 0.0.3 and 0.0.4 and 0.0.5 and 0.0.6 and 0.0.7 and 0.0.8 and 0.0.9

Summary

Panic on Decoding Short Hybrid Keys

Details

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.

Impacted packages

Timeline

Published
1 month ago
August 24, 2026 at 12:00 PM UTC
Fixed (0.0.10)
3 hours ago
October 07, 2026 at 06:33 AM UTC
Last Modified
1 hour ago
October 07, 2026 at 08:30 AM UTC