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

exploitDog

nvd логотип

CVE-2021-41117

Опубликовано: 11 окт. 2021
Источник: nvd
CVSS3: 8.7
CVSS3: 9.1
CVSS2: 6.4
EPSS Низкий

Описание

keypair is a a RSA PEM key generator written in javascript. keypair implements a lot of cryptographic primitives on its own or by borrowing from other libraries where possible, including node-forge. An issue was discovered where this library was generating identical RSA keys used in SSH. This would mean that the library is generating identical P, Q (and thus N) values which, in practical terms, is impossible with RSA-2048 keys. Generating identical values, repeatedly, usually indicates an issue with poor random number generation, or, poor handling of CSPRNG output. Issue 1: Poor random number generation (GHSL-2021-1012). The library does not rely entirely on a platform provided CSPRNG, rather, it uses it's own counter-based CMAC approach. Where things go wrong is seeding the CMAC implementation with "true" random data in the function defaultSeedFile. In order to seed the AES-CMAC generator, the library will take two different approaches depending on the JavaScript execution environ

Уязвимые конфигурации

Конфигурация 1
cpe:2.3:a:keypair_project:keypair:*:*:*:*:*:*:*:*
Версия до 1.0.4 (исключая)

EPSS

Процентиль: 62%
0.00435
Низкий

8.7 High

CVSS3

9.1 Critical

CVSS3

6.4 Medium

CVSS2

Дефекты

CWE-335

Связанные уязвимости

CVSS3: 8.7
github
больше 4 лет назад

Insecure random number generation in keypair

EPSS

Процентиль: 62%
0.00435
Низкий

8.7 High

CVSS3

9.1 Critical

CVSS3

6.4 Medium

CVSS2

Дефекты

CWE-335