Vulnerability · Published Feb 20, 2024 · Assigned by hackerone

CVE-2024-21892

High 7.5

In plain English

A high-severity privilege mismanagement in Node from NodeJS. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 47% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.0)7.5High
Exploit odds (30 days)0.6%top 53.1% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8nodejs1:20.11.1-1.module_el8.9.0+3775+d8460d35ALSA-2024:1687
AlmaLinux:8nodejs1:18.19.1-1.module_el8.9.0+3753+4de0891bALSA-2024:1510
AlmaLinux:9nodejs1:20.11.1-1.module_el9.3.0+88+29afeaa2ALSA-2024:1688
AlmaLinux:9nodejs1:18.19.1-1.module_el9.3.0+59+28b95644ALSA-2024:1503
AlmaLinux:8nodejs-devel1:20.11.1-1.module_el8.9.0+3775+d8460d35ALSA-2024:1687
AlmaLinux:8nodejs-devel1:18.19.1-1.module_el8.9.0+3753+4de0891bALSA-2024:1510
AlmaLinux:9nodejs-devel1:18.19.1-1.module_el9.3.0+59+28b95644ALSA-2024:1503
AlmaLinux:9nodejs-devel1:20.11.1-1.module_el9.3.0+88+29afeaa2ALSA-2024:1688
AlmaLinux:8nodejs-docs1:18.19.1-1.module_el8.9.0+3753+4de0891bALSA-2024:1510
AlmaLinux:8nodejs-docs1:20.11.1-1.module_el8.9.0+3775+d8460d35ALSA-2024:1687
AlmaLinux:9nodejs-docs1:18.19.1-1.module_el9.3.0+59+28b95644ALSA-2024:1503
AlmaLinux:9nodejs-docs1:20.11.1-1.module_el9.3.0+88+29afeaa2ALSA-2024:1688
AlmaLinux:8nodejs-full-i18n1:18.19.1-1.module_el8.9.0+3753+4de0891bALSA-2024:1510
AlmaLinux:8nodejs-full-i18n1:20.11.1-1.module_el8.9.0+3775+d8460d35ALSA-2024:1687
AlmaLinux:9nodejs-full-i18n1:18.19.1-1.module_el9.3.0+59+28b95644ALSA-2024:1503
AlmaLinux:9nodejs-full-i18n1:20.11.1-1.module_el9.3.0+88+29afeaa2ALSA-2024:1688
AlmaLinux:8nodejs-nodemon3.0.1-1.module_el8.8.0+3613+1ed8c91dALSA-2024:1510
AlmaLinux:8nodejs-nodemon3.0.1-1.module_el8.9.0+3731+490e3ce5ALSA-2024:1687
AlmaLinux:9nodejs-nodemon3.0.1-1.module_el9.3.0+47+c33bc288ALSA-2024:1688
AlmaLinux:9nodejs-nodemon3.0.1-1.module_el9.2.0+36+853e48f5ALSA-2024:1503
AlmaLinux:8nodejs-packaging2021.06-4.module_el8.9.0+3684+11b9e959ALSA-2024:1687
AlmaLinux:8nodejs-packaging2021.06-4.module_el8.7.0+3343+ea2b7901ALSA-2024:1510
AlmaLinux:9nodejs-packaging2021.06-4.module_el9.1.0+13+d9a595eaALSA-2024:1503
AlmaLinux:9nodejs-packaging2021.06-4.module_el9.3.0+48+1cf146a1ALSA-2024:1688
AlmaLinux:8nodejs-packaging-bundler2021.06-4.module_el8.7.0+3343+ea2b7901ALSA-2024:1510
AlmaLinux:8nodejs-packaging-bundler2021.06-4.module_el8.9.0+3684+11b9e959ALSA-2024:1687
AlmaLinux:9nodejs-packaging-bundler2021.06-4.module_el9.1.0+13+d9a595eaALSA-2024:1503
AlmaLinux:9nodejs-packaging-bundler2021.06-4.module_el9.3.0+48+1cf146a1ALSA-2024:1688
AlmaLinux:8npm1:10.2.4-1.20.11.1.1.module_el8.9.0+3775+d8460d35ALSA-2024:1687
AlmaLinux:8npm1:10.2.4-1.18.19.1.1.module_el8.9.0+3753+4de0891bALSA-2024:1510
AlmaLinux:9npm1:10.2.4-1.18.19.1.1.module_el9.3.0+59+28b95644ALSA-2024:1503
AlmaLinux:9npm1:10.2.4-1.20.11.1.1.module_el9.3.0+88+29afeaa2ALSA-2024:1688
Alpine:v3.20openjdk1717.0.11_p9-r0ALPINE-CVE-2024-21892
Alpine:v3.21openjdk1717.0.11_p9-r0ALPINE-CVE-2024-21892
Alpine:v3.22openjdk1717.0.11_p9-r0ALPINE-CVE-2024-21892
Alpine:v3.23openjdk1717.0.11_p9-r0ALPINE-CVE-2024-21892
Alpine:v3.24openjdk1717.0.11_p9-r0ALPINE-CVE-2024-21892
Alpine:v3.20openjdk2121.0.3_p9-r0ALPINE-CVE-2024-21892
Alpine:v3.21openjdk2121.0.3_p9-r0ALPINE-CVE-2024-21892
Alpine:v3.22openjdk2121.0.3_p9-r0ALPINE-CVE-2024-21892
Alpine:v3.23openjdk2121.0.3_p9-r0ALPINE-CVE-2024-21892
Alpine:v3.24openjdk2121.0.3_p9-r0ALPINE-CVE-2024-21892
Debian:12nodejs18.20.4+dfsg-1~deb12u1DSA-5991-1
Debian:12nodejs18.20.4+dfsg-1~deb12u1DEBIAN-CVE-2024-21892
Debian:13nodejs18.19.1+dfsg-1DEBIAN-CVE-2024-21892
Debian:14nodejs18.19.1+dfsg-1DEBIAN-CVE-2024-21892
Rocky Linux:8nodejs1:18.19.1-1.module+el8.9.0+1768+6b454dc0RLSA-2024:1510
Rocky Linux:8nodejs1:20.11.1-1.module+el8.9.0+1776+addd4aecRLSA-2024:1687
Rocky Linux:8nodejs-nodemon0:3.0.1-1.module+el8.8.0+1459+02651ab6RLSA-2024:1510
Rocky Linux:8nodejs-nodemon0:3.0.1-1.module+el8.8.0+1459+02651ab6RLSA-2024:1687
Rocky Linux:9nodejs-nodemon0:3.0.1-1.module+el9.6.0+32144+1d29a396RLSA-2024:1503
Rocky Linux:9nodejs-nodemon0:3.0.1-1.module+el9.6.0+32143+ae966e5bRLSA-2024:1503
Rocky Linux:9nodejs-nodemon0:3.0.1-1.module+el9.6.0+32045+2e5d342dRLSA-2024:1503
Rocky Linux:9nodejs-nodemon0:3.0.1-1.module+el9.5.0+31770+0da7192dRLSA-2024:1503
Rocky Linux:9nodejs-nodemon0:3.0.1-1.module+el9.6.0+32322+a8b1fd01RLSA-2024:1503
Rocky Linux:9nodejs-nodemon0:3.0.1-1.module+el9.6.0+32322+a8b1fd01RLSA-2024:1688
Rocky Linux:9nodejs-nodemon0:3.0.1-1.module+el9.6.0+32045+2e5d342dRLSA-2024:1688
Rocky Linux:9nodejs-nodemon0:3.0.1-1.module+el9.6.0+32143+ae966e5bRLSA-2024:1688
Rocky Linux:9nodejs-nodemon0:3.0.1-1.module+el9.6.0+32144+1d29a396RLSA-2024:1688
Rocky Linux:9nodejs-nodemon0:3.0.1-1.module+el9.6.0+32185+bd121a25RLSA-2024:1688
Rocky Linux:9nodejs-nodemon0:3.0.1-1.module+el9.6.0+32185+bd121a25RLSA-2024:1503
Rocky Linux:9nodejs-nodemon0:3.0.1-1.module+el9.5.0+31770+0da7192dRLSA-2024:1688
Rocky Linux:8nodejs-packaging0:2021.06-4.module+el8.7.0+1072+5b168780RLSA-2024:1687
Rocky Linux:8nodejs-packaging0:2021.06-4.module+el8.7.0+1072+5b168780RLSA-2024:1510
Rocky Linux:9nodejs-packaging0:2021.06-4.module+el9.6.0+32185+bd121a25RLSA-2024:1503
Rocky Linux:9nodejs-packaging0:2021.06-4.module+el9.5.0+31770+0da7192dRLSA-2024:1688
Rocky Linux:9nodejs-packaging0:2021.06-4.module+el9.6.0+32045+2e5d342dRLSA-2024:1688
Rocky Linux:9nodejs-packaging0:2021.06-4.module+el9.6.0+32048+5323bb50RLSA-2024:1688
Rocky Linux:9nodejs-packaging0:2021.06-4.module+el9.6.0+32143+ae966e5bRLSA-2024:1688
Rocky Linux:9nodejs-packaging0:2021.06-4.module+el9.6.0+32144+1d29a396RLSA-2024:1688
Rocky Linux:9nodejs-packaging0:2021.06-4.module+el9.6.0+32185+bd121a25RLSA-2024:1688
Rocky Linux:9nodejs-packaging0:2021.06-4.module+el9.6.0+32322+a8b1fd01RLSA-2024:1688
Rocky Linux:9nodejs-packaging0:2021.06-4.module+el9.6.0+32144+1d29a396RLSA-2024:1503
Rocky Linux:9nodejs-packaging0:2021.06-4.module+el9.6.0+32143+ae966e5bRLSA-2024:1503
Rocky Linux:9nodejs-packaging0:2021.06-4.module+el9.6.0+32048+5323bb50RLSA-2024:1503
Rocky Linux:9nodejs-packaging0:2021.06-4.module+el9.6.0+32045+2e5d342dRLSA-2024:1503
Rocky Linux:9nodejs-packaging0:2021.06-4.module+el9.5.0+31770+0da7192dRLSA-2024:1503
Rocky Linux:9nodejs-packaging0:2021.06-4.module+el9.6.0+32322+a8b1fd01RLSA-2024:1503

Affected products (as reported)

VendorProductVersions
NodeJS Node 4.0 – before 4.*5.0 – before 5.*6.0 – before 6.*7.0 – before 7.*8.0 – before 8.*9.0 – before 9.*10.0 – before 10.*11.0 – before 11.*

Weakness: CWE-269 · Vector: CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N

References