CVE-2022-35255 Weak cryptography in Node

Critical 9.1 Published Updated

Weak randomness in Node.js WebCrypto keygen allows attackers to predict cryptographic keys, compromising security.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2022-35255?

CVE-2022-35255 is a critical vulnerability in Debian Debian Linux, published on 5 Dec 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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.

Weakness: CWE-338

Which versions are affected by CVE-2022-35255?

2 open source packages ship an affected version, including node and node-min. It affects 3 products.

PackageAffectedFixed in
node BitnamiFrom 15.0.015.14.1, 16.12.1, 16.17.1, 18.9.1
node-min BitnamiFrom 15.0.015.14.1, 16.12.1, 16.17.1, 18.9.1

Products include Debian Debian Linux, Nodejs Node.js, Siemens Sinec Ins.

How do I fix CVE-2022-35255?

Upgrade node to a fixed version for your release line: 15.14.1, 16.12.1, 16.17.1 or 18.9.1.

Is CVE-2022-35255 being exploited?

There is no known exploitation of CVE-2022-35255 in the wild and no public exploit code.

All Debian Debian Linux vulnerabilities

Sources

Also known as ALPINE-CVE-2022-35255, BIT-node-2022-35255, BIT-node-min-2022-35255, CLEANSTART-2026-DB79220, CLEANSTART-2026-IM09433, DEBIAN-CVE-2022-35255 and 1 more.

Is CVE-2022-35255 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free