1. Archivio CVE
  2. 2024
  3. CVE-2024-22025

CVE-2024-22025

6.5 Gravità media CVSS v3.0 · fonte NVD CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H 6.5 – Media

Descrizione

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.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
nodejs node >= 4.0 < 4.* –
nodejs node >= 5.0 < 5.* –
nodejs node >= 6.0 < 6.* –
nodejs node >= 7.0 < 7.* –
nodejs node >= 8.0 < 8.* –
nodejs node >= 9.0 < 9.* –
nodejs node >= 10.0 < 10.* –
nodejs node >= 11.0 < 11.* –
nodejs node >= 12.0 < 12.* –
nodejs node >= 13.0 < 13.* –
nodejs node >= 14.0 < 14.* –
nodejs node >= 15.0 < 15.* –
nodejs node >= 16.0 < 16.* –
nodejs node >= 17.0 < 17.* –
nodejs node >= 18.0 < 18.19.1 –
nodejs node >= 19.0 < 19.* –
nodejs node >= 20.0 < 20.11.1 –
nodejs node >= 21.0 < 21.6.2 –
Tutte le 57 vulnerabilità di Nodejs Node

Tipo di vulnerabilità

CWE-404 Chiusura o rilascio improprio di una risorsa

Il prodotto non rilascia, o rilascia in modo errato, una risorsa prima che venga resa disponibile per un nuovo uso.

Impatto sui sistemi

AmbitoImpatto
Disponibilità, Altro Interruzione del servizio: esaurimento di risorse, Dipende dal contesto
Riservatezza Leggere i dati dell’applicazione

Come si previene

Requisiti · Scelta del linguaggio Use a language that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid. For example, languages such as Java, Ruby, and Lisp perform automatic garbage collection that releases memory for objects that have been deallocated.
Sviluppo It is good practice to be responsible for freeing all resources you allocate and to be consistent with how and where you free memory in a function. If you allocate memory that you intend to free upon completion of the function, you must be sure to free the memory at all exit points for that function including error conditions.
Sviluppo Memory should be allocated/freed using matching functions such as malloc/free, new/delete, and new[]/delete[].
Sviluppo When releasing a complex object or structure, ensure that you properly dispose of all of its member components, not just the object itself.

Le indicazioni di mitigazione sono riportate nella lingua originale del catalogo CWE del MITRE.

Tutte le 740 CVE di tipo CWE-404, con andamento e prevenzione

Fonte: catalogo CWE del MITRE · cwe.mitre.org