The generateKeys() API function returned from crypto.createDiffieHellman() only generates missing (or outdated) keys, that is, it only gener
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 4.*, 5.*, 6.*, 7.*, 8.*, and 12 more
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- 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
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: yes · Technical impact: partial
- 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