CVE-2024-21892

State
Published
Severity
7.5 High
Published
Feb 20, 2024
Updated
Apr 30, 2025
Reserved
Jan 3, 2024

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.07.5 HighCVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:Nhackerone

Weaknesses

  • CWE-269 Improper Privilege Management

Affected Products

ProductVersions
NodeNodeJS
  • 4.0 to before 4.*Affected
  • 5.0 to before 5.*Affected
  • 6.0 to before 6.*Affected
  • 7.0 to before 7.*Affected
  • 8.0 to before 8.*Affected
  • 9.0 to before 9.*Affected
  • 10.0 to before 10.*Affected
  • 11.0 to before 11.*Affected
  • 12.0 to before 12.*Affected
  • 13.0 to before 13.*Affected
  • 14.0 to before 14.*Affected
  • 15.0 to before 15.*Affected
  • 16.0 to before 16.*Affected
  • 17.0 to before 17.*Affected
  • 18.0 to before 18.19.1Affected
  • 19.0 to before 19.*Affected
  • 20.0 to before 20.11.1Affected
  • 21.0 to before 21.6.2Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.