VDB

CVE-2023-30590

CVE-2023-30590 PUBLISHED

Reported by hackerone · Published November 28, 2023

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
nodejs-20Wolfi20.3.1-r0
nodejs-20Chainguard20.3.1-r0
nodejs-develAmazon Linux1:18.12.1-1.amzn2023.0.7
nodejs-packagingerrata.rockylinux.org0:2021.06-4.module+el9.7.0+40022+9ecc286c.src, 0:2021.06-4.module+el9.7.0+40022+9ecc286c.noarch
nodejs-libsAmazon Linux1:18.12.1-1.amzn2023.0.7
nodejs-18Wolfi18.16.1-r0
node-minBitnami20.3.1, 18.16.1, 16.20.1
nodejs-16Wolfi16.20.1-r0
v8-develAmazon Linux2:10.2.154.15-1.18.12.1.1.amzn2023.0.7
nodejs-18Chainguard18.16.1-r0
nodejsAmazon Linux1:18.12.1-1.amzn2023.0.7
nodejs-packaging-bundlererrata.rockylinux.org0:2021.06-4.module+el9.7.0+40022+9ecc286c.noarch

14 more packages have a fixed version. See every fix in Lookup.

Affected products

VendorProductVersions
NodeJSNode4.0, 5.0, 6.0
wolfinodejs-200
chainguardnodejs-200
amazon:2023nodejs-devel0
amazon:2023nodejs-libs0
wolfinodejs-180
wolfinodejs-160
amazon:2023v8-devel0
chainguardnodejs-180
amazon:2023nodejs0
amazon:2023nodejs-full-i18n0
amazon:2023nodejs-docs0
chainguardnodejs-160
NodeJSNode17.0, 18.0, 19.0
amazon:2023npm0

Timeline

  • Jun 30, 2023 PoC Published (2 in total, the first dated here)
  • Nov 28, 2023 CVE Published
  • Nov 29, 2023 EPSS Score (30 in total, the first dated here)
  • Jun 2, 2026 Security Advisory (10 in total, the first dated here)
  • Nov 12, 2026 Distribution Patch (8 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2023-30590
vulnetix vdb fixes CVE-2023-30590

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-30590/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›