CVE-2024-21892

HIGH

Node.js 18.0.0-18.19.1 - Privilege Escalation via Incorrect CAP_NET_BIND_SERVICE Exception

Title source: llm
STIX 2.1

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.

References (3)

Core 3
Core References
Mailing List, Third Party Advisory
http://www.openwall.com/lists/oss-security/2024/03/11/1
Issue Tracking, Third Party Advisory
https://hackerone.com/reports/2237545

Scores

CVSS v3 7.8
EPSS 0.0045
EPSS Percentile 63.8%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

CISA SSVC

Vulnrichment
Exploitation none
Automatable no
Technical Impact total

Details

CWE
CWE-269 CWE-94
Status published
Products (1)
nodejs/node.js 18.0.0 - 18.19.1
Published Feb 20, 2024
Tracked Since Feb 18, 2026