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 7.8/10
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HWeakness enumeration
Affected software
| Vendor | Product | Versions |
|---|---|---|
| NodeJS | Node | >= 4.0, < 4.*; >= 5.0, < 5.*; >= 6.0, < 6.*; >= 7.0, < 7.*; >= 8.0, < 8.*; >= 9.0, < 9.*; >= 10.0, < 10.*; >= 11.0, < 11.*; >= 12.0, < 12.*; >= 13.0, < 13.*; >= 14.0, < 14.*; >= 15.0, < 15.*; >= 16.0, < 16.*; >= 17.0, < 17.*; >= 18.0, < 18.19.1; >= 19.0, < 19.*; >= 20.0, < 20.11.1; >= 21.0, < 21.6.2 |
| nodejs | node.js | >= 18.0.0, <= 18.19.0 |
| nodejs | node.js | >= 20.0.0, <= 20.11.0 |
| nodejs | node.js | >= 21.0.0, <= 21.6.0 |
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
- Feb 20, 2024
- Last modified
- Jun 17, 2026
- NVD status
- Modified