CWE
338
Advisory Published
CVE Published
Updated

CVE-2022-35255: Weak RNG

First published: Fri Sep 23 2022(Updated: )

A vulnerability was found in NodeJS due to weak randomness in the WebCrypto keygen within the SecretKeyGenTraits::DoKeyGen() in src/crypto/crypto_keygen.cc. Node.js made calls to EntropySource() in SecretKeyGenTraits::DoKeyGen(). However, it does not check the return value and assumes the EntropySource() always succeeds, but it can and sometimes will fail. This flaw allows a remote attacker to decrypt sensitive information.

Credit: support@hackerone.com

Affected SoftwareAffected VersionHow to fix
redhat/nodejs<1:16.17.1-1.el9_0
1:16.17.1-1.el9_0
debian/nodejs
10.24.0~dfsg-1~deb10u1
10.24.0~dfsg-1~deb10u3
12.22.12~dfsg-1~deb11u4
18.13.0+dfsg1-1
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
Siemens Sinec Ins=1.0-sp1
Siemens Sinec Ins=1.0-sp2
Debian Debian Linux=11.0
redhat/Nodejs<16.17.1
16.17.1
redhat/Nodejs<18.9.1
18.9.1
IBM Cognos Controller<=11.0.0 - 11.0.1

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Reference Links

Parent vulnerabilities

(Appears in the following advisories)

Frequently Asked Questions

  • What is CVE-2022-35255?

    CVE-2022-35255 is a vulnerability found in NodeJS due to weak randomness in the WebCrypto keygen within the SecretKeyGenTraits::DoKeyGen() function.

  • How severe is CVE-2022-35255?

    CVE-2022-35255 has a severity value of 9.1, which is considered critical.

  • Which versions of NodeJS are affected by CVE-2022-35255?

    NodeJS versions up to and including 16.17.1 and 18.9.1 are affected by CVE-2022-35255.

  • How can I fix CVE-2022-35255?

    To fix CVE-2022-35255, update your NodeJS installation to version 16.17.1 or higher for NodeJS 16, and version 18.9.1 or higher for NodeJS 18.

  • Where can I find more information about CVE-2022-35255?

    You can find more information about CVE-2022-35255 at the following references: [NodeJS September 2022 Security Releases](https://nodejs.org/en/blog/vulnerability/september-2022-security-releases/), [Red Hat Bugzilla - CVE-2022-35255](https://bugzilla.redhat.com/show_bug.cgi/show_bug.cgi?id=2130524), [Red Hat Bugzilla - CVE-2022-35255](https://bugzilla.redhat.com/show_bug.cgi/show_bug.cgi?id=2130523).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203