{"id":"GHSA-434v-x5qv-pmh6","summary":"libcrux has All-Zero Key Generation Upon Catastrophic RNG Failure","details":"The libcrux-ed25519 key generation samples Ed25519 secret keys from a provided CSPRNG in a loop for up to 100 attempts until a non-zero key is found.  If a non-zero key could not be sampled within 100 attempts the key generation function would silently continue with an all-zero buffer as the secret key.\n\n## Impact\nThis bug only occurs in the event of a catastrophic failure of the CSPRNG, but would allow anyone to forge signatures under the resulting static signing key.\n\n## Mitigation\nInstead of silently continuing with an all-zero signing key, starting from version `0.0.7` key generation will error in the case of 100 failed attempts at sampling a valid key.","aliases":["RUSTSEC-2026-0075"],"modified":"2026-03-27T06:11:21.578854Z","published":"2026-03-26T17:58:55Z","database_specific":{"nvd_published_at":null,"cwe_ids":["CWE-1240","CWE-331","CWE-392"],"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2026-03-26T17:58:55Z"},"references":[{"type":"WEB","url":"https://github.com/cryspen/libcrux/pull/1349"},{"type":"PACKAGE","url":"https://github.com/cryspen/libcrux"},{"type":"WEB","url":"https://rustsec.org/advisories/RUSTSEC-2026-0075.html"}],"affected":[{"package":{"name":"libcrux-ed25519","ecosystem":"crates.io","purl":"pkg:cargo/libcrux-ed25519"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.0.7"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/03/GHSA-434v-x5qv-pmh6/GHSA-434v-x5qv-pmh6.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N"}]}