CVE-2024-21892
Published: February 16, 2024Last modified: May 22, 2024
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.
Severity score breakdown
Parameter | Value |
---|---|
Base score | 7.8 |
Attack Vector | LOCAL |
Attack complexity | LOW |
Privileges required | LOW |
User interaction | NONE |
Scope | UNCHANGED |
Confidentiality | HIGH |
Integrity impact | HIGH |
Availability impact | HIGH |
Vector | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Status
Product | Release | Package | Status |
---|---|---|---|
Alpaquita Linux | 23 LTS | nodejs | Fixed (18.19.1-r0) |
Stream | nodejs | Fixed (20.11.1-r0) | |
Liberica NIK | 23 (JDK 17) | standard (nodejs) | Fixed (23.0.4+1) |
23 (JDK 21) | standard (nodejs) | Fixed (23.1.3+2) | |
24 (JDK 22) | nodejs | Fixed (24.0.1+1) |
References
- http://www.openwall.com/lists/oss-security/2024/03/11/1
- https://hackerone.com/reports/2237545
- https://nodejs.org/en/blog/vulnerability/february-2024-security-releases#code-injection-and-privilege-escalation-through-linux-capabilities-cve-2024-21892---high
- https://security.netapp.com/advisory/ntap-20240322-0003/