---
title: "CVE-2022-35255\n    | Ubuntu"
description: Ubuntu is an open source software operating system that runs from the
  desktop, to the cloud, to all your internet connected things.
url: https://ubuntu.com/security/CVE-2022-35255?format=md
keywords: index, follow
---

# CVE-2022-35255

Publication date 5 December 2022

Last updated 25 August 2025

---

Ubuntu priority

**Medium**

[Why this priority?](https://ubuntu.com/security/cves/about#priority )

## Cvss 3 Severity Score

**9.1 · Critical**

[Score breakdown](https://ubuntu.com/security/CVE-2022-35255?format=md#impact-score)

Toggle side navigation

## 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.

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| nodejs | 23.10 mantic | Not affected |
| 23.04 lunar | Not affected |
| 22.10 kinetic | Ignored end of life, was needs-triage |
| 22.04 LTS jammy | Not affected |
| 20.04 LTS focal | Not affected |
| 18.04 LTS bionic | Not affected |
| 16.04 LTS xenial | Not affected |
| 14.04 LTS trusty | Not affected |

---

* [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)
* [What do statuses mean?](https://ubuntu.com/security/cves/about#statuses)
* [Patch details](https://ubuntu.com/security/CVE-2022-35255?format=md#patch-details)

### Patch details

For informational purposes only. We recommend not to cherry-pick updates. [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)

| Package | Patch details |
| --- | --- |
| nodejs | * Upstream:   [0c2a572](https://github.com/nodejs/node/commit/0c2a5723beff39d1f62daec96b5389da3d427e79) |

## Severity score breakdown

CVSS version:
CVSS v3.0

**Base score**

9.1 · Critical

* Base metrics

  | Parameter | Value |
  | --- | --- |
  | Attack vector | Network |
  | Attack complexity | Low |
  | Privileges required | None |
  | User interaction | None |
  | Scope | Unchanged |
  | Confidentiality impact | High |
  | Integrity impact | High |
  | Availability impact | None |
* Scores

  | Parameter | Value |
  | --- | --- |
  | Base score | 9.1 · Critical |
  | Exploitability score | - |
  | Impact score | - |

**Vector:** CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

## References

* [MITRE](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-35255)
* [NVD](https://nvd.nist.gov/vuln/detail/CVE-2022-35255)
* [Launchpad](https://launchpad.net/bugs/cve/CVE-2022-35255)
* [Debian](https://security-tracker.debian.org/tracker/CVE-2022-35255)

### Other references

* <https://nodejs.org/en/blog/vulnerability/september-2022-security-releases/#weak-randomness-in-webcrypto-keygen-high-cve-2022-35255>
* <https://www.cve.org/CVERecord?id=CVE-2022-35255>
