ADVISORIES

Ubuntu CVE Tracker

UBUNTU-CVE-2023-30590

Details

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 packages

EcosystemPackageAffected versions
Ubuntu:Pro:14.04:LTSnodejs
All versions before 0.10.25~dfsg2-2ubuntu1.2+esm2 (fixed in 0.10.25~dfsg2-2ubuntu1.2+esm2)
Ubuntu:Pro:16.04:LTSnodejs
All versions before 4.2.6~dfsg-1ubuntu4.2+esm3 (fixed in 4.2.6~dfsg-1ubuntu4.2+esm3)
Ubuntu:Pro:18.04:LTSnodejs
All versions before 8.10.0~dfsg-2ubuntu0.4+esm5 (fixed in 8.10.0~dfsg-2ubuntu0.4+esm5)
Ubuntu:20.04:LTSnodejs
All versions before 10.19.0~dfsg-3ubuntu1.6 (fixed in 10.19.0~dfsg-3ubuntu1.6)
Ubuntu:22.04:LTSnodejs
All versions before 12.22.9~dfsg-1ubuntu3.5 (fixed in 12.22.9~dfsg-1ubuntu3.5)

References