CVE-2024-21892

nodejs: code injection and privilege escalation through Linux capabilities

Published Feb 20, 2024 CVSS 3.1 · 7.8 High EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DSA Debian DSA DSA-5991-1 nodejs security update
EUVD EUVD EUVD-2024-19503 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.
History
Type Values Removed Values Added
Metrics epss

{'score': 0.00213}

epss

{'score': 0.00219}

Type Values Removed Values Added
Weaknesses CWE-269
CPEs cpe:2.3:a:nodejs:node.js:18.0.0:*:*:*:*:*:*:*
cpe:2.3:a:nodejs:node.js:20.0.0:*:*:*:*:*:*:*
cpe:2.3:a:nodejs:node.js:21.0.0:*:*:*:*:*:*:*
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Linux
Linux linux Kernel
Nodejs
Nodejs node.js
CPEs cpe:2.3:a:nodejs:node.js:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:-:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
Nodejs
Nodejs node.js
Metrics cvssV3_1

{'score': 8.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N'}

cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
hackerone
Published
Updated
Apr 30, 2025, 10:25 PM
Reserved
Jan 3, 2024, 1:04 AM
Status
Modified
Published
Feb 20, 2024, 2:15 AM
Modified
Jun 17, 2026, 7:10 AM
Severity
Important
Public date
Feb 16, 2024, 12:00 AM