patchminder
Proof of concept · GitHub CVE-2022-36067

Remote code executionin patriksimek vm2.

Published 6 Sep 2022 · Updated 22 Apr 2025 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Proof of concept public (GitHub).

Attack code is public
Severity
Critical 10.0
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.1 · no login needed
Attack likelihood
High
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 48.4% chance in 30 days · 4 Dec 2026
Fix
Available
Upgrade to 3.9.11 or later
In plain words

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.

What to do now
  • Upgrade vm2 to 3.9.11 or later.
  • Upgrade vm2 (npm) to 3.9.11 or later.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
vm2
before 3.9.11
3.9.11
CVE record
vm2 (npm)
before 3.9.11
3.9.11
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 15 Jul 2022
    CVE ID reserved by GitHub_M.
  2. 6 Sep 2022
    Published in the CVE List.
  3. 12 Oct 2022
    First public proof of concept on GitHub.
  4. 22 Apr 2025
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: Proof of concept (GitHub). CISA assessment (SSVC): exploitation poc.

Metasploit module
None known
Nuclei scan template
None known
Exploit-DB
None known
GitHub proof of concepts
2 repositories
GitHubno warning signs foundprathamhasnotchanged/Exploit-For-CVE-2022-360677 stars · created 5 Nov 2022This repo contains payload for the CVE-2022-36067
GitHubno warning signs found0x1nsomnia/CVE-2022-36067-vm2-POC-webapp2 stars · created 12 Oct 2022

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.

Related

Other vm2 vulnerabilities

Same weakness: Improper control of dynamic code resources

All CWE-913 vulnerabilities

References
Cite this page

Patchminder. CVE-2022-36067: Remote code execution in patriksimek vm2. https://patchminder.com/cve/cve-2022-36067/ (accessed 5 December 2026).