CVE-2024-22025 Denial of service in Node
An attacker can cause a Denial of Service in Node.js applications by exploiting resource exhaustion in the fetch() function when retrieving content from untrusted URLs.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2024-22025?
CVE-2024-22025 is a medium-severity denial of service vulnerability in NodeJS Node, published on 19 Mar 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
A vulnerability in Node.js has been identified, allowing for a Denial of Service (DoS) attack through resource exhaustion when using the fetch() function to retrieve content from an untrusted URL. The vulnerability stems from the fact that the fetch() function in Node.js always decodes Brotli, making it possible for an attacker to cause resource exhaustion when fetching content from an untrusted URL. An attacker controlling the URL passed into fetch() can exploit this vulnerability to exhaust memory, potentially leading to process termination, depending on the system configuration.
Weakness: CWE-404
Which versions are affected by CVE-2024-22025?
2 open source packages ship an affected version, including node and node-min.
| Package | Affected | Fixed in |
|---|---|---|
node Bitnami | All versions | 18.19.1, 20.11.1, 21.6.2 |
node-min Bitnami | All versions | 18.19.1, 20.11.1, 21.6.2 |
How do I fix CVE-2024-22025?
Upgrade node to a fixed version for your release line: 18.19.1, 20.11.1 or 21.6.2.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2024-22025 being exploited?
There is no known exploitation of CVE-2024-22025 in the wild and no public exploit code.
Sources
Also known as AZL-35898, AZL-35909, AZL-35911, BELL-CVE-2024-22025, BIT-node-2024-22025, BIT-node-min-2024-22025 and 4 more.