CVE-2022-35255

Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
05/12/2022
Last modified:
24/04/2025

Description

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.

Vulnerable products and versions

CPE From Up to
cpe:2.3:a:nodejs:node.js:*:*:*:*:-:*:*:* 15.0.0 (including) 15.14.0 (including)
cpe:2.3:a:nodejs:node.js:*:*:*:*:-:*:*:* 16.0.0 (including) 16.12.0 (including)
cpe:2.3:a:nodejs:node.js:*:*:*:*:lts:*:*:* 16.13.0 (including) 16.17.1 (excluding)
cpe:2.3:a:nodejs:node.js:*:*:*:*:-:*:*:* 18.0.0 (including) 18.9.1 (excluding)
cpe:2.3:a:siemens:sinec_ins:*:*:*:*:*:*:*:* 1.0 (excluding)
cpe:2.3:a:siemens:sinec_ins:1.0:-:*:*:*:*:*:*
cpe:2.3:a:siemens:sinec_ins:1.0:sp1:*:*:*:*:*:*
cpe:2.3:a:siemens:sinec_ins:1.0:sp2:*:*:*:*:*:*
cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*