Rust advisories / libcrux-ed25519
Vulnerability HighRUSTSEC-2026-0075 · libcrux-ed25519
RUSTSEC-2026-0075: All-Zero Key Generation on Catastrophic RNG Failure
Short answerA security vulnerability in the libcrux-ed25519 crate: All-Zero Key Generation on Catastrophic RNG Failure. GitHub rates it High. Fixed in 0.0.7: update to a fixed version.
| Crate | libcrux-ed25519 |
|---|---|
| Type | Vulnerability |
| Affected versions | Before 0.0.7. |
| Fixed in | 0.0.7 |
| Severity | High (GitHub rating) 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 |
| Published | 2026-03-04 |
| Last changed | 2026-03-27 |
| Also known as | GHSA-434v-x5qv-pmh6 |
| Affected functions | libcrux_ed25519::generate_key_pair |
What to do
- See which version you have:
cargo tree -i libcrux-ed25519(it also shows which of your dependencies pulls it in). - Update within your version requirement:
cargo update -p libcrux-ed25519. If the fix is a newer major or minor than your requirement allows, raise it in Cargo.toml (for examplelibcrux-ed25519 = "0.0.7") or update the dependency that pulls it in. - Check again with
cargo audit, or paste your Cargo.lock into our Cargo.toml checker.
Details from the advisory
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.
References
- Package: crates.io/crates/libcrux-ed25519
- Advisory: rustsec.org/advisories/RUSTSEC-2026-0075.html
- Web: github.com/cryspen/libcrux/pull/1349
From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.
Other advisories for libcrux-ed25519
Up next
Same cratelibcrux-ed25519: security historyEvery advisory for this crate, and whether it is safe to use today.Read it next →Did this answer your question?