1. Archivio CVE
  2. 2018
  3. CVE-2018-7166

CVE-2018-7166

7.5 Gravità alta CVSS v3.1 · fonte NVD CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N 7.5 – Alta

Descrizione

In all versions of Node.js 10 prior to 10.9.0, an argument processing flaw can cause `Buffer.alloc()` to return uninitialized memory. This method is intended to be safe and only return initialized, or cleared, memory. The third argument specifying `encoding` can be passed as a number, this is misinterpreted by `Buffer's` internal "fill" method as the `start` to a fill operation. This flaw may be abused where `Buffer.alloc()` arguments are derived from user input to return uncleared memory blocks that may contain sensitive information.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
nodejs node.js >= 10.0.0 < 10.9.0 –
Tutte le 187 vulnerabilità di Nodejs Node.js

Tipo di vulnerabilità

CWE-908 Uso di una risorsa non inizializzata

Il prodotto usa o accede a una risorsa che non è stata inizializzata.

Impatto sui sistemi

AmbitoImpatto
Riservatezza Leggere la memoria, Leggere i dati dell’applicazione
Disponibilità Interruzione del servizio: arresto o riavvio, Interruzione del servizio: instabilità
Altro Stato imprevisto, Dipende dal contesto

Come si previene

Sviluppo Explicitly initialize the resource before use. If this is performed through an API function or standard procedure, follow all required steps.
Sviluppo Pay close attention to complex conditionals that affect initialization, since some branches might not perform the initialization.
Sviluppo Avoid race conditions (CWE-362) during initialization routines.
Build e compilazione Run or compile the product with settings that generate warnings about uninitialized variables or data.

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

Tutte le 1.017 CVE di tipo CWE-908, con andamento e prevenzione

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