CVE-2019-10761

HIGH

vm2 <3.6.11 - Code Injection

Title source: llm
STIX 2.1

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.

References (3)

Core 3
Core References
Third Party Advisory x_refsource_misc
https://snyk.io/vuln/SNYK-JS-VM2-473188
Exploit, Third Party Advisory x_refsource_misc
https://github.com/patriksimek/vm2/issues/197

Scores

CVSS v3 8.3
EPSS 0.0082
EPSS Percentile 74.4%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L

Details

CWE
CWE-674
Status published
Products (2)
npm/vm2 0 - 3.6.11npm
vm2_project/vm2 < 3.6.11
Published Jul 13, 2022
Tracked Since Feb 18, 2026