CVEfocus › CVE database › CVE-2024-21892

CVE-2024-21892

CVSS 7.5 HighEPSS 0.6% (higher than 42% of CVEs)Published 2024-02-20Updated 2025-04-30Assigner: hackerone

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.

CWE-269

What to do

Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux: 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

54Fixed
1Fix pending
5Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 24.04nodejsNot affected
vulnerable_code_not_present
Ubuntu 16.04nodejsFix pending
Debian 14nodejsFixed18.19.1+dfsg-1DEBIAN-CVE-2024-21892
Debian 13nodejsFixed18.19.1+dfsg-1DEBIAN-CVE-2024-21892
Debian 12nodejsFixed18.20.4+dfsg-1~deb12u1DEBIAN-CVE-2024-21892
Red Hat Enterprise Linux 9nodejsFixed1:18.19.1-1.module+el9.3.0+21388+22892fb9RHSA-2024:1688
Red Hat Enterprise Linux 9nodejs-develFixed1:20.11.1-1.module+el9.3.0+21385+bac43d5aRHSA-2024:1503
Red Hat Enterprise Linux 9nodejs-docsFixed1:20.11.1-1.module+el9.3.0+21385+bac43d5aRHSA-2024:1503
Red Hat Enterprise Linux 9nodejs-full-i18nFixed1:20.11.1-1.module+el9.3.0+21385+bac43d5aRHSA-2024:1503
Red Hat Enterprise Linux 9nodejs-libsNot affected
Red Hat Enterprise Linux 9nodejs-nodemonFixed0:3.0.1-1.module+el9.3.0.z+20478+84a9f781RHSA-2024:1503
Red Hat Enterprise Linux 9nodejs-packagingFixed0:2021.06-4.module+el9.1.0+15718+e52ec601RHSA-2024:1688
Red Hat Enterprise Linux 9nodejs-packaging-bundlerFixed0:2021.06-4.module+el9.3.0+19518+63aad52dRHSA-2024:1503
Red Hat Enterprise Linux 9npmFixed1:10.2.4-1.20.11.1.1.module+el9.3.0+21385+bac43d5aRHSA-2024:1503
Red Hat Enterprise Linux 8nodejsFixed1:20.11.1-1.module+el8.9.0+21380+12032667RHSA-2024:1510
Red Hat Enterprise Linux 8nodejs-develFixed1:18.19.1-1.module+el8.9.0+21387+21356decRHSA-2024:1687
Red Hat Enterprise Linux 8nodejs-docsFixed1:20.11.1-1.module+el8.9.0+21380+12032667RHSA-2024:1510
Red Hat Enterprise Linux 8nodejs-full-i18nFixed1:18.19.1-1.module+el8.9.0+21387+21356decRHSA-2024:1687
Red Hat Enterprise Linux 8nodejs-libsNot affected
Red Hat Enterprise Linux 8nodejs-nodemonFixed0:3.0.1-1.module+el8.9.0+21190+5ebd2c33RHSA-2024:1687
Red Hat Enterprise Linux 8nodejs-packagingFixed0:2021.06-4.module+el8.9.0+19519+e25b965aRHSA-2024:1510
Red Hat Enterprise Linux 8nodejs-packaging-bundlerFixed0:2021.06-4.module+el8.9.0+21190+5ebd2c33RHSA-2024:1687
Red Hat Enterprise Linux 8npmFixed1:10.2.4-1.18.19.1.1.module+el8.9.0+21387+21356decRHSA-2024:1687
Red Hat Enterprise Linux 8v8-12.4-develNot affected
Red Hat Enterprise Linux 8v8-13.6-develNot affected
AlmaLinux 9nodejsFixed1:20.11.1-1.module_el9.3.0+88+29afeaa2ALSA-2024:1503
AlmaLinux 9nodejs-develFixed1:20.11.1-1.module_el9.3.0+88+29afeaa2ALSA-2024:1503
AlmaLinux 9nodejs-docsFixed1:20.11.1-1.module_el9.3.0+88+29afeaa2ALSA-2024:1503
AlmaLinux 9nodejs-full-i18nFixed1:18.19.1-1.module_el9.3.0+59+28b95644ALSA-2024:1688
AlmaLinux 9nodejs-nodemonFixed3.0.1-1.module_el9.3.0+47+c33bc288ALSA-2024:1503
AlmaLinux 9nodejs-packagingFixed2021.06-4.module_el9.1.0+13+d9a595eaALSA-2024:1688
AlmaLinux 9nodejs-packaging-bundlerFixed2021.06-4.module_el9.3.0+48+1cf146a1ALSA-2024:1503
AlmaLinux 9npmFixed1:10.2.4-1.20.11.1.1.module_el9.3.0+88+29afeaa2ALSA-2024:1503
AlmaLinux 8nodejsFixed1:18.19.1-1.module_el8.9.0+3753+4de0891bALSA-2024:1687
AlmaLinux 8nodejs-develFixed1:20.11.1-1.module_el8.9.0+3775+d8460d35ALSA-2024:1510
AlmaLinux 8nodejs-docsFixed1:20.11.1-1.module_el8.9.0+3775+d8460d35ALSA-2024:1510
AlmaLinux 8nodejs-full-i18nFixed1:18.19.1-1.module_el8.9.0+3753+4de0891bALSA-2024:1687
AlmaLinux 8nodejs-nodemonFixed3.0.1-1.module_el8.9.0+3731+490e3ce5ALSA-2024:1510
AlmaLinux 8nodejs-packagingFixed2021.06-4.module_el8.7.0+3343+ea2b7901ALSA-2024:1687
AlmaLinux 8nodejs-packaging-bundlerFixed2021.06-4.module_el8.7.0+3343+ea2b7901ALSA-2024:1687
AlmaLinux 8npmFixed1:10.2.4-1.18.19.1.1.module_el8.9.0+3753+4de0891bALSA-2024:1687
Rocky Linux 9nodejs-nodemonFixed0:3.0.1-1.module+el9.6.0+32185+bd121a25RLSA-2024:1688
Rocky Linux 9nodejs-packagingFixed0:2021.06-4.module+el9.6.0+32185+bd121a25RLSA-2024:1688
Rocky Linux 8nodejsFixed1:18.19.1-1.module+el8.9.0+1768+6b454dc0RLSA-2024:1687
Rocky Linux 8nodejs-nodemonFixed0:3.0.1-1.module+el8.8.0+1459+02651ab6RLSA-2024:1687
Rocky Linux 8nodejs-packagingFixed0:2021.06-4.module+el8.7.0+1072+5b168780RLSA-2024:1687
Alpine Linux 3.24openjdk17Fixed17.0.11_p9-r0ALPINE-CVE-2024-21892
Alpine Linux 3.24openjdk21Fixed21.0.3_p9-r0ALPINE-CVE-2024-21892
Alpine Linux 3.23openjdk17Fixed17.0.11_p9-r0ALPINE-CVE-2024-21892
Alpine Linux 3.23openjdk21Fixed21.0.3_p9-r0ALPINE-CVE-2024-21892
Alpine Linux 3.22openjdk17Fixed17.0.11_p9-r0ALPINE-CVE-2024-21892
Alpine Linux 3.22openjdk21Fixed21.0.3_p9-r0ALPINE-CVE-2024-21892
Alpine Linux 3.21openjdk17Fixed17.0.11_p9-r0ALPINE-CVE-2024-21892
Alpine Linux 3.21openjdk21Fixed21.0.3_p9-r0ALPINE-CVE-2024-21892
Alpine Linux 3.20openjdk17Fixed17.0.11_p9-r0ALPINE-CVE-2024-21892
Alpine Linux 3.20openjdk21Fixed21.0.3_p9-r0ALPINE-CVE-2024-21892
Alpine Linux 3.19openjdk17Fixed17.0.11_p9-r0ALPINE-CVE-2024-21892
Alpine Linux 3.19openjdk21Fixed21.0.3_p9-r0ALPINE-CVE-2024-21892
Alpine Linux 3.18openjdk17Fixed17.0.11_p9-r0ALPINE-CVE-2024-21892
Alpine Linux 3.17openjdk17Fixed17.0.11_p9-r0ALPINE-CVE-2024-21892

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.

References

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.