CVEfocus › CVE database › CVE-2022-35255

CVE-2022-35255

CVSS 9.1 CriticalEPSS 2.1% (higher than 82% of CVEs)Published 2022-12-05Updated 2025-04-30Assigner: hackerone

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.

CWE-338

What to do

Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

52Fixed
1Fix pending
3Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 16.04nodejsFix pending
Debian 14nodejsFixed18.10.0+dfsg-1DEBIAN-CVE-2022-35255
Debian 13nodejsFixed18.10.0+dfsg-1DEBIAN-CVE-2022-35255
Debian 12nodejsFixed18.10.0+dfsg-1DEBIAN-CVE-2022-35255
Red Hat Enterprise Linux 9nodejsFixed1:16.17.1-1.el9_0RHSA-2022:6963
Red Hat Enterprise Linux 9nodejs-docsFixed1:16.17.1-1.el9_0RHSA-2022:6963
Red Hat Enterprise Linux 9nodejs-full-i18nFixed1:16.17.1-1.el9_0RHSA-2022:6963
Red Hat Enterprise Linux 9nodejs-libsFixed1:16.17.1-1.el9_0RHSA-2022:6963
Red Hat Enterprise Linux 9npmFixed1:8.15.0-1.16.17.1.1.el9_0RHSA-2022:6963
Red Hat Enterprise Linux 8nodejsFixed1:18.9.1-1.module+el8.7.0+16806+4109802bRHSA-2022:6964
Red Hat Enterprise Linux 8nodejs-develFixed1:16.17.1-1.module+el8.6.0+16848+a483195aRHSA-2022:7821
Red Hat Enterprise Linux 8nodejs-docsFixed1:18.9.1-1.module+el8.7.0+16806+4109802bRHSA-2022:6964
Red Hat Enterprise Linux 8nodejs-full-i18nFixed1:18.9.1-1.module+el8.7.0+16806+4109802bRHSA-2022:6964
Red Hat Enterprise Linux 8nodejs-libsNot affected
Red Hat Enterprise Linux 8nodejs-nodemonFixed0:2.0.19-1.module+el8.7.0+16061+0a247725RHSA-2022:6964
Red Hat Enterprise Linux 8nodejs-packagingFixed0:25-1.module+el8.5.0+10992+fac5fe06RHSA-2022:7821
Red Hat Enterprise Linux 8nodejs-packaging-bundlerFixed0:2021.06-4.module+el8.7.0+15582+19c314faRHSA-2022:7821
Red Hat Enterprise Linux 8npmFixed1:8.19.1-1.18.9.1.1.module+el8.7.0+16806+4109802bRHSA-2022:6964
Red Hat Enterprise Linux 8v8-12.4-develNot affected
Red Hat Enterprise Linux 8v8-13.6-develNot affected
AlmaLinux 9nodejsFixed1:16.17.1-1.el9_0ALSA-2022:6963
AlmaLinux 9nodejs-docsFixed1:16.17.1-1.el9_0ALSA-2022:6963
AlmaLinux 9nodejs-full-i18nFixed1:16.17.1-1.el9_0ALSA-2022:6963
AlmaLinux 9nodejs-libsFixed1:16.17.1-1.el9_0ALSA-2022:6963
AlmaLinux 9npmFixed1:8.15.0-1.16.17.1.1.el9_0ALSA-2022:6963
AlmaLinux 8nodejsFixed1:16.17.1-1.module_el8.6.0+3328+2e4711d7ALSA-2022:7821
AlmaLinux 8nodejs-develFixed1:18.9.1-1.module_el8.7.0+3343+ea2b7901ALSA-2022:6964
AlmaLinux 8nodejs-docsFixed1:18.9.1-1.module_el8.7.0+3343+ea2b7901ALSA-2022:6964
AlmaLinux 8nodejs-full-i18nFixed1:16.17.1-1.module_el8.6.0+3328+2e4711d7ALSA-2022:7821
AlmaLinux 8nodejs-nodemonFixed2.0.19-2.module_el8.6.0+3261+490666b3ALSA-2022:7821
AlmaLinux 8nodejs-packagingFixed25-1.module_el8.5.0+2605+45d748afALSA-2022:7821
AlmaLinux 8nodejs-packaging-bundlerFixed2021.06-4.module_el8.7.0+3343+ea2b7901ALSA-2022:7821
AlmaLinux 8npmFixed1:8.15.0-1.16.17.1.1.module_el8.6.0+3328+2e4711d7ALSA-2022:7821
Rocky Linux 9nodejsFixed1:16.17.1-1.el9_0RLSA-2022:6963
Rocky Linux 8nodejsFixed1:16.17.1-1.module+el8.6.0+1046+80feca58RLSA-2022:7821
Rocky Linux 8nodejs-nodemonFixed0:2.0.19-2.module+el8.6.0+1003+ae94235aRLSA-2022:6964
Rocky Linux 8nodejs-packagingFixed0:2021.06-4.module+el8.7.0+1072+5b168780RLSA-2022:6964
Alpine Linux 3.24nodejsFixed16.17.1-r0ALPINE-CVE-2022-35255
Alpine Linux 3.24nodejs-currentFixed18.9.1-r0ALPINE-CVE-2022-35255
Alpine Linux 3.23nodejsFixed16.17.1-r0ALPINE-CVE-2022-35255
Alpine Linux 3.23nodejs-currentFixed18.9.1-r0ALPINE-CVE-2022-35255
Alpine Linux 3.22nodejsFixed16.17.1-r0ALPINE-CVE-2022-35255
Alpine Linux 3.22nodejs-currentFixed18.9.1-r0ALPINE-CVE-2022-35255
Alpine Linux 3.21nodejsFixed16.17.1-r0ALPINE-CVE-2022-35255
Alpine Linux 3.21nodejs-currentFixed18.9.1-r0ALPINE-CVE-2022-35255
Alpine Linux 3.20nodejsFixed16.17.1-r0ALPINE-CVE-2022-35255
Alpine Linux 3.20nodejs-currentFixed18.9.1-r0ALPINE-CVE-2022-35255
Alpine Linux 3.19nodejsFixed16.17.1-r0ALPINE-CVE-2022-35255
Alpine Linux 3.19nodejs-currentFixed18.9.1-r0ALPINE-CVE-2022-35255
Alpine Linux 3.18nodejsFixed16.17.1-r0ALPINE-CVE-2022-35255
Alpine Linux 3.18nodejs-currentFixed18.9.1-r0ALPINE-CVE-2022-35255
Alpine Linux 3.17nodejsFixed16.17.1-r0ALPINE-CVE-2022-35255
Alpine Linux 3.17nodejs-currentFixed18.9.1-r0ALPINE-CVE-2022-35255
Alpine Linux 3.16nodejsFixed16.17.1-r0ALPINE-CVE-2022-35255
Alpine Linux 3.16nodejs-currentFixed18.9.1-r0ALPINE-CVE-2022-35255
Alpine Linux 3.15nodejsFixed16.17.1-r0ALPINE-CVE-2022-35255

What the vendor says

As published in the CVE record by hackerone, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.