CVEvulnerability
CVE-2022-35255
9.1 CRITICAL
Official page ↗
- Status
- Modified
- Published
- 2022-12-05
- Last modified
- 2026-06-17
- Assigner
- [email protected]
- CVSS 3.1 ([email protected])
- 9.1 CRITICAL — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
- CVSS 3.1 (134c704f-9b21-4f2e-91b3-4a467353bcc0)
- 9.1 CRITICAL — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
- Weaknesses
- CWE-338
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.
Affected configurations
• 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
• debian debian linux 11.0
Related
Weakness · CWE (1)
- CWE-338 Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) weakness
References
- https://cert-portal.siemens.com/productcert/pdf/ssa-332410.pdf Third Party Advisory
- https://hackerone.com/reports/1690000 Exploit, Issue Tracking, Third Party Advisory
- https://security.netapp.com/advisory/ntap-20230113-0002/ Third Party Advisory
- https://www.debian.org/security/2023/dsa-5326 Third Party Advisory
- https://cert-portal.siemens.com/productcert/pdf/ssa-332410.pdf Third Party Advisory
- https://hackerone.com/reports/1690000 Exploit, Issue Tracking, Third Party Advisory
- https://security.netapp.com/advisory/ntap-20230113-0002/ Third Party Advisory
- https://www.debian.org/security/2023/dsa-5326 Third Party Advisory