CVE-2024-21892: Node.js
High severity, CVSS 7.8. EPSS: 0.6% chance of exploitation in the next 30 days.
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 products
- Node.js Node.js: from 18.0.0, before 18.19.1 (fixed in 18.19.1); from 20.0.0, before 20.11.1 (fixed in 20.11.1); from 21.0.0, before 21.6.2 (fixed in 21.6.2)
Published 2024-02-20. Last modified 2026-06-17.