2084AI Security Observatory

CVE

CVE-2024-21892

CVE-2024-21892HIGH 7.8EPSS 48%

CNA 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 versions

All Node.js vulnerabilities →

  • ≥ 21.0.0, < 21.6.2Fixed in 21.6.2
  • ≥ 20.0.0, < 20.11.1Fixed in 20.11.1
  • ≥ 18.0.0, < 18.19.1Fixed in 18.19.1

Distribution packages (Debian, Ubuntu, Red Hat…) backport fixes without changing the upstream version: check your distribution’s advisory as well.

Data: NVD (public domain), CISA KEV (CC0), FIRST EPSS, OSV.dev / GitHub Advisory Database (CC-BY 4.0) · This database lists affected versions and fixes only. It never hosts or links exploit code.