CVEvulnerability

CVE-2024-21892

7.8 HIGH Published 2024-02-20 Modified 2026-06-17 Official page ↗
Status
Modified
Published
2024-02-20
Last modified
2026-06-17
Assigner
[email protected]
CVSS 3.1 ([email protected])
7.8 HIGH — CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS 3.0 ([email protected])
7.5 HIGH — CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N
Weaknesses
CWE-269, CWE-94

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 configurations

• nodejs node.js (>= 18.0.0 < 18.19.1) • nodejs node.js (>= 20.0.0 < 20.11.1) • nodejs node.js (>= 21.0.0 < 21.6.2)

Related

Weakness · CWE (2)

  • CWE-269 Improper Privilege Management weakness
  • CWE-94 Improper Control of Generation of Code weakness

References