RUSTSEC-2026-0075

Source
https://rustsec.org/advisories/RUSTSEC-2026-0075
Import Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2026-0075.json
JSON Data
https://api.osv.dev/v1/vulns/RUSTSEC-2026-0075
Aliases
Published
2026-03-04T12:00:00Z
Modified
2026-03-27T05:55:06Z
Severity
  • 8.2 (High) CVSS_V4 - 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 CVSS Calculator
Summary
All-Zero Key Generation on 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.

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.

Database specific
{
    "license": "CC0-1.0"
}
References

Affected packages

crates.io / libcrux-ed25519

Package

Name
libcrux-ed25519
View open source insights on deps.dev
Purl
pkg:cargo/libcrux-ed25519

Affected ranges

Type
SEMVER
Events
Introduced
0.0.0-0
Fixed
0.0.7

Ecosystem specific

{
    "affected_functions": null,
    "affects": {
        "arch": [],
        "functions": [
            "libcrux_ed25519::generate_key_pair"
        ],
        "os": []
    }
}

Database specific

categories
[]
source
"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2026-0075.json"
informational
null
cvss
"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"