Patriksimek vm2
vm2 has a Sandbox Escape
vm2 is an open source vm/sandbox for Node.js. In vm2 prior to version 3.10.2, `Promise.prototype.then` `Promise.prototype.catch` callback sanitization can be bypassed. This allows attackers to escape the sandbox and run arbitrary code. In lib/setup-sandbox.js, the callback function of `localPromise.prototype.then` is sanitized, but `globalPromise.prototype.then` is not sanitized. The return value of async functions is `globalPromise` object. Version 3.10.2 fixes the issue.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS10.0critical · scored by NVD · CWE-94
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
patriksimek vm2
- < 3.10.2
Fixed in 3.10.2
Mitigation
Upgrade vm2 to 3.10.2 or later.
References
- Vendor advisory github.com/patriksimek/vm2/security/advisories…
- Patch github.com/patriksimek/vm2/commit/4b009c2d4b11…
- Release notes github.com/patriksimek/vm2/releases/tag/v3.10.…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.