Critical severityNVD Advisory· Published Sep 6, 2022· Updated Apr 22, 2025
vm2 vulnerable to Sandbox Escape before v3.9.11
CVE-2022-36067
Description
vm2 is a sandbox that can run untrusted code with whitelisted Node's built-in modules. In versions prior to version 3.9.11, a threat actor can bypass the sandbox protections to gain remote code execution rights on the host running the sandbox. This vulnerability was patched in the release of version 3.9.11 of vm2. There are no known workarounds.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
vm2npm | < 3.9.11 | 3.9.11 |
Affected products
2- Range: < 3.9.11
Patches
Vulnerability mechanics
References
9- github.com/advisories/GHSA-mrgp-mrhc-5jrqghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2022-36067ghsaADVISORY
- github.com/patriksimek/vm2/blob/master/lib/setup-sandbox.jsghsaWEB
- github.com/patriksimek/vm2/commit/d9a7f3cc995d3d861e1380eafb886cb3c5e2b873ghsaWEB
- github.com/patriksimek/vm2/issues/467ghsaWEB
- github.com/patriksimek/vm2/security/advisories/GHSA-mrgp-mrhc-5jrqghsaWEB
- security.netapp.com/advisory/ntap-20221017-0002ghsaWEB
- www.oxeye.io/blog/vm2-sandbreak-vulnerability-cve-2022-36067ghsaWEB
- security.netapp.com/advisory/ntap-20221017-0002/mitre
News mentions
1- Critical vm2 sandbox bug lets attackers execute code on hostsBleepingComputer · May 6, 2026