Skip to main content
← All vulnerabilities
CVE-2023-30590BIT-NODE-2023-30590BIT-NODE-MIN-2023-30590

The generateKeys() API function returned from crypto.createDiffieHellman() only generates missing (or outdated) keys, that is, it only gener

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 4.*, 5.*, 6.*, 7.*, 8.*, and 12 more
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • NodeJS Node

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

  • nodeBitnami

    From 16.0.0 · fixed in 16.20.1; From 18.0.0 · fixed in 18.16.1; From 20.0.0 · fixed in 20.3.1

  • node-minBitnami

    From 16.0.0 · fixed in 16.20.1; From 18.0.0 · fixed in 18.16.1; From 20.0.0 · fixed in 20.3.1

References 2

nodejs.org

lists.debian.org