Vulnerabilities · 2023 · Nodejs
CVE-2023-30590
Nodejs Node.js vulnerability
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
Node.js. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Nodejs Node.js runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- nodejs.org/en/blog/vulnerability/june-2023-security-releases · Vendor Advisory
- lists.debian.org/debian-lts-announce/2024/03/msg00029.html
- lists.debian.org/debian-lts-announce/2024/09/msg00029.html
- security.netapp.com/advisory/ntap-20241101-0011/
- nvd.nist.gov/vuln/detail/CVE-2023-30590
- cve.org/CVERecord?id=CVE-2023-30590
More vulnerabilities in Nodejs products
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.