Remote code executionin patriksimek vm2.
Proof of concept public (GitHub).
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.
- Upgrade vm2 to 3.9.11 or later.
- Upgrade vm2 (npm) to 3.9.11 or later.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 15 Jul 2022CVE ID reserved by GitHub_M.
- 6 Sep 2022Published in the CVE List.
- 12 Oct 2022First public proof of concept on GitHub.
- 22 Apr 2025CVE record last updated.
Attack code anyone can find
Exploit maturity: Proof of concept (GitHub). CISA assessment (SSVC): exploitation poc.
Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.
Report a link
Other vm2 vulnerabilities
Same weakness: Improper control of dynamic code resources
Patchminder. CVE-2022-36067: Remote code execution in patriksimek vm2. https://patchminder.com/cve/cve-2022-36067/ (accessed 5 December 2026).