CVE-2023-30590
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| nodejs-20 | Wolfi | 20.3.1-r0 |
| nodejs-20 | Chainguard | 20.3.1-r0 |
| nodejs-devel | Amazon Linux | 1:18.12.1-1.amzn2023.0.7 |
| nodejs-packaging | errata.rockylinux.org | 0:2021.06-4.module+el9.7.0+40022+9ecc286c.src, 0:2021.06-4.module+el9.7.0+40022+9ecc286c.noarch |
| nodejs-libs | Amazon Linux | 1:18.12.1-1.amzn2023.0.7 |
| nodejs-18 | Wolfi | 18.16.1-r0 |
| node-min | Bitnami | 20.3.1, 18.16.1, 16.20.1 |
| nodejs-16 | Wolfi | 16.20.1-r0 |
| v8-devel | Amazon Linux | 2:10.2.154.15-1.18.12.1.1.amzn2023.0.7 |
| nodejs-18 | Chainguard | 18.16.1-r0 |
| nodejs | Amazon Linux | 1:18.12.1-1.amzn2023.0.7 |
| nodejs-packaging-bundler | errata.rockylinux.org | 0:2021.06-4.module+el9.7.0+40022+9ecc286c.noarch |
14 more packages have a fixed version. See every fix in Lookup.
Affected products
| Vendor | Product | Versions |
|---|---|---|
| NodeJS | Node | 4.0, 5.0, 6.0 |
| wolfi | nodejs-20 | 0 |
| chainguard | nodejs-20 | 0 |
| amazon:2023 | nodejs-devel | 0 |
| amazon:2023 | nodejs-libs | 0 |
| wolfi | nodejs-18 | 0 |
| wolfi | nodejs-16 | 0 |
| amazon:2023 | v8-devel | 0 |
| chainguard | nodejs-18 | 0 |
| amazon:2023 | nodejs | 0 |
| amazon:2023 | nodejs-full-i18n | 0 |
| amazon:2023 | nodejs-docs | 0 |
| chainguard | nodejs-16 | 0 |
| NodeJS | Node | 17.0, 18.0, 19.0 |
| amazon:2023 | npm | 0 |
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