CVE Vulnerabilities

CVE-2023-30590

Published: Nov 28, 2023 | Modified: Nov 04, 2025
CVSS 3.x
7.5
HIGH
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
CVSS 2.x
RedHat/V2
RedHat/V3
7.5 MODERATE
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

The generateKeys() API function returned from crypto.createDiffieHellman() only generates missing (or outdated) keys, that is, it only generates a private key if none has been set yet, but the function is also needed to compute the corresponding public key after calling setPrivateKey(). However, the documentation says this API call: Generates private and public Diffie-Hellman key values.

The documented behavior is very different from the actual behavior, and this difference could easily lead to security issues in applications that use these APIs as the DiffieHellman may be used as the basis for application-level security, implications are consequently broad.

Affected Software

NameVendorStart VersionEnd Version
Node.jsNodejs16.0.0 (including)16.20.1 (excluding)
Node.jsNodejs18.0.0 (including)18.16.1 (excluding)
Node.jsNodejs20.0.0 (including)20.3.1 (excluding)
Red Hat Enterprise Linux 8RedHatnodejs:18-8080020230718130356.63b34585*
Red Hat Enterprise Linux 8RedHatnodejs:16-8080020230718141521.63b34585*
Red Hat Enterprise Linux 8.6 Extended Update SupportRedHatnodejs:16-8060020230906023909.ad008a3a*
Red Hat Enterprise Linux 9RedHatnodejs:18-9020020230717125503.rhel9*
Red Hat Enterprise Linux 9RedHatnodejs-1:16.20.1-1.el9_2*
Red Hat Enterprise Linux 9.0 Extended Update SupportRedHatnodejs-1:16.20.2-1.el9_0*
NodejsUbuntubionic*
NodejsUbuntuesm-apps/bionic*
NodejsUbuntuesm-apps/focal*
NodejsUbuntuesm-apps/jammy*
NodejsUbuntuesm-apps/xenial*
NodejsUbuntuesm-infra-legacy/trusty*
NodejsUbuntufocal*
NodejsUbuntujammy*
NodejsUbuntukinetic*
NodejsUbuntulunar*
NodejsUbuntumantic*
NodejsUbuntutrusty*
NodejsUbuntutrusty/esm*
NodejsUbuntuxenial*

References