CVE-2022-35255 in the critical feed json
A weak randomness in WebCrypto keygen vulnerability exists in Node.js 18 due to a change with EntropySource() in SecretKeyGenTraits::DoKeyG…
published 3y ago modified 24d ago also BIT-node-2022-35255 , BIT-node-min-2022-35255 , EUVD-2022-38146
- cvss
- 9.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.1%
- EPSS 2.1% chance of exploitation in 30 days, percentile 81%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- bitnami node 15.14.1, 16.12.1, 16.17.1, 18.9.1
- bitnami node-min 15.14.1, 16.12.1, 16.17.1, 18.9.1
- NodeJS Node 18.9.1
- nodejs Debian 14, Debian 13, Debian 12 18.10.0+dfsg-1
debian advisories DEBIAN-CVE-2022-35255
- npm RHEL 8 1:8.19.1-1.18.9.1.1.module+el8.7.0+16806+4109802b
- nodejs RHEL 8 1:18.9.1-1.module+el8.7.0+16806+4109802b
- nodejs-nodemon RHEL 8 2.0.19-1.module+el8.7.0+16061+0a247725
- nodejs-full-i18n RHEL 8 1:18.9.1-1.module+el8.7.0+16806+4109802b
- nodejs-packaging RHEL 8 2021.06-4.module+el8.7.0+15582+19c314fa
- nodejs-packaging-bundler RHEL 8 2021.06-4.module+el8.7.0+15582+19c314fa
- nodejs RHEL 9 1:16.17.1-1.el9_0
- npm RHEL 9 1:8.15.0-1.16.17.1.1.el9_0
red hat advisories RHSA-2022:7821RHSA-2022:6963RHSA-2022:6964
- nodejs18 SLE Module for Web and Scripting 15 SP4, openSUSE Leap 15.5, openSUSE Leap 15.4 18.13.0-150400.9.3.1
- nodejs18 SLE Module for Web and Scripting 12 18.13.0-8.3.1
- nodejs16 SLE Module for Web and Scripting 15 SP4, openSUSE Leap 15.4 16.17.1-150400.3.9.1
- nodejs16 SLE Module for Web and Scripting 15 SP3, openSUSE Leap 15.3 16.17.1-150300.7.12.1
- nodejs16 SLE Module for Web and Scripting 12 16.17.1-8.12.1
suse advisories SUSE-SU-2023:0419-1SUSE-SU-2023:0408-1SUSE-SU-2022:3656-1SUSE-SU-2022:3615-1SUSE-SU-2022:3524-1
- nodejs16 openSUSE Tumbleweed 16.17.1-1.1
- nodejs18 openSUSE Tumbleweed 18.10.0-1.1
opensuse advisories openSUSE-SU-2024:12370-1openSUSE-SU-2024:12376-1
- npm AlmaLinux 8 1:8.19.1-1.18.9.1.1.module_el8.7.0+3343+ea2b7901
- nodejs AlmaLinux 8 1:18.9.1-1.module_el8.7.0+3343+ea2b7901
- nodejs-nodemon AlmaLinux 8 2.0.19-1.module_el8.7.0+3343+ea2b7901
- nodejs-full-i18n AlmaLinux 8 1:18.9.1-1.module_el8.7.0+3343+ea2b7901
- nodejs-packaging AlmaLinux 8 2021.06-4.module_el8.7.0+3343+ea2b7901
- nodejs-packaging-bundler AlmaLinux 8 2021.06-4.module_el8.7.0+3343+ea2b7901
- nodejs AlmaLinux 9 1:16.17.1-1.el9_0
- npm AlmaLinux 9 1:8.15.0-1.16.17.1.1.el9_0
almalinux advisories ALSA-2022:7821ALSA-2022:6963ALSA-2022:6964
- nodejs Rocky Linux 8 1:18.9.1-1.module+el8.7.0+1072+5b168780
- nodejs-nodemon Rocky Linux 8 2.0.19-1.module+el8.7.0+1072+5b168780
- nodejs-packaging Rocky Linux 8 2021.06-4.module+el8.7.0+1072+5b168780
- nodejs Rocky Linux 8 1:16.17.1-1.module+el8.6.0+1046+80feca58
- nodejs-nodemon Rocky Linux 8 2.0.19-2.module+el8.6.0+1046+80feca58
- nodejs-nodemon Rocky Linux 8 2.0.19-2.module+el8.6.0+1003+ae94235a
- nodejs-packaging Rocky Linux 8 25-1.module+el8.6.0+1046+80feca58
- nodejs-packaging Rocky Linux 8 25-1.module+el8.5.0+702+221f14e6
rocky linux advisories RLSA-2022:7821RLSA-2022:6964RLSA-2022:6963
- nodejs Alpine 3.24, Alpine 3.23, Alpine 3.22 +7 more 16.17.1-r0
- nodejs-current Alpine 3.24, Alpine 3.23, Alpine 3.22 +6 more 18.9.1-r0
alpine advisories ALPINE-CVE-2022-35255
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
Is CVE-2022-35255 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-35255 updated cvss 8.2
nodejs: weak randomness in WebCrypto keygen
-
Red Hat Enterprise Linux AppStream (v. 8) nodejs 18.9.1-1.module+el8.7.0+16806+4109802b, nodejs 16.17.1-1.module+el8.6.0+16848+a483195a, nodejs-packaging 25-1.module+el8.5.0+10992+fac5fe06, npm 8.19.1-1.18.9.1.1.module+el8.7.0+16806+4109802b, npm 8.15.0-1.16.17.1.1.module+el8.6.0+16848+a483195a, nodejs-nodemon 2.0.19-1.module+el8.7.0+16061+0a247725, +5 morefixed: vendor fix RHSA-2022:6964
-
Red Hat Enterprise Linux AppStream (v. 9) nodejs 16.17.1-1.el9_0, nodejs-libs 16.17.1-1.el9_0, npm 8.15.0-1.16.17.1.1.el9_0, nodejs-full-i18n 16.17.1-1.el9_0fixed: vendor fix RHSA-2022:6963
-
Red Hat Enterprise Linux 8 npm, nodejs, nodejs-libs, nodejs-nodemon, nodejs-full-i18n, nodejs-packaging, +1 more Red Hat Enterprise Linux 9 npm, nodejs, nodejs-libs, nodejs-full-i18n Red Hat Software Collections rh-nodejs14-npm, rh-nodejs14-nodejs, rh-nodejs14-nodejs-full-i18nnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
cisa ICSA-23-017-03 updated cvss 7.5
Siemens SINEC INS
-
Siemens SINEC INS <V1.0_SP2_Update_1affected: fixed in V1.0 support.industry.siemens.com
Facts from CISA's republication of the vendor's own advisory (CSAF); the linked advisory is the authoritative source. CISA notification · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- total
- Assessed
- last yr.
Exploit prediction
2.09% chance of exploitation in the next 30 days, higher than 81% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- hackerone.com https://hackerone.com/reports/1690000 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
| NVD | 3.1 | 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
| CNA | 3.1 | 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
| OSV | 3.1 | 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| bitnami | node | >=15.0.0, <15.14.1 >=16.0.0, <16.12.1 >=16.13.0, <16.17.1 >=18.0.0, <18.9.1 |
15.14.1 16.12.1 16.17.1 18.9.1 |
| bitnami | node-min | >=15.0.0, <15.14.1 >=16.0.0, <16.12.1 >=16.13.0, <16.17.1 >=18.0.0, <18.9.1 |
15.14.1 16.12.1 16.17.1 18.9.1 |
Affected products
- NodeJS Node
Classification
- Weakness
-
- CWE-338 Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)
- Technology feeds
References
-
hackerone.com
/reports/1690000
exploit, issue-tracking, third-party-advisory, advisory
-
debian.org
/security/2023/dsa-5326
vendor-advisory, third-party-advisory, advisory
-
cert-portal.siemens.com
/productcert/pdf/ssa-332410.pdf
third-party-advisory
-
security.netapp.com
/advisory/ntap-20230113-0002/
third-party-advisory, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-35255
web
Sources
- CVE List CVE-2022-35255
- NVD CVE-2022-35255
- OSV BIT-node-2022-35255
- OSV BIT-node-min-2022-35255
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.