{"id":"RUSTSEC-2026-0075","summary":"All-Zero Key Generation on Catastrophic RNG Failure","details":"The libcrux-ed25519 key generation samples Ed25519 secret keys from a\nprovided CSPRNG in a loop for up to 100 attempts until a non-zero key\nis found.  If a non-zero key could not be sampled within 100 attempts\nthe key generation function would silently continue with an all-zero buffer as\nthe secret key.\n\n## Impact\nThis bug only occurs in the event of a catastrophic failure of the\nCSPRNG, but would allow anyone to forge signatures under the resulting\nstatic signing key.\n\n## Mitigation\nInstead of silently continuing with an all-zero signing key, starting\nfrom version `0.0.7` key generation will error in the case of 100\nfailed attempts at sampling a valid key.","aliases":["GHSA-434v-x5qv-pmh6"],"modified":"2026-03-27T05:55:06Z","published":"2026-03-04T12:00:00Z","database_specific":{"license":"CC0-1.0"},"references":[{"type":"PACKAGE","url":"https://crates.io/crates/libcrux-ed25519"},{"type":"ADVISORY","url":"https://rustsec.org/advisories/RUSTSEC-2026-0075.html"},{"type":"WEB","url":"https://github.com/cryspen/libcrux/pull/1349"}],"affected":[{"package":{"name":"libcrux-ed25519","ecosystem":"crates.io","purl":"pkg:cargo/libcrux-ed25519"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"},{"fixed":"0.0.7"}]}],"ecosystem_specific":{"affected_functions":null,"affects":{"arch":[],"functions":["libcrux_ed25519::generate_key_pair"],"os":[]}},"database_specific":{"categories":[],"cvss":"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","informational":null,"source":"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2026-0075.json"}}],"schema_version":"1.7.5","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"}]}