7.8

CVE-2024-21892: nodejs node Improper Control of Generation of Code

Modified
AliasesDEBIAN-CVE-2024-21892CGA-gpq4-2m9r-m253CGA-v8j2-r79r-rf2q
Published 20-02-2024Last modified 30-04-2025

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.

Priority
Routine

Not severe (CVSS 7.5, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
7.8/10
010
High · v3.1 (NVD)
EPSS score
0.56%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 13 · Related 7

Timeline

  1. 20-02-2024
    PublishedVulnerability first disclosed.
  2. 30-04-2025
    Last 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

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

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

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

References

6 links