CVE-2019-10761
JSON

8.3high

Sandbox Bypass

Severity
8.3high CVSS:3.1 by snyk
Exploit likelihood
1.33% (higher than 71% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
snyk
Also known as
GHSA-wf5x-cr3r-xr77SNYK-JS-VM2-473188

Description

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.

Affected

Product or packageVersionsReported by
vm2from unspecified before 3.6.11CVE List
vm2 (npm)before 3.6.11GitHub Advisory Database
vm2_project vm2before 3.6.11NVD

All scores

snyk8.3high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L/E:P/RL:O/RC:C
GitHub8.3high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L
NVD8.3high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L

Classification

What each source says

CVE List

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.

NVD (es)

Esto afecta al paquete vm2 versiones anteriores a 3.6.11. Es posible desencadenar una excepción RangeError desde el host y no desde el contexto "sandboxed" alcanzando el límite de llamadas de la pila con una recursión infinita. El objeto devuelto se usa entonces para referenciar la propiedad mainModule del código del host que ejecuta el script permitiéndole generar un child_process y ejecutar código arbitrario

References

Sources

SourceRecordLicence
CVE ListCVE-2019-10761 changed 2024-09-16CVE Terms of Use
GitHub Advisory DatabaseGHSA-wf5x-cr3r-xr77 changed 2026-09-10CC-BY-4.0
NVDCVE-2019-10761 changed 2026-06-17Public domain