CVE-2024-22025
nodejs: using the fetch() function to retrieve content from an untrusted URL leads to denial of service
Overview
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.
Source: OX vulnerability database
Severity
6.5 · MEDIUM
CVSS 3.0 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- None
- Availability
- High
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Weakness: CWE-404
Affected packages · 2
Operating systems · 91 fixes
Azure Linux 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.0 | nodejs | 0:20.14.0-1.azl3 |
Oracle Linux 2 releases · 5 packages
| Release | Package | Fixed in |
|---|---|---|
| 8 | npm | 1:10.5.0-1.20.12.2.2.module+el8.9.0+90318+7fb2e04b |
| 8 | nodejs +3 | 1:20.12.2-2.module+el8.9.0+90318+7fb2e04b |
| 8 | nodejs-packaging +1 | 2021.06-4.module+el8.9.0+90157+ed89dc20 |
| 8 | nodejs-nodemon | 3.0.1-1.module+el8.9.0+90157+ed89dc20 |
| 9 | npm | 1:10.5.0-1.20.12.2.2.module+el9.4.0+90322+0b80090c |
| 9 | nodejs-libs | 1:16.20.2-8.0.1.el9_4 |
3 more rows
Photon OS 2 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 4.0 | nodejs +1 | 18.19.1-1.ph4 |
| 5.0 | nodejs +1 | 20.11.1-1.ph5 |
Red Hat 6 releases · 4 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 8 (nodejs:16) | nodejs +10 | wont fix | — |
| 8 (nodejs:18) | nodejs-packaging +1 | 0:2021.06-4.module+el8.9.0+21190+5ebd2c33 | RHSA-2024:2780 |
| 8 (nodejs:18) | nodejs-nodemon | 0:3.0.1-1.module+el8.9.0+21190+5ebd2c33 | RHSA-2024:2780 |
| 8 (nodejs:18) | npm | 1:10.5.0-1.18.20.2.1.module+el8.9.0+21767+537f34ee | RHSA-2024:2780 |
| 8 (nodejs:18) | nodejs +3 | 1:18.20.2-1.module+el8.9.0+21767+537f34ee | RHSA-2024:2780 |
| 8 (nodejs:20) | nodejs-packaging +1 | 0:2021.06-4.module+el8.9.0+19519+e25b965a | RHSA-2024:2778 |
17 more rows
SUSE Linux Enterprise 2 releases · 3 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 15.4 | nodejs16 +3 | 16.20.2-150400.3.30.1 | SUSE-SU-2024:0728-1 |
| 15.4 | nodejs18 +3 | 18.19.1-150400.9.18.2 | SUSE-SU-2024:0730-1 |
| 15.5 | nodejs18 +3 | 18.19.1-150400.9.18.2 | SUSE-SU-2024:0730-1 |
| 15.5 | nodejs20 +3 | 20.11.1-150500.11.6.1 | SUSE-SU-2024:0643-1 |
alma 5 releases · 4 packages
| Release | Package | Fixed in |
|---|---|---|
| 8 (nodejs:18) | npm | 1:10.5.0-1.18.20.2.1.module_el8.9.0+3828+c9fa9644 |
| 8 (nodejs:18) | nodejs +3 | 1:18.20.2-1.module_el8.9.0+3828+c9fa9644 |
| 8 (nodejs:18) | nodejs-packaging +1 | 2021.06-4.module_el8.7.0+3343+ea2b7901 |
| 8 (nodejs:18) | nodejs-nodemon | 3.0.1-1.module_el8.8.0+3613+1ed8c91d |
| 8 (nodejs:20) | npm | 1:10.5.0-1.20.12.2.2.module_el8.9.0+3827+11b91f3e |
| 8 (nodejs:20) | nodejs +3 | 1:20.12.2-2.module_el8.9.0+3827+11b91f3e |
12 more rows
amazon linux 1 release · 6 packages
| Release | Package | Fixed in |
|---|---|---|
| 2023 | nodejs20-npm | 1:10.2.4-1.20.11.1.1.amzn2023.0.1 |
| 2023 | nodejs +7 | 1:18.18.2-1.amzn2023.0.3 |
| 2023 | nodejs20 +7 | 1:20.11.1-1.amzn2023.0.1 |
| 2023 | nodejs-npm | 1:9.8.1-1.18.18.2.1.amzn2023.0.3 |
| 2023 | v8-10-2-devel | 3:10.2.154.26-1.18.18.2.1.amzn2023.0.3 |
| 2023 | v8-11-3-devel | 3:11.3.244.8-1.20.11.1.1.amzn2023.0.1 |
debian 5 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 10 | nodejs | 10.24.0~dfsg-1~deb10u4 |
| 11 | nodejs | 12.22.12~dfsg-1~deb11u5 |
| 12 | nodejs | 18.20.4+dfsg-1~deb12u1 |
| 13 | nodejs | 18.19.1+dfsg-1 |
| 14 | nodejs | 18.19.1+dfsg-1 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| nodejs | 18.20.4+dfsg-1~deb12u1 |
openSUSE 1 release · 2 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | corepack20 +4 | 20.11.1-1.1 | openSUSE-SU-2024:13697-1 |
| Tumbleweed | corepack21 +4 | 21.6.2-1.1 | openSUSE-SU-2024:13698-1 |
rocky 4 releases · 4 packages
| Release | Package | Fixed in |
|---|---|---|
| 8 (nodejs:18) | npm | 1:10.5.0-1.18.20.2.1.module+el8.9.0+1803+9ac8b495 |
| 8 (nodejs:18) | nodejs +3 | 1:18.20.2-1.module+el8.9.0+1803+9ac8b495 |
| 8 (nodejs:18) | nodejs-packaging +1 | 2021.06-4.module+el8.7.0+1072+5b168780 |
| 8 (nodejs:18) | nodejs-nodemon | 3.0.1-1.module+el8.8.0+1459+02651ab6 |
| 8 (nodejs:20) | npm | 1:10.5.0-1.20.12.2.2.module+el8.9.0+1804+2708cc21 |
| 8 (nodejs:20) | nodejs +3 | 1:20.12.2-2.module+el8.9.0+1804+2708cc21 |
10 more rows
root.io debian 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 12 | nodejs +1 | 18.20.4+dfsg-1~deb12u1 |
ubuntu 3 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 18.04-ESM | nodejs | affected |
| 20.04-ESM | nodejs | affected |
| 22.04 | nodejs | affected |
References
- access.redhat.com https://access.redhat.com/errata/RHSA-2024:2780
- access.redhat.com https://access.redhat.com/errata/RHSA-2024:2910
- access.redhat.com https://access.redhat.com/security/cve/CVE-2024-22025
- bugzilla.redhat.com https://bugzilla.redhat.com/2265713
- bugzilla.redhat.com https://bugzilla.redhat.com/2268639
- bugzilla.redhat.com https://bugzilla.redhat.com/2270559
- bugzilla.redhat.com https://bugzilla.redhat.com/2272764
- bugzilla.redhat.com https://bugzilla.redhat.com/2275392
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2265713
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2268639
Show all 35 references
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2270559
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2272764
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2275392
- creativecommons.org https://creativecommons.org/licenses/by/4.0/
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-22025
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-25629
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-27982
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-27983
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-28182
- errata.almalinux.org https://errata.almalinux.org/9/ALSA-2024-2910.html
- errata.rockylinux.org https://errata.rockylinux.org/RLSA-2024:2780
- github.com https://github.com/nodejs/node/commit/9052ef43dc2d1b0db340591a9bc9e45a25c01d90 (main)
- github.com https://github.com/nodejs/node/commit/f31d47e135973746c4f490d5eb635eded8bb3dda (v18.x)
- github.com https://github.com/nodejs/node/releases/tag/v18.19.1
- github.com https://github.com/nodejs/node/releases/tag/v20.11.1
- github.com https://github.com/nodejs/node/releases/tag/v21.6.2
- hackerone.com https://hackerone.com/reports/2284065
- linux.oracle.com https://linux.oracle.com/cve/CVE-2024-22025.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2024-2910.html
- lists.debian.org https://lists.debian.org/debian-lts-announce/2024/03/msg00029.html
- lists.debian.org https://lists.debian.org/debian-lts-announce/2024/09/msg00029.html
- nodejs.org https://nodejs.org/en/blog/release/v18.19.1
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2024-22025
- security.netapp.com https://security.netapp.com/advisory/ntap-20240517-0008/
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2024-22025
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.