GHSA-434v-x5qv-pmh6 json
libcrux has All-Zero Key Generation Upon Catastrophic RNG Failure
published 8mo ago modified 7mo ago also RUSTSEC-2026-0075
- cvss
- —
- not scored
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- —
- no score, EPSS covers CVEs only
- public exploits
- 0
- none known
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.
## Impact This 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.
## Mitigation Instead 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.
Patch / fix
Is GHSA-434v-x5qv-pmh6 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerAffected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| crates.io | libcrux-ed25519 | <0.0.7 >=0.0.0-0, <0.0.7 |
0.0.7 |
Classification
References
-
github.com
/cryspen/libcrux/pull/1349
web
-
github.com
/cryspen/libcrux
package
-
rustsec.org
/advisories/RUSTSEC-2026-0075.html
web, advisory
-
crates.io
/crates/libcrux-ed25519
package
Sources
- GitHub Advisory GHSA-434v-x5qv-pmh6
- OSV RUSTSEC-2026-0075
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.