RUSTSEC-2026-0330

Source
https://rustsec.org/advisories/RUSTSEC-2026-0330
Import Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2026-0330.json
JSON Data
https://api.osv.dev/v1/vulns/RUSTSEC-2026-0330
Published
2026-09-28T12:00:00Z
Modified
2026-10-07T08:30:02Z
Severity
  • 5.6 (Medium) CVSS_V4 - 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 CVSS Calculator
Summary
Hybrid Encapsulation from Seed Panics on Short Seed
Details

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.

Database specific
{
    "license": "CC0-1.0"
}
References

Affected packages

crates.io / libcrux-kem

Package

Name
libcrux-kem
View open source insights on deps.dev
Purl
pkg:cargo/libcrux-kem

Affected ranges

Type
SEMVER
Events
Introduced
0.0.0-0
Fixed
0.0.10

Ecosystem specific

{
    "affected_functions": null,
    "affects": {
        "arch": [],
        "functions": [
            "libcrux_kem::PublicKey::encapsulate_derand"
        ],
        "os": []
    }
}

Database specific

categories
[]
cvss
"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"
informational
null
source
"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2026-0330.json"