RUSTSEC-2026-0075
HIGHlibcrux has All-Zero Key Generation Upon Catastrophic RNG Failure
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.
- Published
- 4 Mar 2026
- Last modified
- 27 Mar 2026
- Weakness
- CWE-1240CWE-331CWE-392
- Also known as
- GHSA-434v-x5qv-pmh6
- Sources
- OSV GHSA-434v-x5qv-pmh6JSONOSVJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | 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 | |
| OSV | RustSec | CVSS 4.0 | 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 |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | crates.io | libcrux-ed25519 | < 0.0.7 | 0.0.7 |
| OSV | crates.io | libcrux-ed25519 | >= 0.0.0-0, < 0.0.7 | 0.0.7 |
References
- https://github.com/cryspen/libcrux/pull/1349 · WEB
- https://github.com/cryspen/libcrux · PACKAGE
- https://rustsec.org/advisories/RUSTSEC-2026-0075.html · WEB, ADVISORY
- https://crates.io/crates/libcrux-ed25519 · PACKAGE
History
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 4 Mar 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 26 Mar 2026)