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 package | Versions | Reported by |
|---|---|---|
| vm2 | from unspecified before 3.6.11 | CVE List |
| vm2 (npm) | before 3.6.11 | GitHub Advisory Database |
| vm2_project vm2 | before 3.6.11 | NVD |
All scores
| snyk | 8.3high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L/E:P/RL:O/RC:C |
| GitHub | 8.3high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L |
| NVD | 8.3high CVSS:3.1 | CVSS: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
| https://snyk.io/vuln/SNYK-JS-VM2-473188 | third-party-advisory, web | |
| https://github.com/patriksimek/vm2/issues/197 | exploit, third-party-advisory, web | |
| https://github.com/patriksimek/vm2/commit/4b22d704e4794af63a5a2d633385fd20948f6f90 | patch, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2019-10761 | advisory | |
| https://github.com/patriksimek/vm2/issues/197#issuecomment-480643832 | web | |
| https://gist.github.com/JLLeitschuh/609bb2efaff22ed84fe182cf574c023a | web | |
| https://github.com/patriksimek/vm2 | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2019-10761 changed 2024-09-16 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-wf5x-cr3r-xr77 changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2019-10761 changed 2026-06-17 | Public domain |