CVE-2024-21892Nodejs Node.js
High 7.8
Follow: this CVE · Nodejs · Nodejs Node.js We alert you by email or Slack (account required).
- Priority
- 47
- CVSS 3.1
- 7.8
- EPSS
- 0.6% probability of exploitation in 30 days · percentile 42
- Auth required
- Yes
- Published
- Feb 20, 2024
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: total
- Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Node.js.
Affected products (CPE)
| 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 |
Official sources
References
Links published by the sources. Open them with care.
- www.openwall.com Mailing List Third Party Advisory
- hackerone.com Issue Tracking Third Party Advisory
- security.netapp.com Third Party Advisory