1. Archivio CVE
  2. 2022
  3. CVE-2022-35255

CVE-2022-35255

9.1 Gravità critica CVSS v3.1 · fonte NVD CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N 9.1 – Critica

Descrizione

A weak randomness in WebCrypto keygen vulnerability exists in Node.js 18 due to a change with EntropySource() in SecretKeyGenTraits::DoKeyGen() in src/crypto/crypto_keygen.cc. There are two problems with this: 1) It does not check the return value, it assumes EntropySource() always succeeds, but it can (and sometimes will) fail. 2) The random data returned byEntropySource() may not be cryptographically strong and therefore not suitable as keying material.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
debian debian linux 11.0 –
nodejs node.js >= 15.0.0 <= 15.14.0 –
nodejs node.js >= 16.0.0 <= 16.12.0 –
nodejs node.js >= 16.13.0 < 16.17.1 –
nodejs node.js >= 18.0.0 < 18.9.1 –
siemens sinec ins < 1.0 –
siemens sinec ins 1.0 –
siemens sinec ins 1.0 sp1 –
siemens sinec ins 1.0 sp2 –
Tutte le 187 vulnerabilità di Nodejs Node.js

Tipo di vulnerabilità

CWE-338 Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)

The product uses a Pseudo-Random Number Generator (PRNG) in a security context, but the PRNG's algorithm is not cryptographically strong.

Impatto sui sistemi

AmbitoImpatto
Controllo degli accessi Aggirare i meccanismi di protezione

Come si previene

Sviluppo Use functions or hardware which use a hardware-based random number generation for all crypto. This is the recommended solution. Use CyptGenRandom on Windows, or hw_rand() on Linux.

Le indicazioni di mitigazione sono riportate nella lingua originale del catalogo CWE del MITRE.

Tutte le 218 CVE di tipo CWE-338, con andamento e prevenzione

Fonte: catalogo CWE del MITRE · cwe.mitre.org