Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) Affecting nodejs-packaging package, versions <0:2021.06-4.module+el8.7.0+20766+0a247725


Severity

Recommended
high

Based on Oracle Linux security rating

    Threat Intelligence

    EPSS
    0.18% (57th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-ORACLE8-NODEJSPACKAGING-3051695
  • published 18 Oct 2022
  • disclosed 5 Dec 2022

How to fix?

Upgrade Oracle:8 nodejs-packaging to version 0:2021.06-4.module+el8.7.0+20766+0a247725 or higher.
This issue was patched in ELSA-2022-7821.

NVD Description

Note: Versions mentioned in the description apply only to the upstream nodejs-packaging package and not the nodejs-packaging package as distributed by Oracle. See How to fix? for Oracle:8 relevant fixed versions and status.

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.

CVSS Scores

version 3.1
Expand this section

NVD

9.1 critical
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    None
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    High
  • Integrity (I)
    High
  • Availability (A)
    None
Expand this section

SUSE

8.2 high
Expand this section

Red Hat

8.2 high