highVulnerability

GHSA-434v-x5qv-pmh6

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.

Properties

ghsa_id
GHSA-434v-x5qv-pmh6
severity
high
summary
libcrux has All-Zero Key Generation Upon Catastrophic RNG Failure
cve_id
GHSA-434v-x5qv-pmh6
is_ghsa_only
true
ghsa_published
2026-03-26T17:58:55Z
source_url
https://github.com/advisories/GHSA-434v-x5qv-pmh6
ghsa_updated
2026-03-26T17:58:55Z

Related Entities (5)

AFFECTS (1)

[Software]rust/libcrux-ed25519

HAS_WEAKNESS (3)

[Weakness]Insufficient Entropy
[Weakness]Use of a Cryptographic Primitive with a Risky Implementation
[Weakness]Missing Report of Error Condition

REPORTED_BY (1)

[Source]GitHub Advisory Database

Explore deeper with Ninja Signal's threat intelligence graph