CVE-2024-21892
Fixed in a distro release EPSS <1%CVSS 7.5
On Linux, Node.js ignores certain environment variables if those may have been set by an unprivileged user while the process is running with elevated privileges with the only exception of CAP_NET_BIND_SERVICE. Due to a bug in the implementation of this exception, Node.js incorrectly applies this exception even when certain other capabilities have been set. This allows unprivileged users to inject code that inherits the process's elevated privileges.
Products: NodeJS Node, nodejs node.js
Distro releases
| Release | Package | Fixed in |
|---|---|---|
| AlmaLinux 8 | nodejs | 1:18.19.1-1.module_el8.9.0+3753+4de0891b |
| AlmaLinux 8 | nodejs | 1:20.11.1-1.module_el8.9.0+3775+d8460d35 |
| AlmaLinux 8 | nodejs-devel | 1:18.19.1-1.module_el8.9.0+3753+4de0891b |
| AlmaLinux 8 | nodejs-devel | 1:20.11.1-1.module_el8.9.0+3775+d8460d35 |
| AlmaLinux 8 | nodejs-docs | 1:18.19.1-1.module_el8.9.0+3753+4de0891b |
| AlmaLinux 8 | nodejs-docs | 1:20.11.1-1.module_el8.9.0+3775+d8460d35 |
| AlmaLinux 8 | nodejs-full-i18n | 1:18.19.1-1.module_el8.9.0+3753+4de0891b |
| AlmaLinux 8 | nodejs-full-i18n | 1:20.11.1-1.module_el8.9.0+3775+d8460d35 |
| AlmaLinux 8 | nodejs-nodemon | 3.0.1-1.module_el8.9.0+3731+490e3ce5 |
| AlmaLinux 8 | nodejs-nodemon | 3.0.1-1.module_el8.8.0+3613+1ed8c91d |
| AlmaLinux 8 | nodejs-packaging | 2021.06-4.module_el8.9.0+3684+11b9e959 |
| AlmaLinux 8 | nodejs-packaging | 2021.06-4.module_el8.7.0+3343+ea2b7901 |
| AlmaLinux 8 | nodejs-packaging-bundler | 2021.06-4.module_el8.9.0+3684+11b9e959 |
| AlmaLinux 8 | nodejs-packaging-bundler | 2021.06-4.module_el8.7.0+3343+ea2b7901 |
| AlmaLinux 8 | npm | 1:10.2.4-1.20.11.1.1.module_el8.9.0+3775+d8460d35 |
| AlmaLinux 8 | npm | 1:10.2.4-1.18.19.1.1.module_el8.9.0+3753+4de0891b |
| AlmaLinux 9 | nodejs | 1:20.11.1-1.module_el9.3.0+88+29afeaa2 |
| AlmaLinux 9 | nodejs | 1:18.19.1-1.module_el9.3.0+59+28b95644 |
| AlmaLinux 9 | nodejs-devel | 1:20.11.1-1.module_el9.3.0+88+29afeaa2 |
| AlmaLinux 9 | nodejs-devel | 1:18.19.1-1.module_el9.3.0+59+28b95644 |
| AlmaLinux 9 | nodejs-docs | 1:18.19.1-1.module_el9.3.0+59+28b95644 |
| AlmaLinux 9 | nodejs-docs | 1:20.11.1-1.module_el9.3.0+88+29afeaa2 |
| AlmaLinux 9 | nodejs-full-i18n | 1:20.11.1-1.module_el9.3.0+88+29afeaa2 |
| AlmaLinux 9 | nodejs-full-i18n | 1:18.19.1-1.module_el9.3.0+59+28b95644 |
| AlmaLinux 9 | nodejs-nodemon | 3.0.1-1.module_el9.2.0+36+853e48f5 |
| AlmaLinux 9 | nodejs-nodemon | 3.0.1-1.module_el9.3.0+47+c33bc288 |
| AlmaLinux 9 | nodejs-packaging | 2021.06-4.module_el9.1.0+13+d9a595ea |
| AlmaLinux 9 | nodejs-packaging | 2021.06-4.module_el9.3.0+48+1cf146a1 |
| AlmaLinux 9 | nodejs-packaging-bundler | 2021.06-4.module_el9.3.0+48+1cf146a1 |
| AlmaLinux 9 | nodejs-packaging-bundler | 2021.06-4.module_el9.1.0+13+d9a595ea |
| AlmaLinux 9 | npm | 1:10.2.4-1.20.11.1.1.module_el9.3.0+88+29afeaa2 |
| AlmaLinux 9 | npm | 1:10.2.4-1.18.19.1.1.module_el9.3.0+59+28b95644 |
| Chainguard | nodejs-16 | no fix |
| Chainguard | nodejs-16-doc | 16.20.2-r15 |
| Debian 12 | nodejs | 18.20.4+dfsg-1~deb12u1 |
| Debian 13 | nodejs | 18.19.1+dfsg-1 |
| Debian 14 | nodejs | 18.19.1+dfsg-1 |
| Red Hat Enterprise Linux 8 | nodejs | 1:18.19.1-1.module+el8.9.0+21387+21356dec |
| Red Hat Enterprise Linux 8 | nodejs | 1:20.11.1-1.module+el8.9.0+21380+12032667 |
| Red Hat Enterprise Linux 8 | nodejs-debuginfo | 1:20.11.1-1.module+el8.9.0+21380+12032667 |
| Red Hat Enterprise Linux 8 | nodejs-debuginfo | 1:18.19.1-1.module+el8.9.0+21387+21356dec |
| Red Hat Enterprise Linux 8 | nodejs-debugsource | 1:20.11.1-1.module+el8.9.0+21380+12032667 |
| Red Hat Enterprise Linux 8 | nodejs-debugsource | 1:18.19.1-1.module+el8.9.0+21387+21356dec |
| Red Hat Enterprise Linux 8 | nodejs-devel | 1:20.11.1-1.module+el8.9.0+21380+12032667 |
| Red Hat Enterprise Linux 8 | nodejs-devel | 1:18.19.1-1.module+el8.9.0+21387+21356dec |
| Red Hat Enterprise Linux 8 | nodejs-docs | 1:20.11.1-1.module+el8.9.0+21380+12032667 |
| Red Hat Enterprise Linux 8 | nodejs-docs | 1:18.19.1-1.module+el8.9.0+21387+21356dec |
| Red Hat Enterprise Linux 8 | nodejs-full-i18n | 1:20.11.1-1.module+el8.9.0+21380+12032667 |
| Red Hat Enterprise Linux 8 | nodejs-full-i18n | 1:18.19.1-1.module+el8.9.0+21387+21356dec |
| Red Hat Enterprise Linux 8 | nodejs-nodemon | 0:3.0.1-1.module+el8.9.0+21190+5ebd2c33 |
| Red Hat Enterprise Linux 8 | nodejs-nodemon | 0:3.0.1-1.module+el8.9.0+20473+c4e3d824 |
| Red Hat Enterprise Linux 8 | nodejs-packaging | 0:2021.06-4.module+el8.9.0+21190+5ebd2c33 |
| Red Hat Enterprise Linux 8 | nodejs-packaging | 0:2021.06-4.module+el8.9.0+19519+e25b965a |
| Red Hat Enterprise Linux 8 | nodejs-packaging-bundler | 0:2021.06-4.module+el8.9.0+21190+5ebd2c33 |
| Red Hat Enterprise Linux 8 | nodejs-packaging-bundler | 0:2021.06-4.module+el8.9.0+19519+e25b965a |
| Red Hat Enterprise Linux 8 | npm | 1:10.2.4-1.18.19.1.1.module+el8.9.0+21387+21356dec |
| Red Hat Enterprise Linux 8 | npm | 1:10.2.4-1.20.11.1.1.module+el8.9.0+21380+12032667 |
| Red Hat Enterprise Linux 9 | nodejs | 1:20.11.1-1.module+el9.3.0+21385+bac43d5a |
| Red Hat Enterprise Linux 9 | nodejs | 1:18.19.1-1.module+el9.3.0+21388+22892fb9 |
| Red Hat Enterprise Linux 9 | nodejs-debuginfo | 1:20.11.1-1.module+el9.3.0+21385+bac43d5a |
| Red Hat Enterprise Linux 9 | nodejs-debuginfo | 1:18.19.1-1.module+el9.3.0+21388+22892fb9 |
| Red Hat Enterprise Linux 9 | nodejs-debugsource | 1:20.11.1-1.module+el9.3.0+21385+bac43d5a |
| Red Hat Enterprise Linux 9 | nodejs-debugsource | 1:18.19.1-1.module+el9.3.0+21388+22892fb9 |
| Red Hat Enterprise Linux 9 | nodejs-devel | 1:20.11.1-1.module+el9.3.0+21385+bac43d5a |
| Red Hat Enterprise Linux 9 | nodejs-devel | 1:18.19.1-1.module+el9.3.0+21388+22892fb9 |
| Red Hat Enterprise Linux 9 | nodejs-docs | 1:18.19.1-1.module+el9.3.0+21388+22892fb9 |
| Red Hat Enterprise Linux 9 | nodejs-docs | 1:20.11.1-1.module+el9.3.0+21385+bac43d5a |
| Red Hat Enterprise Linux 9 | nodejs-full-i18n | 1:18.19.1-1.module+el9.3.0+21388+22892fb9 |
| Red Hat Enterprise Linux 9 | nodejs-full-i18n | 1:20.11.1-1.module+el9.3.0+21385+bac43d5a |
| Red Hat Enterprise Linux 9 | nodejs-nodemon | 0:3.0.1-1.module+el9.3.0.z+20478+84a9f781 |
| Red Hat Enterprise Linux 9 | nodejs-nodemon | 0:3.0.1-1.module+el9.3.0+19762+d716bf3b |
| Red Hat Enterprise Linux 9 | nodejs-packaging | 0:2021.06-4.module+el9.1.0+15718+e52ec601 |
| Red Hat Enterprise Linux 9 | nodejs-packaging | 0:2021.06-4.module+el9.3.0+19518+63aad52d |
| Red Hat Enterprise Linux 9 | nodejs-packaging-bundler | 0:2021.06-4.module+el9.3.0+19518+63aad52d |
| Red Hat Enterprise Linux 9 | nodejs-packaging-bundler | 0:2021.06-4.module+el9.1.0+15718+e52ec601 |
| Red Hat Enterprise Linux 9 | npm | 1:10.2.4-1.20.11.1.1.module+el9.3.0+21385+bac43d5a |
| Red Hat Enterprise Linux 9 | npm | 1:10.2.4-1.18.19.1.1.module+el9.3.0+21388+22892fb9 |
| Red Hat rhel eus 8.8 | nodejs | 1:18.19.1-1.module+el8.8.0+21592+14a8b93e |
| Red Hat rhel eus 8.8 | nodejs-debuginfo | 1:18.19.1-1.module+el8.8.0+21592+14a8b93e |
| Red Hat rhel eus 8.8 | nodejs-debugsource | 1:18.19.1-1.module+el8.8.0+21592+14a8b93e |
| Red Hat rhel eus 8.8 | nodejs-devel | 1:18.19.1-1.module+el8.8.0+21592+14a8b93e |
| Red Hat rhel eus 8.8 | nodejs-docs | 1:18.19.1-1.module+el8.8.0+21592+14a8b93e |
| Red Hat rhel eus 8.8 | nodejs-full-i18n | 1:18.19.1-1.module+el8.8.0+21592+14a8b93e |
| Red Hat rhel eus 8.8 | nodejs-nodemon | 0:3.0.1-1.module+el8.8.0+19757+8ca87034 |
| Red Hat rhel eus 8.8 | nodejs-packaging | 0:2021.06-4.module+el8.7.0+15582+19c314fa |
| Red Hat rhel eus 8.8 | nodejs-packaging-bundler | 0:2021.06-4.module+el8.7.0+15582+19c314fa |
| Red Hat rhel eus 8.8 | npm | 1:10.2.4-1.18.19.1.1.module+el8.8.0+21592+14a8b93e |
| Red Hat rhel eus 9.2 | nodejs | 1:18.19.1-1.module+el9.2.0+21594+a052107e |
| Red Hat rhel eus 9.2 | nodejs-debuginfo | 1:18.19.1-1.module+el9.2.0+21594+a052107e |
| Red Hat rhel eus 9.2 | nodejs-debugsource | 1:18.19.1-1.module+el9.2.0+21594+a052107e |
| Red Hat rhel eus 9.2 | nodejs-devel | 1:18.19.1-1.module+el9.2.0+21594+a052107e |
| Red Hat rhel eus 9.2 | nodejs-docs | 1:18.19.1-1.module+el9.2.0+21594+a052107e |
| Red Hat rhel eus 9.2 | nodejs-full-i18n | 1:18.19.1-1.module+el9.2.0+21594+a052107e |
| Red Hat rhel eus 9.2 | nodejs-nodemon | 0:3.0.1-1.module+el9.2.0.z+19753+58118bc0 |
| Red Hat rhel eus 9.2 | nodejs-packaging | 0:2021.06-4.module+el9.1.0+15718+e52ec601 |
| Red Hat rhel eus 9.2 | nodejs-packaging-bundler | 0:2021.06-4.module+el9.1.0+15718+e52ec601 |
| Red Hat rhel eus 9.2 | npm | 1:10.2.4-1.18.19.1.1.module+el9.2.0+21594+a052107e |
| Rocky Linux 8 | nodejs | 1:18.19.1-1.module+el8.9.0+1768+6b454dc0 |
| Rocky Linux 8 | nodejs | 1:20.11.1-1.module+el8.9.0+1776+addd4aec |
| Rocky Linux 8 | nodejs-nodemon | 0:3.0.1-1.module+el8.8.0+1459+02651ab6 |
| Rocky Linux 8 | nodejs-packaging | 0:2021.06-4.module+el8.7.0+1072+5b168780 |
| Rocky Linux 9 | nodejs-nodemon | 0:3.0.1-1.module+el9.6.0+32143+ae966e5b |
| Rocky Linux 9 | nodejs-nodemon | 0:3.0.1-1.module+el9.6.0+32322+a8b1fd01 |
| Rocky Linux 9 | nodejs-nodemon | 0:3.0.1-1.module+el9.6.0+32185+bd121a25 |
| Rocky Linux 9 | nodejs-nodemon | 0:3.0.1-1.module+el9.6.0+32144+1d29a396 |
| Rocky Linux 9 | nodejs-nodemon | 0:3.0.1-1.module+el9.6.0+32045+2e5d342d |
| Rocky Linux 9 | nodejs-nodemon | 0:3.0.1-1.module+el9.5.0+31770+0da7192d |
| Rocky Linux 9 | nodejs-packaging | 0:2021.06-4.module+el9.6.0+32048+5323bb50 |
| Rocky Linux 9 | nodejs-packaging | 0:2021.06-4.module+el9.6.0+32143+ae966e5b |
| Rocky Linux 9 | nodejs-packaging | 0:2021.06-4.module+el9.6.0+32322+a8b1fd01 |
| Rocky Linux 9 | nodejs-packaging | 0:2021.06-4.module+el9.6.0+32185+bd121a25 |
| Rocky Linux 9 | nodejs-packaging | 0:2021.06-4.module+el9.6.0+32144+1d29a396 |
| Rocky Linux 9 | nodejs-packaging | 0:2021.06-4.module+el9.5.0+31770+0da7192d |
| Rocky Linux 9 | nodejs-packaging | 0:2021.06-4.module+el9.6.0+32045+2e5d342d |
| SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS | nodejs18 | 18.19.1-150400.9.18.2 |
| SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS | nodejs18 | 18.19.1-150400.9.18.2 |
| SUSE Linux Enterprise Module for Web and Scripting 12 | nodejs18 | 18.19.1-8.18.1 |
| SUSE Linux Enterprise Module for Web and Scripting 15 SP5 | nodejs18 | 18.19.1-150400.9.18.2 |
| SUSE Linux Enterprise Module for Web and Scripting 15 SP5 | nodejs20 | 20.11.1-150500.11.6.1 |
| SUSE Linux Enterprise Server 15 SP4-LTSS | nodejs18 | 18.19.1-150400.9.18.2 |
| SUSE Linux Enterprise Server for SAP Applications 15 SP4 | nodejs18 | 18.19.1-150400.9.18.2 |
| SUSE Manager Server 4.3 | nodejs18 | 18.19.1-150400.9.18.2 |
| Ubuntu 20.04 LTS | nodejs | no fix |
| Ubuntu 22.04 LTS | nodejs | no fix |
| Ubuntu 24.04 LTS | nodejs | no fix |
| Ubuntu Pro 14.04 LTS | nodejs | no fix |
| Ubuntu Pro 16.04 LTS | nodejs | no fix |
| Ubuntu Pro 18.04 LTS | nodejs | no fix |
| Wolfi | nodejs-16 | no fix |
| Wolfi | nodejs-16-doc | 16.20.2-r15 |
| openSUSE Leap 15.5 | nodejs18 | 18.19.1-150400.9.18.2 |
| openSUSE Leap 15.5 | nodejs20 | 20.11.1-150500.11.6.1 |
| openSUSE Tumbleweed | nodejs20 | 20.11.1-1.1 |
| openSUSE Tumbleweed | nodejs21 | 21.6.2-1.1 |