GHSA-434v-x5qv-pmh6: Libcrux ed25519 Libcrux Has All-Zero Key Generation Vulnerability
HIGHGHSA-434v-x5qv-pmh6 is a HIGH libcrux has all-zero key generation vulnerability (CWE-392: Missing Report of Error Condition) affecting Libcrux ed25519 libraries in the crates.io ecosystem. The issue involves libcrux has all-zero key generation upon catastrophic rng failure. Remediation is available by upgrading affected packages to version 0.0.7.
GHSA-434v-x5qv-pmh6 at a Glance
How to Fix GHSA-434v-x5qv-pmh6
To remediate this vulnerability, upgrade all affected Libcrux ed25519 dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade libcrux-ed25519 to 0.0.7
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for libcrux-ed25519
How to Check if You Are Affected
To determine whether your application is affected by GHSA-434v-x5qv-pmh6, inspect your project dependencies for Libcrux ed25519:
inspect dependencies for libcrux-ed25519
Analyze the terminal output to locate any version of Libcrux ed25519 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.0.7), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-392: Missing Report of Error Condition, where the product encounters an error but does not provide a status code or return value to indicate that an error has occurred. In Libcrux ed25519, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-434v-x5qv-pmh6 Affected Libcrux ed25519 Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
libcrux-ed25519
|
crates.io |
< 0.0.7
|
0.0.7
|
References
Frequently Asked Questions
What is GHSA-434v-x5qv-pmh6?
Which Libcrux ed25519 versions are affected?
What version fixes GHSA-434v-x5qv-pmh6?
Is libcrux-ed25519 affected?
What CWE is associated with GHSA-434v-x5qv-pmh6?
How can I check crates.io dependencies for GHSA-434v-x5qv-pmh6?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-434v-x5qv-pmh6",
"modified" : "2026-03-26T17:58:55Z",
"published" : "2026-03-26T17:58:55Z",
"aliases" : [ ],
"summary" : "libcrux has All-Zero Key Generation Upon Catastrophic RNG Failure",
"details" : "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.\n\n## Impact\nThis 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.\n\n## Mitigation\nInstead 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.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "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" : [ {
"package" : {
"ecosystem" : "crates.io",
"name" : "libcrux-ed25519"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.0.7"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/cryspen/libcrux/pull/1349"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/cryspen/libcrux"
}, {
"type" : "WEB",
"url" : "https://rustsec.org/advisories/RUSTSEC-2026-0075.html"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1240", "CWE-331", "CWE-392" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-03-26T17:58:55Z",
"nvd_published_at" : null
}
}