Security mailing lists by PureSourceCode

GHSA-434v-x5qv-pmh6

HIGH

libcrux 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
RUSTSEC-2026-0075
Sources
OSVJSONOSV RUSTSEC-2026-0075JSON

Scores

SourceScored byVersionScoreVector / 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

SourceVendor / ecosystemProduct / packageAffected versionsFixed 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

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)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.