CVE-2024-21892
JSON

7.5high

On Linux, Node.js ignores certain environment variables if those may have been set by an unprivileged user while the process is running wit…

Severity
7.5high CVSS:3.0 by hackerone
Exploit likelihood
0.56% (higher than 48% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
hackerone
Also known as
BIT-NODE-2024-21892BIT-NODE-MIN-2024-21892

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

Product or packageVersionsReported by
NodeJS Nodefrom 4.0 before 4.*, from 5.0 before 5.*, from 6.0 before 6.*, from 7.0 before 7.*, from 8.0 before 8.*, from 9.0 before 9.*, from 10.0 before 10.*, from 11.0 before 11.* and 10 moreCVE List
nodejs node.jsfrom 18.0.0 up to 18.19.0, from 20.0.0 up to 20.11.0, from 21.0.0 up to 21.6.0, from 18.0.0 before 18.19.1, from 20.0.0 before 20.11.1, from 21.0.0 before 21.6.2CVE List, NVD
node (Bitnami)before 18.19.1, from 19.0.0 before 20.11.1, from 21.0.0 before 21.6.2Bitnami Vulnerability Database
node-min (Bitnami)before 18.19.1, from 19.0.0 before 20.11.1, from 21.0.0 before 21.6.2Bitnami Vulnerability Database

All scores

hackerone7.5high CVSS:3.0CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N
NVD7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Bitnami Vulnerability Databasehigh rating

Classification

CWE-94CWE-269

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

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.

NVD (es)

En Linux, Node.js ignora ciertas variables de entorno si pueden haber sido configuradas por un usuario sin privilegios mientras el proceso se ejecuta con privilegios elevados con la única excepción de CAP_NET_BIND_SERVICE. Debido a un error en la implementación de esta excepción, Node.js aplica incorrectamente esta excepción incluso cuando se han configurado otras capacidades. Esto permite a los usuarios sin privilegios inyectar código que hereda los privilegios elevados del proceso.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-21892 changed 2025-04-30CVE Terms of Use
NVDCVE-2024-21892 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-NODE-2024-21892 changed 2026-09-08Apache-2.0
Bitnami Vulnerability DatabaseBIT-NODE-MIN-2024-21892 changed 2026-09-08Apache-2.0