CVE-2022-35255
Last modified
CVE-2022-35255 is a critical-severity vulnerability rated 9.1/10 on the CVSS scale. 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. EPSS estimates a 1.87% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| 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 |
References
- https://cert-portal.siemens.com/productcert/pdf/ssa-332410.pdfThird Party Advisory
- https://hackerone.com/reports/1690000Exploit, Issue Tracking, Third Party Advisory
- https://security.netapp.com/advisory/ntap-20230113-0002/Third Party Advisory
- https://www.debian.org/security/2023/dsa-5326Third Party Advisory
- https://cert-portal.siemens.com/productcert/pdf/ssa-332410.pdfThird Party Advisory
- https://hackerone.com/reports/1690000Exploit, Issue Tracking, Third Party Advisory
- https://security.netapp.com/advisory/ntap-20230113-0002/Third Party Advisory
- https://www.debian.org/security/2023/dsa-5326Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2022-35255?
How severe is CVE-2022-35255?
How do I fix CVE-2022-35255?
Are you affected by CVE-2022-35255?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
