Node.js Linux Env Var Injection via Misapplied CAP Exception
CVE-2024-21892 Published on February 20, 2024

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.

NVD

Weakness Type

Improper Privilege Management

The software does not properly assign, modify, track, or check privileges for an actor, creating an unintended sphere of control for that actor.


Products Associated with CVE-2024-21892

You can be notified by email with stack.watch whenever vulnerabilities like CVE-2024-21892 are published in nodejs node.js:

 

Affected Versions

NodeJS Node: nodejs node.js: nodejs node.js: nodejs node.js:

Exploit Probability

EPSS
0.25%
Percentile
47.80%

EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.