CVE-2024-21892

Name
CVE-2024-21892
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.
NVD Severity
medium
Other trackers
Mailing lists
Exploits
Forges
GitHub (code, issues), Aports (code, issues)

References

Type URI
support@hackerone.com https://hackerone.com/reports/2237545
support@hackerone.com https://security.netapp.com/advisory/ntap-20240322-0003/
support@hackerone.com http://www.openwall.com/lists/oss-security/2024/03/11/1

Match rules

CPE URI Source package Min version Max version
node.js >= 0 <= 21.6.0
node.js >= 0 <= 20.11.0
node.js >= 0 <= 18.19.0

Vulnerable and fixed packages

Source package Branch Version Maintainer Status
openjdk17 3.19-community 17.0.11_p9-r0 Simon Frankenberger <simon-alpine@fraho.eu> fixed
openjdk21 3.19-community 21.0.3_p9-r0 Simon Frankenberger <simon-alpine@fraho.eu> fixed