PT-2022-22662 · Node.Js+6 · Node.Js+6

Bnoordhuis

·

Published

2022-09-23

·

Updated

2026-05-18

·

CVE-2022-35255

CVSS v3.1

9.1

Critical

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Name of the Vulnerable Software and Affected Versions Node.js version 18
Description A weak randomness issue exists in the WebCrypto keygen due to a change with EntropySource() in SecretKeyGenTraits::DoKeyGen() in src/crypto/crypto keygen.cc. There are two main problems:
  1. The return value of EntropySource() is not checked, assuming it always succeeds, but it can fail.
  2. The random data returned by EntropySource() may not be cryptographically strong, making it unsuitable as keying material.
Recommendations For Node.js version 18, consider disabling the use of WebCrypto keygen until a patch is available to address the weak randomness issue. Restrict access to the affected EntropySource() function to minimize the risk of exploitation. Avoid using the SecretKeyGenTraits::DoKeyGen() function in src/crypto/crypto keygen.cc until the issue is resolved.

Exploit

Fix

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

ALSA-2022:6963
ALSA-2022:6964
ALSA-2022:7821
ALT-PU-2022-2701
ALT-PU-2022-3073
ALT-PU-2023-1461
BIT-NODE-2022-35255
BIT-NODE-MIN-2022-35255
CESA-2022_6964
CESA-2022_7821
CLEANSTART-2026-BD71263
CLEANSTART-2026-IS74202
CLEANSTART-2026-JR35772
CLEANSTART-2026-JY06700
CLEANSTART-2026-KN34553
CLEANSTART-2026-KZ45320
CLEANSTART-2026-LJ44720
CLEANSTART-2026-LN12820
CLEANSTART-2026-TX00223
CLEANSTART-2026-WI75198
CVE-2022-35255
DSA-5326-1
OPENSUSE-SU-2022_3615-1
OPENSUSE-SU-2022_3656-1
OPENSUSE-SU-2023_0419-1
OPENSUSE-SU-2024:12370-1
OPENSUSE-SU-2024:12376-1
RHSA-2022:6963
RHSA-2022:6964
RHSA-2022:7821
RHSA-2022_6963
RHSA-2022_6964
RHSA-2022_7821
RLSA-2022:6963
RLSA-2022:6964
RLSA-2022:7821
SUSE-SU-2022:3524-1
SUSE-SU-2022:3615-1
SUSE-SU-2022:3656-1
SUSE-SU-2023:0408-1
SUSE-SU-2023:0419-1

Affected Products

Alt Linux
Almalinux
Centos
Node.Js
Red Hat
Rocky Linux
Suse