cve.bz

CVE-2022-35255

9.1 criticalExploit referenceEPSS 2.1%

Critical (9.1). EPSS 2.1% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

9.1 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
EPSS
2.1% (unchanged from 2.1% a week ago; 2.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 82nd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: total, assessed 2025-04-24. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-338 Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)
OWASP Top 10
A04:2025 Cryptographic Failures
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-35255 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-35255?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-35255?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-35255 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
NodeJS Nodefrom 4.0 before 4.*
NodeJS Nodefrom 5.0 before 5.*
NodeJS Nodefrom 6.0 before 6.*
NodeJS Nodefrom 7.0 before 7.*
NodeJS Nodefrom 8.0 before 8.*
NodeJS Nodefrom 9.0 before 9.*
NodeJS Nodefrom 10.0 before 10.*
NodeJS Nodefrom 11.0 before 11.*
NodeJS Nodefrom 12.0 before 12.*
NodeJS Nodefrom 13.0 before 13.*
NodeJS Nodefrom 15.0 before 15.*
NodeJS Nodefrom 17.0 before 17.*
NodeJS Nodefrom 18.0 before 18.9.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11nodejs12.22.12~dfsg-1~deb11u3DSA-5326-1
Debian12, 13, 14nodejs18.10.0+dfsg-1DEBIAN-CVE-2022-35255
Red Hatenterprise_linux:8::appstreamnodejs, nodejs-docs, nodejs-devel and 3 more1:16.17.1-1.module+el8.6.0+16848+a483195aRHSA-2022:6964
Red Hatenterprise_linux:8::appstreamnodejs, nodejs-docs, nodejs-devel and 3 more1:18.9.1-1.module+el8.7.0+16806+4109802bRHSA-2022:7821
Red Hatenterprise_linux:8::appstreamnodejs-nodemon0:2.0.19-1.module+el8.7.0+16061+0a247725RHSA-2022:7821
Red Hatenterprise_linux:8::appstreamnodejs-nodemon0:2.0.19-2.module+el8.6.0+16240+7ca51420RHSA-2022:6964
Red Hatenterprise_linux:8::appstreamnodejs-packaging0:25-1.module+el8.5.0+10992+fac5fe06RHSA-2022:6964
Red Hatenterprise_linux:8::appstreamnodejs-packaging, nodejs-packaging-bundler0:2021.06-4.module+el8.7.0+15582+19c314faRHSA-2022:7821
Red Hatenterprise_linux:8::appstreamnpm1:8.15.0-1.16.17.1.1.module+el8.6.0+16848+a483195aRHSA-2022:6964
Red Hatenterprise_linux:8::appstreamnpm1:8.19.1-1.18.9.1.1.module+el8.7.0+16806+4109802bRHSA-2022:7821
Red Hatenterprise_linux:9::appstreamnodejs, nodejs-docs, nodejs-libs and 4 more1:16.17.1-1.el9_0RHSA-2022:6963
Red Hatenterprise_linux:9::appstreamnpm1:8.15.0-1.16.17.1.1.el9_0RHSA-2022:6963
SUSELinux Enterprise Module for Web and Scripting 12nodejs1616.17.1-8.12.1SUSE-SU-2022:3524-1
SUSELinux Enterprise Module for Web and Scripting 12nodejs1818.13.0-8.3.1SUSE-SU-2023:0408-1
SUSELinux Enterprise Module for Web and Scripting 15 SP3nodejs1616.17.1-150300.7.12.1SUSE-SU-2022:3615-1
SUSELinux Enterprise Module for Web and Scripting 15 SP4nodejs1616.17.1-150400.3.9.1SUSE-SU-2022:3656-1
SUSELinux Enterprise Module for Web and Scripting 15 SP4nodejs1818.13.0-150400.9.3.1SUSE-SU-2023:0419-1
openSUSELeap 15.3nodejs1616.17.1-150300.7.12.1SUSE-SU-2022:3615-1
openSUSELeap 15.4nodejs1616.17.1-150400.3.9.1SUSE-SU-2022:3656-1
openSUSELeap 15.4, Leap 15.5nodejs1818.13.0-150400.9.3.1SUSE-SU-2023:0419-1
openSUSETumbleweednodejs1616.17.1-1.1openSUSE-SU-2024:12370-1
openSUSETumbleweednodejs1818.10.0-1.1openSUSE-SU-2024:12376-1
AlmaLinux8nodejs, nodejs-docs, nodejs-devel and 1 more1:16.17.1-1.module_el8.6.0+3328+2e4711d7ALSA-2022:6964
AlmaLinux8nodejs, nodejs-docs, nodejs-devel and 1 more1:18.9.1-1.module_el8.7.0+3343+ea2b7901ALSA-2022:7821
AlmaLinux8nodejs-nodemon2.0.19-1.module_el8.7.0+3343+ea2b7901ALSA-2022:7821
AlmaLinux8nodejs-nodemon2.0.19-2.module_el8.6.0+3261+490666b3ALSA-2022:6964
AlmaLinux8nodejs-packaging25-1.module_el8.5.0+2605+45d748afALSA-2022:6964
AlmaLinux8nodejs-packaging, nodejs-packaging-bundler2021.06-4.module_el8.7.0+3343+ea2b7901ALSA-2022:7821
AlmaLinux8npm1:8.15.0-1.16.17.1.1.module_el8.6.0+3328+2e4711d7ALSA-2022:6964
AlmaLinux8npm1:8.19.1-1.18.9.1.1.module_el8.7.0+3343+ea2b7901ALSA-2022:7821
AlmaLinux9nodejs, nodejs-docs, nodejs-libs and 1 more1:16.17.1-1.el9_0ALSA-2022:6963
AlmaLinux9npm1:8.15.0-1.16.17.1.1.el9_0ALSA-2022:6963
Rocky Linux8nodejs1:16.17.1-1.module+el8.6.0+1046+80feca58RLSA-2022:6964
Rocky Linux8nodejs1:18.9.1-1.module+el8.7.0+1072+5b168780RLSA-2022:7821
Rocky Linux8nodejs-nodemon0:2.0.19-1.module+el8.7.0+1072+5b168780RLSA-2022:7821
Rocky Linux8nodejs-nodemon0:2.0.19-2.module+el8.6.0+1003+ae94235aRLSA-2022:6964
Rocky Linux8nodejs-nodemon0:2.0.19-2.module+el8.6.0+1046+80feca58RLSA-2022:6964
Rocky Linux8nodejs-packaging0:2021.06-4.module+el8.7.0+1072+5b168780RLSA-2022:7821
Rocky Linux8nodejs-packaging0:25-1.module+el8.5.0+702+221f14e6RLSA-2022:6964
Rocky Linux8nodejs-packaging0:25-1.module+el8.6.0+1046+80feca58RLSA-2022:6964
Rocky Linux9nodejs1:16.17.1-1.el9_0RLSA-2022:6963
Alpinev3.15, v3.16, v3.17 and 7 morenodejs16.17.1-r0ALPINE-CVE-2022-35255
Alpinev3.16, v3.17, v3.18 and 6 morenodejs-current18.9.1-r0ALPINE-CVE-2022-35255

From the distributions' data via OSV.dev: the Debian Security Tracker; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Important.

Red Hat's statement

The vulnerability was introduced in NodeJS v15.0.0, Hence, NodeJS:14 package in RHEL-8 and RHSCL-3 are not affected.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8nodejs:16-8060020221007164523.ad008a3aFixed 2022-10-17RHSA-2022:6964
Red Hat Enterprise Linux 8nodejs:18-8070020221004121421.bd1311edFixed 2022-11-08RHSA-2022:7821
Red Hat Enterprise Linux 9nodejs-1:16.17.1-1.el9_0Fixed 2022-10-18RHSA-2022:6963
Red Hat Enterprise Linux 8nodejs:14/nodejsNot affected
Red Hat Enterprise Linux 9nodejs:18/nodejsNot affected
Red Hat Software Collectionsrh-nodejs14-nodejsNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-35255.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-23-017-03Siemens SINEC INS2023-01-10MultipleSINEC INSnone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

References

Check your stackJSON