CVE-2024-21892
Last modified
CVE-2024-21892 is a high-severity vulnerability rated 7.8/10 on the CVSS scale. 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.. EPSS estimates a 0.56% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Nodejs | Node.Js | >= 18.0.0, < 18.19.1 |
| Nodejs | Node.Js | >= 20.0.0, < 20.11.1 |
| Nodejs | Node.Js | >= 21.0.0, < 21.6.2 |
References
- http://www.openwall.com/lists/oss-security/2024/03/11/1Mailing List, Third Party Advisory
- https://hackerone.com/reports/2237545Issue Tracking, Third Party Advisory
- https://security.netapp.com/advisory/ntap-20240322-0003/Third Party Advisory
- http://www.openwall.com/lists/oss-security/2024/03/11/1Mailing List, Third Party Advisory
- https://hackerone.com/reports/2237545Issue Tracking, Third Party Advisory
- https://security.netapp.com/advisory/ntap-20240322-0003/Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2024-21892?
How severe is CVE-2024-21892?
How do I fix CVE-2024-21892?
Are you affected by CVE-2024-21892?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
