vm2: Snabox breakout via `neutralizeArraySpeciesBatch`
A public exploit exists; no exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in 3.11.2 and vm2 3.11.2.
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
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| patriksimek | <3.11.2 | ||
| vm2_project | vm2 | <3.11.2 | 3.11.2 |
| npm: vm2 | <3.11.2, <=3.11.1 | 3.11.2 |
Exploit evidence
1 public sources
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in vm2 (npm), strongest first
Embed
A live severity badge for an advisory, README or ticket