cbcvebase.
CVE-2023-30590
published 2023-11-28

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

high7.5CVSS 3.1
AVNACLPRNUINSUCNIHAN
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

30 ranges· showing 25
VendorProductVersion rangeFixed in
debiannodejs< nodejs 18.19.0+dfsg-6~deb12u1 (bookworm)nodejs 18.19.0+dfsg-6~deb12u1 (bookworm)
nodejsnode>= 10.0 < 10.*10.*
nodejsnode>= 11.0 < 11.*11.*
nodejsnode>= 12.0 < 12.*12.*
nodejsnode>= 13.0 < 13.*13.*
nodejsnode>= 14.0 < 14.*14.*
nodejsnode>= 15.0 < 15.*15.*
nodejsnode>= 16.0 < 16.20.116.20.1
nodejsnode>= 17.0 < 17.*17.*
nodejsnode>= 18.0 < 18.16.118.16.1
nodejsnode>= 19.0 < 19.*19.*
nodejsnode>= 20.0 < 20.3.120.3.1
nodejsnode>= 4.0 < 4.*4.*
nodejsnode>= 5.0 < 5.*5.*
nodejsnode>= 6.0 < 6.*6.*
nodejsnode>= 7.0 < 7.*7.*
nodejsnode>= 8.0 < 8.*8.*
nodejsnode>= 9.0 < 9.*9.*
nodejsnode.js>= 16.0.0 < 16.20.116.20.1
nodejsnode.js>= 18.0.0 < 18.16.118.16.1
nodejsnode.js>= 20.0.0 < 20.3.120.3.1
nodejsnodejs>= 0 < 12.22.12~dfsg-1~deb11u512.22.12~dfsg-1~deb11u5
nodejsnodejs>= 0 < 18.19.0+dfsg-6~deb12u118.19.0+dfsg-6~deb12u1
nodejsnodejs>= 0 < 18.13.0+dfsg1-1.118.13.0+dfsg1-1.1
nodejsnodejs>= 0 < 18.13.0+dfsg1-1.118.13.0+dfsg1-1.1

CVSS provenance

nvdv3.17.5HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
osv7.5HIGH