1. Archivio CVE
  2. 2019
  3. CVE-2019-10761

CVE-2019-10761

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

Descrizione

This affects the package vm2 before 3.6.11. It is possible to trigger a RangeError exception from the host rather than the "sandboxed" context by reaching the stack call limit with an infinite recursion. The returned object is then used to reference the mainModule property of the host code running the script allowing it to spawn a child_process and execute arbitrary code.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
vm2 project vm2 < 3.6.11 node.js
Tutte le 36 vulnerabilità di Vm2 Project Vm2

Tipo di vulnerabilità

CWE-674 Ricorsione non controllata

Il prodotto non controlla la profondità della ricorsione, che può consumare risorse eccessive come la memoria o lo stack del programma.

Impatto sui sistemi

AmbitoImpatto
Disponibilità Interruzione del servizio: esaurimento della CPU, Interruzione del servizio: esaurimento della memoria
Riservatezza Leggere i dati dell’applicazione

Come si previene

Sviluppo Ensure that an end condition will be reached under all logic conditions. The end condition may include checking against the depth of recursion and exiting with an error if the recursion goes too deep. The complexity of the end condition contributes to the effectiveness of this action.
Sviluppo Increase the stack size.

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

Tutte le 662 CVE di tipo CWE-674, con andamento e prevenzione

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