CVE-2023-30590

Advisory lineage Upstream: 0 Downstream: 22
Modified
Published: 28 Nov 2023, 19:15
Last modified:04 Nov 2025, 16:10

Vulnerability Summary

Overall Risk (default)
medium
30/100
CVSS Score
7.5 HIGH
v3.1 (nvd)
EPSS Score
0.95% LOW
1% probability +0.08%
KEV
Not listed
Ransomware
No reports
Public exploits
None found
Dark Web
Not detected

Timeline

28 Nov 2023, 19:15
Published
Vulnerability first disclosed
04 Nov 2025, 16:10
Last Modified
Vulnerability information updated

Description

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.

CVSS Metrics

  • v3.1HIGHScore: 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

EPSS Trends

Current EPSS score: 0.95% Percentile: 77%

Affected Systems

  • nodejsnode

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

  • nodejsnode.js

    ≥ 18.0.0, < 18.16.1 | ≥ 20.0.0, < 20.3.1 | ≥ 16.0.0, < 16.20.1

References (4)