CVE-2022-35255
CRITICAL9.1EPSS 1.2%Published: 12/5/2022Modified: 4/28/2026
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 packages (4)
- Alpine/nodejsfrom 0, < 16.17.1-r0
- Bitnami/node>= 15.0.0, < 15.14.1, >= 16.0.0, < 16.12.1, >= 16.13.0, < 16.17.1, >= 18.0.0, < 18.9.1
- Bitnami/node-min>= 15.0.0, < 15.14.1, >= 16.0.0, < 16.12.1, >= 16.13.0, < 16.17.1, >= 18.0.0, < 18.9.1
- Debian/nodejsfrom 0, < 12.22.12~dfsg-1~deb11u3
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | CRITICAL9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
References (7)
- ADVISORYhttps://security.alpinelinux.org/vuln/CVE-2022-35255
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2022-35255
- WEBhttps://cert-portal.siemens.com/productcert/pdf/ssa-332410.pdf
- WEBhttps://hackerone.com/reports/1690000
- WEBhttps://nvd.nist.gov/vuln/detail/CVE-2022-35255
- WEBhttps://security.netapp.com/advisory/ntap-20230113-0002/
- WEBhttps://www.debian.org/security/2023/dsa-5326