{"id":"GHSA-434v-x5qv-pmh6","aliases":["RUSTSEC-2026-0075"],"url":"https://o3.security/vulnerability/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.","published":"2026-03-26T17:58:55Z","modified":"2026-03-27T06:11:21.578854Z","cvss":null,"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"crates.io","name":"libcrux-ed25519","fixedVersion":"0.0.7"}],"fix":{"url":"https://github.com/cryspen/libcrux/pull/1349","label":"cryspen/libcrux#1349"},"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"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-03-27T06:11:21.578854Z"}}