Skip to content
Not rated

CVE-2023-30590 The generateKeys() API function returned from crypto.createDiffieHellman() only generates missing (or outdated) keys,…

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.

Affected products and versions

Product Affected versions Fixed in
Node 20.0 20.0 → < 20.3.1 20.3.1
Node 19.0 19.0 → latest No fix stated
Node 18.0 18.0 → < 18.16.1 18.16.1
Node 17.0 17.0 → latest No fix stated
Node 16.0 16.0 → < 16.20.1 16.20.1
Node 15.0 15.0 → latest No fix stated
Node 14.0 14.0 → latest No fix stated
Node 13.0 13.0 → latest No fix stated
Node 12.0 12.0 → latest No fix stated
Show the 8 other branches
Product Affected versions Fixed in
Node 11.0 11.0 → latest No fix stated
Node 10.0 10.0 → latest No fix stated
Node 9.0 9.0 → latest No fix stated
Node 8.0 8.0 → latest No fix stated
Node 7.0 7.0 → latest No fix stated
Node 6.0 6.0 → latest No fix stated
Node 5.0 5.0 → latest No fix stated
Node 4.0 4.0 → latest No fix stated
The 129 CVEs of Node →
Track this CVE