cve.bz

CVE-2023-30590 nodejs node.js

7.5 highEPSS 1.5%

High (7.5) in nodejs node.js. EPSS 1.5% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
EPSS
1.5% (unchanged from 1.5% a week ago; 1.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 74th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2026-10-08. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-30590 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-30590?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-30590?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-30590 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2023-30590

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2023-30590](https://cve.bz/cve/badge/CVE-2023-30590.svg)](https://cve.bz/cve/CVE-2023-30590)

HTML:

<a href="https://cve.bz/cve/CVE-2023-30590"><img src="https://cve.bz/cve/badge/CVE-2023-30590.svg" alt="CVE-2023-30590"></a>

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
NodeJS Nodefrom 4.0 before 4.*
NodeJS Nodefrom 5.0 before 5.*
NodeJS Nodefrom 6.0 before 6.*
NodeJS Nodefrom 7.0 before 7.*
NodeJS Nodefrom 8.0 before 8.*
NodeJS Nodefrom 9.0 before 9.*
NodeJS Nodefrom 10.0 before 10.*
NodeJS Nodefrom 11.0 before 11.*
NodeJS Nodefrom 12.0 before 12.*
NodeJS Nodefrom 13.0 before 13.*
NodeJS Nodefrom 14.0 before 14.*
NodeJS Nodefrom 15.0 before 15.*
NodeJS Nodefrom 16.0 before 16.20.1
NodeJS Nodefrom 17.0 before 17.*
NodeJS Nodefrom 18.0 before 18.16.1
NodeJS Nodefrom 19.0 before 19.*
NodeJS Nodefrom 20.0 before 20.3.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10nodejs10.24.0~dfsg-1~deb10u4DLA-3776-1
Debian11nodejs12.22.12~dfsg-1~deb11u5DLA-3886-1
Debian12nodejs18.19.0+dfsg-6~deb12u1DEBIAN-CVE-2023-30590 DSA-5589-1
Debian13, 14nodejs18.13.0+dfsg1-1.1DEBIAN-CVE-2023-30590
Ubuntu20.04:LTSnodejs10.19.0~dfsg-3ubuntu1.6UBUNTU-CVE-2023-30590 USN-6735-1
Ubuntu22.04:LTSnodejs12.22.9~dfsg-1ubuntu3.5UBUNTU-CVE-2023-30590 USN-6735-1
UbuntuPro:14.04:LTSnodejs0.10.25~dfsg2-2ubuntu1.2+esm2UBUNTU-CVE-2023-30590 USN-6735-1
UbuntuPro:16.04:LTSnodejs4.2.6~dfsg-1ubuntu4.2+esm3UBUNTU-CVE-2023-30590 USN-6735-1
UbuntuPro:18.04:LTSnodejs8.10.0~dfsg-2ubuntu0.4+esm5UBUNTU-CVE-2023-30590 USN-6735-1
Red Hatenterprise_linux:8::appstreamnodejs, nodejs-docs, nodejs-devel and 3 more1:16.20.1-1.module+el8.8.0+19440+ee8dbee5RHSA-2023:4537
Red Hatenterprise_linux:8::appstreamnodejs, nodejs-docs, nodejs-devel and 3 more1:18.16.1-1.module+el8.8.0+19438+94e84959RHSA-2023:4536
Red Hatenterprise_linux:8::appstreamnodejs-nodemon0:2.0.20-2.module+el8.8.0+18432+27f188acRHSA-2023:4536
Red Hatenterprise_linux:8::appstreamnodejs-nodemon0:2.0.20-3.module+el8.8.0+19038+6f60344fRHSA-2023:4537
Red Hatenterprise_linux:8::appstreamnodejs-packaging0:25-1.module+el8.5.0+10992+fac5fe06RHSA-2023:4537
Red Hatenterprise_linux:8::appstreamnodejs-packaging, nodejs-packaging-bundler0:2021.06-4.module+el8.7.0+15582+19c314faRHSA-2023:4536
Red Hatenterprise_linux:8::appstreamnpm1:8.19.4-1.16.20.1.1.module+el8.8.0+19440+ee8dbee5RHSA-2023:4537
Red Hatenterprise_linux:8::appstreamnpm1:9.5.1-1.18.16.1.1.module+el8.8.0+19438+94e84959RHSA-2023:4536
Red Hatenterprise_linux:9::appstreamnodejs, nodejs-docs, nodejs-devel and 3 more1:18.16.1-1.module+el9.2.0.z+19424+78951f07RHSA-2023:4330
Red Hatenterprise_linux:9::appstreamnodejs, nodejs-docs, nodejs-libs and 4 more1:16.20.1-1.el9_2RHSA-2023:4331
Red Hatenterprise_linux:9::appstreamnodejs-nodemon0:2.0.20-2.module+el9.2.0.z+18497+a402347cRHSA-2023:4330
Red Hatenterprise_linux:9::appstreamnodejs-packaging, nodejs-packaging-bundler0:2021.06-4.module+el9.1.0+15718+e52ec601RHSA-2023:4330
8 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 7, Enterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP2-LTSS and 7 morenodejs1212.22.12-150200.4.50.1SUSE-SU-2023:3455-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP2-LTSS, Linux Enterprise High Performance Computing 15 SP3-ESPOS and 6 morenodejs1414.21.3-150200.15.49.1SUSE-SU-2023:3408-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-ESPOS, Linux Enterprise High Performance Computing 15 SP3-LTSS and 3 morenodejs1616.20.1-150300.7.24.2SUSE-SU-2023:2861-1
SUSELinux Enterprise Module for Web and Scripting 12nodejs1414.21.3-6.46.1SUSE-SU-2023:3306-1
SUSELinux Enterprise Module for Web and Scripting 12nodejs1616.20.1-8.30.1SUSE-SU-2023:2655-1
SUSELinux Enterprise Module for Web and Scripting 12nodejs1818.16.1-8.9.1SUSE-SU-2023:2662-1
SUSELinux Enterprise Module for Web and Scripting 15 SP4nodejs1616.20.1-150400.3.21.1SUSE-SU-2023:2663-1
SUSELinux Enterprise Module for Web and Scripting 15 SP4, Linux Enterprise Module for Web and Scripting 15 SP5nodejs1818.16.1-150400.9.9.1SUSE-SU-2023:2669-1
openSUSELeap 15.4nodejs1212.22.12-150200.4.50.1SUSE-SU-2023:3455-1
openSUSELeap 15.4nodejs1414.21.3-150200.15.49.1SUSE-SU-2023:3408-1
openSUSELeap 15.4nodejs1616.20.1-150400.3.21.1SUSE-SU-2023:2663-1
openSUSELeap 15.4, Leap 15.5nodejs1818.16.1-150400.9.9.1SUSE-SU-2023:2669-1
openSUSETumbleweednodejs2020.3.1-1.1openSUSE-SU-2024:13021-1
AlmaLinux8nodejs, nodejs-docs, nodejs-devel and 1 more1:16.20.1-1.module_el8.8.0+3594+e74fe53fALSA-2023:4537
AlmaLinux8nodejs, nodejs-docs, nodejs-devel and 1 more1:18.16.1-1.module_el8.8.0+3595+0818e803ALSA-2023:4536
AlmaLinux8nodejs-nodemon2.0.20-2.module_el8.8.0+3587+ee652244ALSA-2023:4536
AlmaLinux8nodejs-nodemon2.0.20-3.module_el8.8.0+3586+d4fc0b72ALSA-2023:4537
AlmaLinux8nodejs-packaging25-1.module_el8.5.0+2605+45d748afALSA-2023:4537
AlmaLinux8nodejs-packaging, nodejs-packaging-bundler2021.06-4.module_el8.7.0+3343+ea2b7901ALSA-2023:4536
AlmaLinux8npm1:8.19.4-1.16.20.1.1.module_el8.8.0+3594+e74fe53fALSA-2023:4537
AlmaLinux8npm1:9.5.1-1.18.16.1.1.module_el8.8.0+3595+0818e803ALSA-2023:4536
AlmaLinux9nodejs, nodejs-docs, nodejs-devel and 1 more1:18.16.1-1.module_el9.2.0+31+cbae0c8eALSA-2023:4330
AlmaLinux9nodejs, nodejs-docs, nodejs-libs and 1 more1:16.20.1-1.el9_2ALSA-2023:4331
AlmaLinux9nodejs-nodemon2.0.20-2.module_el9.2.0+29+de583a0bALSA-2023:4330
AlmaLinux9nodejs-packaging, nodejs-packaging-bundler2021.06-4.module_el9.1.0+13+d9a595eaALSA-2023:4330
2 more for AlmaLinux in the JSON.
Rocky Linux8nodejs1:18.16.1-1.module+el8.8.0+1413+a47876c7RLSA-2023:4536
Rocky Linux8nodejs-nodemon0:2.0.20-2.module+el8.7.0+1177+510ae886RLSA-2023:4536
Rocky Linux8nodejs-nodemon0:2.0.20-3.module+el8.7.0+1178+d52dba78RLSA-2023:4537
Rocky Linux8nodejs-packaging0:2021.06-4.module+el8.7.0+1072+5b168780RLSA-2023:4536
Rocky Linux8nodejs-packaging0:25-1.module+el8.7.0+1108+49363b0dRLSA-2023:4537
Rocky Linux9nodejs-packaging0:2021.06-4.module+el9.7.0+40022+9ecc286cRLSA-2023:4330

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

The generateKeys() API function returned from crypto.createDiffieHellman() in Node.js does not behave as documented as the documentation states that the function “generates private and public Diffie-Hellman key values.” However, the actual implementation only generates a private key if one has not yet been set, and does not recompute or regenerate the public key if the private key was previously defined using setPrivateKey(), which is why this could only in theory, result in weak or predictable shared secrets. The issue at hand is a developer facing hazard caused by a mismatch in the documentation and application of the function, and is not in itself a security vulnerability, which is why Redhat has assessed this as moderate.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8nodejs:18-8080020230718130356.63b34585Fixed 2023-08-08RHSA-2023:4536
Red Hat Enterprise Linux 8nodejs:16-8080020230718141521.63b34585Fixed 2023-08-08RHSA-2023:4537
Red Hat Enterprise Linux 8.6 Extended Update Supportnodejs:16-8060020230906023909.ad008a3aFixed 2023-09-26RHSA-2023:5361
Red Hat Enterprise Linux 9nodejs:18-9020020230717125503.rhel9Fixed 2023-07-31RHSA-2023:4330
Red Hat Enterprise Linux 9nodejs-1:16.20.1-1.el9_2Fixed 2023-07-31RHSA-2023:4331
Red Hat Enterprise Linux 9.0 Extended Update Supportnodejs-1:16.20.2-1.el9_0Fixed 2023-10-09RHSA-2023:5533
Red Hat Enterprise Linux 8nodejs:14/nodejsWill not fix
Red Hat Software Collectionsrh-nodejs14-nodejsWill not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2023-30590.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-24-046-15Siemens SINEC NMS2024-02-13MultipleSINEC NMSnone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

References

Check your stackJSON