NetSight
critical9.1

CVE-2022-35255

A weak randomness in WebCrypto keygen vulnerability exists in Node.js 18 due to a change with EntropySource() in SecretKeyGenTraits::DoKeyGen() in src/crypto/c…

Impact

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.

Affected products

VendorProductAffected versions
NodejsNode.Js
from 15.0.0 through 15.14.0
from 16.0.0 through 16.12.0
from 16.13.0 before 16.17.1
from 18.0.0 before 18.9.1
SiemensSinec Ins
before 1.0
Version 1.0
DebianDebian Linux
Version 11.0

Weakness classification

References