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.
References
| Link | Resource |
|---|---|
| http://www.openwall.com/lists/oss-security/2024/03/11/1 | Mailing List Third Party Advisory |
| http://www.openwall.com/lists/oss-security/2024/03/11/1 | Mailing List Third Party Advisory |
| https://hackerone.com/reports/2237545 | Issue Tracking Third Party Advisory |
| https://hackerone.com/reports/2237545 | Issue Tracking Third Party Advisory |
| https://security.netapp.com/advisory/ntap-20240322-0003/ | Third Party Advisory |
| https://security.netapp.com/advisory/ntap-20240322-0003/ | Third Party Advisory |
Configurations
Configuration 1 (hide)
| AND |
|
History
12 Feb 2025, 15:17
| Type | Values Removed | Values Added |
|---|---|---|
| References | () http://www.openwall.com/lists/oss-security/2024/03/11/1 - Mailing List, Third Party Advisory | |
| References | () https://security.netapp.com/advisory/ntap-20240322-0003/ - Third Party Advisory | |
| References | () https://hackerone.com/reports/2237545 - Issue Tracking, Third Party Advisory | |
| First Time |
Nodejs node.js
Nodejs Linux linux Kernel Linux |
|
| CWE | CWE-94 | |
| CPE | cpe:2.3:o:linux:linux_kernel:-:*:*:*:*:*:*:* cpe:2.3:a:nodejs:node.js:*:*:*:*:*:*:*:* |
|
| CVSS |
v2 : v3 : |
v2 : unknown
v3 : 7.8 |
01 May 2024, 18:15
| Type | Values Removed | Values Added |
|---|---|---|
| References |
|
22 Mar 2024, 19:15
| Type | Values Removed | Values Added |
|---|---|---|
| References |
|
20 Feb 2024, 02:15
| Type | Values Removed | Values Added |
|---|---|---|
| New CVE |
Information
Published : 2024-02-20 02:15
Updated : 2025-03-13 15:15
NVD link : CVE-2024-21892
Mitre link : CVE-2024-21892
JSON object : View
Products Affected
linux
- linux_kernel
nodejs
- node.js
CWE
CWE-94
Improper Control of Generation of Code ('Code Injection')
