CVE-2024-21892: nodejs node Improper Control of Generation of Code
Vulnerability summary
CVE-2024-21892 is a high (CVSS 7.8) Improper Control of Generation of Code vulnerability in nodejs node. EPSS estimates a 0.56% chance of exploitation in the next 30 days, higher than 46.7% of scored vulnerabilities.
Not severe (CVSS 7.5, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 13 · Related 7Timeline
- 20-02-2024PublishedVulnerability first disclosed.
- 30-04-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
7 scores · 6 sources · 2 versions- OSV · DebianEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · WolfiEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · ChainguardEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · AlpineEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- NVDNIST7.5HighCVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N
EPSS trend
Probability
0.56%
Chance of exploitation in the next 30 days
Percentile
47%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.56% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-94Improper Control of Generation of CodeThe product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.
- CWE-269Improper Privilege ManagementThe product does not properly assign, modify, track, or check privileges for an actor, creating an unintended sphere of control for that actor.
Affected systems
Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Alpine2 products
- openjdk17< 17.0.11_p9-r0
- openjdk21< 21.0.3_p9-r0
Chainguard2 products
- eco-nodejs-20.9.0All versions (No fix recorded)
- nodejs-16All versions (No fix recorded)
Nodejs2 products
- node≥ 4.0, < 4.* | ≥ 5.0, < 5.* | ≥ 6.0, < 6.* | ≥ 7.0, < 7.* | ≥ 8.0, < 8.* | ≥ 9.0, < 9.* | ≥ 10.0, < 10.* | ≥ 11.0, < 11.* | ≥ 12.0, < 12.* | ≥ 13.0, < 13.* | ≥ 14.0, < 14.* | ≥ 15.0, < 15.* | ≥ 16.0, < 16.* | ≥ 17.0, < 17.* | ≥ 18.0, < 18.19.1 | ≥ 19.0, < 19.* | ≥ 20.0, < 20.11.1 | ≥ 21.0, < 21.6.2
- node.js≥ 18.0.0, < 18.19.1 | ≥ 20.0.0, < 20.11.1 | ≥ 21.0.0, < 21.6.2
Debian1 product
- nodejs< 18.20.4+dfsg-1~deb12u1 | < 18.19.1+dfsg-1
Wolfi1 product
- nodejs-16All versions (No fix recorded)
5 vendors · 8 products