CVEvulnerability
CVE-2024-21892
7.8 HIGH
Official page ↗
- Status
- Modified
- Published
- 2024-02-20
- Last modified
- 2026-06-17
- Assigner
- [email protected]
- CVSS 3.1 ([email protected])
- 7.8 HIGH — CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CVSS 3.0 ([email protected])
- 7.5 HIGH — CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N
- Weaknesses
- CWE-269, CWE-94
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 configurations
• 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)
Related
References
- 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://security.netapp.com/advisory/ntap-20240322-0003/ 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://security.netapp.com/advisory/ntap-20240322-0003/ Third Party Advisory