Critical severity · published Dec 5, 2022
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/crypto_keygen.cc
9.1
CVSS
2.1%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
High
Integrity
High
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)2.1% · higher than 82% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
DL
Debian Linux · Debian
11.0 · source: NVD
NO
Node.js · Nodejs
15.0.0 through 15.14.0; 16.0.0 through 16.12.0; 16.13.0 before 16.17.1; 18.0.0 before 18.9.1 · source: NVD
SI
Sinec Ins · Siemens
before 1.0; 1.0; 1.0; 1.0 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2022-35255
CVE.org
https://www.cve.org/CVERecord?id=CVE-2022-35255
Third Party Advisory
https://cert-portal.siemens.com/productcert/pdf/ssa-332410.pdf
Exploit
https://hackerone.com/reports/1690000
Third Party Advisory
https://security.netapp.com/advisory/ntap-20230113-0002/
Third Party Advisory
https://www.debian.org/security/2023/dsa-5326
More from Debian Linux
10.0
CVE-2025-32433
Erlang/OTP SSH Vulnerable to Pre-Authentication RCE
10.0
CVE-2025-24201
Apple Multiple Products WebKit Out-of-Bounds Write Vulnerability
10.0
CVE-2021-44228
Apache Log4j2 JNDI features do not protect against attacker controlled LDAP and other JNDI related endpoints
10.0
CVE-2015-3306
ProFTPD Improper Access Control Vulnerability
9.8
CVE-2026-24061
GNU InetUtils Argument Injection Vulnerability
