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 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.
What to do
Fixed builds are available from AlmaLinux, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 24.04 | nodejs | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | nodejs | Fixed | 12.22.9~dfsg-1ubuntu3.5 | UBUNTU-CVE-2023-30590 |
| Ubuntu 20.04 | nodejs | Fixed | 10.19.0~dfsg-3ubuntu1.6 | UBUNTU-CVE-2023-30590 |
| Ubuntu 18.04 | nodejs | Fix pending | 8.10.0~dfsg-2ubuntu0.4+esm5 (Ubuntu Pro) | UBUNTU-CVE-2023-30590 |
| Ubuntu 16.04 | nodejs | Fix pending | 4.2.6~dfsg-1ubuntu4.2+esm3 (Ubuntu Pro) | UBUNTU-CVE-2023-30590 |
| Ubuntu 14.04 | nodejs | Fix pending | 0.10.25~dfsg2-2ubuntu1.2+esm2 (Ubuntu Pro) | UBUNTU-CVE-2023-30590 |
| Debian 14 | nodejs | Fixed | 18.13.0+dfsg1-1.1 | DEBIAN-CVE-2023-30590 |
| Debian 13 | nodejs | Fixed | 18.13.0+dfsg1-1.1 | DEBIAN-CVE-2023-30590 |
| Debian 12 | nodejs | Fixed | 18.19.0+dfsg-6~deb12u1 | DEBIAN-CVE-2023-30590 |
| Red Hat Enterprise Linux 9 | nodejs | Fixed | 1:18.16.1-1.module+el9.2.0.z+19424+78951f07 | RHSA-2023:4331 |
| Red Hat Enterprise Linux 9 | nodejs-devel | Fixed | 1:18.16.1-1.module+el9.2.0.z+19424+78951f07 | RHSA-2023:4330 |
| Red Hat Enterprise Linux 9 | nodejs-docs | Fixed | 1:16.20.1-1.el9_2 | RHSA-2023:4330 |
| Red Hat Enterprise Linux 9 | nodejs-full-i18n | Fixed | 1:16.20.1-1.el9_2 | RHSA-2023:4330 |
| Red Hat Enterprise Linux 9 | nodejs-libs | Fixed | 1:16.20.1-1.el9_2 | RHSA-2023:4331 |
| Red Hat Enterprise Linux 9 | nodejs-nodemon | Fixed | 0:2.0.20-2.module+el9.2.0.z+18497+a402347c | RHSA-2023:4330 |
| Red Hat Enterprise Linux 9 | nodejs-packaging | Fixed | 0:2021.06-4.module+el9.1.0+15718+e52ec601 | RHSA-2023:4330 |
| Red Hat Enterprise Linux 9 | nodejs-packaging-bundler | Fixed | 0:2021.06-4.module+el9.1.0+15718+e52ec601 | RHSA-2023:4330 |
| Red Hat Enterprise Linux 9 | npm | Fixed | 1:8.19.4-1.16.20.1.1.el9_2 | RHSA-2023:4330 |
| Red Hat Enterprise Linux 8 | nodejs | Fixed Will not fix | 1:16.20.1-1.module+el8.8.0+19440+ee8dbee5 | RHSA-2023:4536 |
| Red Hat Enterprise Linux 8 | nodejs-devel | Fixed Will not fix | 1:18.16.1-1.module+el8.8.0+19438+94e84959 | RHSA-2023:4537 |
| Red Hat Enterprise Linux 8 | nodejs-docs | Fixed Will not fix | 1:18.16.1-1.module+el8.8.0+19438+94e84959 | RHSA-2023:4537 |
| Red Hat Enterprise Linux 8 | nodejs-full-i18n | Fixed Will not fix | 1:18.16.1-1.module+el8.8.0+19438+94e84959 | RHSA-2023:4537 |
| Red Hat Enterprise Linux 8 | nodejs-libs | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | nodejs-nodemon | Fixed Will not fix | 0:2.0.20-2.module+el8.8.0+18432+27f188ac | RHSA-2023:4537 |
| Red Hat Enterprise Linux 8 | nodejs-packaging | Fixed Will not fix | 0:25-1.module+el8.5.0+10992+fac5fe06 | RHSA-2023:4536 |
| Red Hat Enterprise Linux 8 | nodejs-packaging-bundler | Fixed Will not fix | 0:2021.06-4.module+el8.7.0+15582+19c314fa | RHSA-2023:4536 |
| Red Hat Enterprise Linux 8 | npm | Fixed Will not fix | 1:8.19.4-1.16.20.1.1.module+el8.8.0+19440+ee8dbee5 | RHSA-2023:4536 |
| Red Hat Enterprise Linux 8 | v8-12.4-devel | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | v8-13.6-devel | Will not fix Will not fix | ||
| AlmaLinux 9 | nodejs | Fixed | 1:16.20.1-1.el9_2 | ALSA-2023:4330 |
| AlmaLinux 9 | nodejs-devel | Fixed | 1:18.16.1-1.module_el9.2.0+31+cbae0c8e | ALSA-2023:4330 |
| AlmaLinux 9 | nodejs-docs | Fixed | 1:18.16.1-1.module_el9.2.0+31+cbae0c8e | ALSA-2023:4331 |
| AlmaLinux 9 | nodejs-full-i18n | Fixed | 1:16.20.1-1.el9_2 | ALSA-2023:4330 |
| AlmaLinux 9 | nodejs-libs | Fixed | 1:16.20.1-1.el9_2 | ALSA-2023:4331 |
| AlmaLinux 9 | nodejs-nodemon | Fixed | 2.0.20-2.module_el9.2.0+29+de583a0b | ALSA-2023:4330 |
| AlmaLinux 9 | nodejs-packaging | Fixed | 2021.06-4.module_el9.1.0+13+d9a595ea | ALSA-2023:4330 |
| AlmaLinux 9 | nodejs-packaging-bundler | Fixed | 2021.06-4.module_el9.1.0+13+d9a595ea | ALSA-2023:4330 |
| AlmaLinux 9 | npm | Fixed | 1:9.5.1-1.18.16.1.1.module_el9.2.0+31+cbae0c8e | ALSA-2023:4331 |
| AlmaLinux 8 | nodejs | Fixed | 1:18.16.1-1.module_el8.8.0+3595+0818e803 | ALSA-2023:4537 |
| AlmaLinux 8 | nodejs-devel | Fixed | 1:16.20.1-1.module_el8.8.0+3594+e74fe53f | ALSA-2023:4536 |
| AlmaLinux 8 | nodejs-docs | Fixed | 1:18.16.1-1.module_el8.8.0+3595+0818e803 | ALSA-2023:4537 |
| AlmaLinux 8 | nodejs-full-i18n | Fixed | 1:16.20.1-1.module_el8.8.0+3594+e74fe53f | ALSA-2023:4536 |
| AlmaLinux 8 | nodejs-nodemon | Fixed | 2.0.20-2.module_el8.8.0+3587+ee652244 | ALSA-2023:4537 |
| AlmaLinux 8 | nodejs-packaging | Fixed | 25-1.module_el8.5.0+2605+45d748af | ALSA-2023:4536 |
| AlmaLinux 8 | nodejs-packaging-bundler | Fixed | 2021.06-4.module_el8.7.0+3343+ea2b7901 | ALSA-2023:4536 |
| AlmaLinux 8 | npm | Fixed | 1:9.5.1-1.18.16.1.1.module_el8.8.0+3595+0818e803 | ALSA-2023:4537 |
| Rocky Linux 9 | nodejs-packaging | Fixed | 0:2021.06-4.module+el9.7.0+40022+9ecc286c | RLSA-2023:4330 |
| Rocky Linux 8 | nodejs | Fixed | 1:18.16.1-1.module+el8.8.0+1413+a47876c7 | RLSA-2023:4536 |
| Rocky Linux 8 | nodejs-nodemon | Fixed | 0:2.0.20-3.module+el8.7.0+1178+d52dba78 | RLSA-2023:4536 |
| Rocky Linux 8 | nodejs-packaging | Fixed | 0:25-1.module+el8.7.0+1108+49363b0d | RLSA-2023:4536 |
What the vendor says
As published in the CVE record by hackerone, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- NodeJS Node: affected: 4.0 to before 4.*, 5.0 to before 5.*, 6.0 to before 6.*, 7.0 to before 7.*, 8.0 to before 8.*, 9.0 to before 9.*; fixed in
16.20.1,18.16.1,20.3.1
References
- https://nodejs.org/en/blog/vulnerability/june-2023-security-releases
- https://lists.debian.org/debian-lts-announce/2024/03/msg00029.html
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.