{"id":"GHSA-434v-x5qv-pmh6","aliases":["GHSA-434v-x5qv-pmh6","RUSTSEC-2026-0075"],"related":[],"kind":"vulnerability","state":"published","title":"libcrux has All-Zero Key Generation Upon Catastrophic RNG Failure","summary":"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.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"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.","format":"markdown","source":"ghsa"}],"published":"2026-03-04T12:00:00.000Z","modified":"2026-03-27T06:11:21.578Z","severity":{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"HIGH"},{"scorer":"RustSec Advisory Database","scheme":"CVSS:4.0","vector":"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"}],"cwes":["CWE-331","CWE-392","CWE-1240"],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.0.7"}],"ecosystem":"crates.io","package":"libcrux-ed25519","purl":"pkg:cargo/libcrux-ed25519","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected","fixed":"0.0.7"}],"ecosystem":"crates.io","package":"libcrux-ed25519","purl":"pkg:cargo/libcrux-ed25519","source":"rustsec"}],"references":[{"url":"https://github.com/cryspen/libcrux/pull/1349","tags":["web"],"sources":["ghsa","rustsec"]},{"url":"https://github.com/cryspen/libcrux","tags":["package"],"sources":["ghsa"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2026-0075.html","tags":["advisory","web"],"sources":["ghsa","rustsec"]},{"url":"https://crates.io/crates/libcrux-ed25519","tags":["package"],"sources":["rustsec"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-434v-x5qv-pmh6","url":"https://github.com/advisories/GHSA-434v-x5qv-pmh6","licence":"CC-BY-4.0","modified":"2026-03-27T06:11:21.578Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2026-0075","url":"https://rustsec.org/advisories/RUSTSEC-2026-0075.html","licence":"CC0-1.0","modified":"2026-03-27T05:55:06.000Z"}],"updatedAt":"2026-11-25T22:56:43.328Z"}