Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

github логотип

GHSA-434v-x5qv-pmh6

Опубликовано: 26 мар. 2026
Источник: github
Github: Прошло ревью
CVSS4: 8.2

Описание

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.

Пакеты

Наименование

libcrux-ed25519

rust
Затронутые версииВерсия исправления

< 0.0.7

0.0.7

8.2 High

CVSS4

Дефекты

CWE-1240
CWE-331
CWE-392

8.2 High

CVSS4

Дефекты

CWE-1240
CWE-331
CWE-392