Description (CNA)
vm2 is an open source vm/sandbox for Node.js. Prior to 3.11.2, the new method neutralizeArraySpeciesBatch works with objects from the other side but can call into this side via getter on the array prototype exposing objects of the wrong side into the sandbox. This can be used to get host objects and get the host Function object. This allows attackers to write code which can escape from the VM2 sandbox and execute arbitrary commands on the host system. This vulnerability is fixed in 3.11.2.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| patriksimek / vm2 | affected < 3.11.2 |
CWE
CWE-668
References
ADP enrichment
No English description supplied.
No references supplied.
A flaw was found in vm2 (before 3.11.2). The neutralizeArraySpeciesBatch method can invoke host-side getters on array prototypes, exposing host objects and the host Function into the sandbox for escape and arbitrary command execution. Fixed in 3.11.2.