CVE-2022-35255

CRITICALCVSS 9.1/10EPSS 1.87%

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
9.1/10

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

EPSS Probability
1.87%

76.7th percentile

Probability of exploitation in the next 30 days. Learn more

Weakness Enumeration

Affected Software

VendorProductVersions
NodejsNode.Js>= 15.0.0, <= 15.14.0
NodejsNode.Js>= 16.0.0, <= 16.12.0
NodejsNode.Js>= 16.13.0, < 16.17.1
NodejsNode.Js>= 18.0.0, < 18.9.1
SiemensSinec Ins< 1.0
SiemensSinec Ins1.0
DebianDebian Linux11.0

References

Timeline

Published
Last Modified
Status
Modified

Frequently Asked Questions

What is 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. 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.
How severe is CVE-2022-35255?
CVE-2022-35255 has a CVSS score of 9.1/10 (CRITICAL severity). The EPSS model estimates a 1.87% probability of exploitation in the next 30 days.
How do I fix CVE-2022-35255?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

Are you affected by CVE-2022-35255?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST