# CVE-2023-30590: The generateKeys() API function returned from crypto.createDiffieHellman() only generates missing (or outdated) keys, that is, it only gene…

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.46%, higher than 74% of CVEs (2026-12-01)
- Published: 2023-11-28T19:15:19.447Z
- Modified: 2026-10-08T22:17:24.300Z
- Also known as: BIT-NODE-2023-30590, BIT-NODE-MIN-2023-30590
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: hackerone

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

(As written by CVE List.)

## Affected

- NodeJS Node: from 4.0 before 4.*; from 5.0 before 5.*; from 6.0 before 6.*; from 7.0 before 7.*; from 8.0 before 8.*; from 9.0 before 9.*; from 10.0 before 10.*; from 11.0 before 11.*; from 12.0 before 12.*; from 13.0 before 13.*; from 14.0 before 14.*; from 15.0 before 15.*; and 5 more
- nodejs node.js: from 16.0.0 before 16.20.1; from 18.0.0 before 18.16.1; from 20.0.0 before 20.3.1
- node (Bitnami): from 16.0.0 before 16.20.1; from 18.0.0 before 18.16.1; from 20.0.0 before 20.3.1
- node-min (Bitnami): from 16.0.0 before 16.20.1; from 18.0.0 before 18.16.1; from 20.0.0 before 20.3.1

## Every score

- NVD: 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`
- Bitnami Vulnerability Database: rating High

## References

- <https://nodejs.org/en/blog/vulnerability/june-2023-security-releases> (advisory, vendor-advisory)
- <https://lists.debian.org/debian-lts-announce/2024/03/msg00029.html> (web)
- <https://security.netapp.com/advisory/ntap-20241101-0011/> (web)
- <https://lists.debian.org/debian-lts-announce/2024/09/msg00029.html> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-30590> (web)

## Sources

- CVE List: [CVE-2023-30590](https://www.cve.org/CVERecord?id=CVE-2023-30590), CVE Terms of Use, modified 2026-10-08
- NVD: [CVE-2023-30590](https://nvd.nist.gov/vuln/detail/CVE-2023-30590), Public domain, modified 2026-10-08
- Bitnami Vulnerability Database: [BIT-NODE-2023-30590](https://osv.dev/vulnerability/BIT-NODE-2023-30590), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-NODE-MIN-2023-30590](https://osv.dev/vulnerability/BIT-NODE-MIN-2023-30590), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2023-30590 · Whole record: https://cve.day/CVE-2023-30590.json · Rebuilt by cve.day 2026-11-25T22:58:30.772Z
