Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. libcrux-ed25519
  4. ›
  5. GHSA-434v-x5qv-pmh6

GHSA-434v-x5qv-pmh6: libcrux has All-Zero Key Generation Upon Catastrophic RNG Failure

March 26, 2026

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.

References

  • github.com/advisories/GHSA-434v-x5qv-pmh6
  • github.com/cryspen/libcrux
  • github.com/cryspen/libcrux/pull/1349
  • rustsec.org/advisories/RUSTSEC-2026-0075.html

Code Behaviors & Features

Detect and mitigate GHSA-434v-x5qv-pmh6 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 0.0.7

Fixed versions

  • 0.0.7

Solution

Upgrade to version 0.0.7 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-1240: Use of a Cryptographic Primitive with a Risky Implementation
  • CWE-331: Insufficient Entropy
  • CWE-392: Missing Report of Error Condition

Source file

cargo/libcrux-ed25519/GHSA-434v-x5qv-pmh6.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:51 +0000.