CVE-2024-21892

EUVD-2024-19503
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.
Code Injection
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTPrimary
7.8 HIGH
LOCAL
LOW
LOW
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Base Score
CVSS 3.x
EPSS Score
Percentile: 42%
Affected Products (NVD)
VendorProductVersion
nodejsnode.js
18.0.0 ≤
𝑥
< 18.19.1
nodejsnode.js
20.0.0 ≤
𝑥
< 20.11.1
nodejsnode.js
21.0.0 ≤
𝑥
< 21.6.2
𝑥
= Vulnerable software versions
Early Detection
Affected products identified ahead of NVD analysis through intelligence sources.
VendorProductVersionSource
nodejsnode.js
18.0.0 ≤
𝑥
≤ 18.19.0
ADP
nodejsnode.js
20.0.0 ≤
𝑥
≤ 20.11.0
ADP
nodejsnode.js
21.0.0 ≤
𝑥
≤ 21.6.0
ADP
Debian logo
Debian Releases
Debian Product
Codename
nodejs
bookworm
18.20.4+dfsg-1~deb12u1
fixed
bookworm (security)
18.20.4+dfsg-1~deb12u1
fixed
bullseye
12.22.12~dfsg-1~deb11u4
not-affected
bullseye (security)
12.22.12~dfsg-1~deb11u7
fixed
buster
not-affected
forky
22.21.1+dfsg+~cs22.19.0-6
fixed
sid
22.21.1+dfsg+~cs22.19.0-6
fixed
trixie
20.19.2+dfsg-1
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
nodejs
bionic
not-affected
focal
not-affected
jammy
not-affected
mantic
ignored
noble
not-affected
trusty
not-affected
xenial
not-affected
openSUSE logo
openSUSE / SLES Releases
openSUSE Product
Release
nodejs18
suse enterprise sap 15 SP5
18.19.1-150400.9.18.2
fixed
suse enterprise server 15 SP4
18.19.1-150400.9.18.2
fixed
suse enterprise server 15 SP5
18.19.1-150400.9.18.2
fixed
nodejs18-devel
suse enterprise sap 15 SP5
18.19.1-150400.9.18.2
fixed
suse enterprise server 15 SP4
18.19.1-150400.9.18.2
fixed
suse enterprise server 15 SP5
18.19.1-150400.9.18.2
fixed
nodejs18-docs
suse enterprise sap 15 SP5
18.19.1-150400.9.18.2
fixed
suse enterprise server 15 SP4
18.19.1-150400.9.18.2
fixed
suse enterprise server 15 SP5
18.19.1-150400.9.18.2
fixed
nodejs20
suse enterprise sap 15 SP5
20.11.1-150500.11.6.1
fixed
suse enterprise server 15 SP5
20.11.1-150500.11.6.1
fixed
nodejs20-devel
suse enterprise sap 15 SP5
20.11.1-150500.11.6.1
fixed
suse enterprise server 15 SP5
20.11.1-150500.11.6.1
fixed
nodejs20-docs
suse enterprise sap 15 SP5
20.11.1-150500.11.6.1
fixed
suse enterprise server 15 SP5
20.11.1-150500.11.6.1
fixed
npm18
suse enterprise sap 15 SP5
18.19.1-150400.9.18.2
fixed
suse enterprise server 15 SP4
18.19.1-150400.9.18.2
fixed
suse enterprise server 15 SP5
18.19.1-150400.9.18.2
fixed
npm20
suse enterprise sap 15 SP5
20.11.1-150500.11.6.1
fixed
suse enterprise server 15 SP5
20.11.1-150500.11.6.1
fixed
Amazon Linux logo
Amazon Linux Releases
Amazon Package
Release
nodejs
Amazon Linux 2023
1:18.18.2-1.amzn2023.0.2
fixed
nodejs-debuginfo
Amazon Linux 2023
1:18.18.2-1.amzn2023.0.2
fixed
nodejs-debugsource
Amazon Linux 2023
1:18.18.2-1.amzn2023.0.2
fixed
nodejs-devel
Amazon Linux 2023
1:18.18.2-1.amzn2023.0.2
fixed
nodejs-docs
Amazon Linux 2023
1:18.18.2-1.amzn2023.0.2
fixed
nodejs-full-i18n
Amazon Linux 2023
1:18.18.2-1.amzn2023.0.2
fixed
nodejs-libs
Amazon Linux 2023
1:18.18.2-1.amzn2023.0.2
fixed
nodejs-libs-debuginfo
Amazon Linux 2023
1:18.18.2-1.amzn2023.0.2
fixed
nodejs-npm
Amazon Linux 2023
1:9.8.1-1.18.18.2.1.amzn2023.0.2
fixed
nodejs20
Amazon Linux 2023
1:20.11.1-1.amzn2023.0.1
fixed
nodejs20-debuginfo
Amazon Linux 2023
1:20.11.1-1.amzn2023.0.1
fixed
nodejs20-debugsource
Amazon Linux 2023
1:20.11.1-1.amzn2023.0.1
fixed
nodejs20-devel
Amazon Linux 2023
1:20.11.1-1.amzn2023.0.1
fixed
nodejs20-docs
Amazon Linux 2023
1:20.11.1-1.amzn2023.0.1
fixed
nodejs20-full-i18n
Amazon Linux 2023
1:20.11.1-1.amzn2023.0.1
fixed
nodejs20-libs
Amazon Linux 2023
1:20.11.1-1.amzn2023.0.1
fixed
nodejs20-libs-debuginfo
Amazon Linux 2023
1:20.11.1-1.amzn2023.0.1
fixed
nodejs20-npm
Amazon Linux 2023
1:10.2.4-1.20.11.1.1.amzn2023.0.1
fixed
v8-10.2-devel
Amazon Linux 2023
3:10.2.154.26-1.18.18.2.1.amzn2023.0.2
fixed
v8-11.3-devel
Amazon Linux 2023
3:11.3.244.8-1.20.11.1.1.amzn2023.0.1
fixed
Azure Linux logo
Azure Linux Releases
Azure Package
Release
nodejs
Azure Linux 3.0
0:20.14.0-1.azl3
fixed
nodejs18
CBL-Mariner 2.0
0:18.20.2-1.cm2
fixed