{"id":"CVE-2022-36067","aliases":["EUVD-2022-6880","GHSA-mrgp-mrhc-5jrq","ROOT-APP-NPM-CVE-2022-36067"],"status":"published","title":"vm2 vulnerable to Sandbox Escape before v3.9.11","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.","severity":{"version":"3.1","score":10,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","level":"critical","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-09","score":0.47868,"percentile":0.98861,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":true},"cwes":["CWE-913"],"published":"2022-09-06T00:00:00Z","modified":"2026-10-28T02:30:36Z","exploits":[{"source":"pocgithub","id":"0x1nsomnia/CVE-2022-36067-vm2-POC-webapp","title":"0x1nsomnia/CVE-2022-36067-vm2-POC-webapp","date":"2022-10-12","url":"https://github.com/0x1nsomnia/CVE-2022-36067-vm2-POC-webapp"},{"source":"pocgithub","id":"prathamhasnotchanged/Exploit-For-CVE-2022-36067","title":"prathamhasnotchanged/Exploit-For-CVE-2022-36067","date":"2022-11-05","url":"https://github.com/prathamhasnotchanged/Exploit-For-CVE-2022-36067"}],"fixes":[{"ecosystem":"npm","package":"vm2","fixed_in":["3.9.11"],"sources":["ghsa","osv"]},{"ecosystem":"Root:npm","package":"vm2","fixed_in":["3.9.7-aikido.3","3.9.7-aikido.1","3.9.7-aikido.4","3.9.7-aikido.2","3.9.7-aikido.5","3.9.7-aikido.6"],"sources":["osv"]},{"ecosystem":"Root:npm","package":"@rootio/vm2","fixed_in":["3.9.7-root.io.3","3.9.7-root.io.1","3.9.7-root.io.4","3.9.7-root.io.2","3.9.7-root.io.5","3.9.7-root.io.6"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"vm2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.9.11"}]}]},{"source":"osv","ecosystem":"npm","package":"vm2","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"3.9.11"}]}]},{"source":"osv","ecosystem":"Root:npm","package":"vm2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.9.7-aikido.3"},{"fixed":"3.9.7-aikido.1"},{"fixed":"3.9.7-aikido.4"},{"fixed":"3.9.7-aikido.2"},{"fixed":"3.9.7-aikido.5"},{"fixed":"3.9.7-aikido.6"}]}]},{"source":"osv","ecosystem":"Root:npm","package":"@rootio/vm2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.9.7-root.io.3"},{"fixed":"3.9.7-root.io.1"},{"fixed":"3.9.7-root.io.4"},{"fixed":"3.9.7-root.io.2"},{"fixed":"3.9.7-root.io.5"},{"fixed":"3.9.7-root.io.6"}]}]}],"products":[{"vendor":"patriksimek","product":"vm2"},{"vendor":"vm2_project","product":"vm2"}],"references":[{"url":"https://github.com/patriksimek/vm2/security/advisories/GHSA-mrgp-mrhc-5jrq","tags":["x_transferred","Patch","Third Party Advisory","advisory","web"]},{"url":"https://github.com/patriksimek/vm2/issues/467","tags":["x_transferred","Issue Tracking","Third Party Advisory","report","web"]},{"url":"https://github.com/patriksimek/vm2/commit/d9a7f3cc995d3d861e1380eafb886cb3c5e2b873#diff-b1a515a627d820118e76d0e323fe2f0589ed50a1eacb490f6c3278fe3698f164","tags":["x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://github.com/patriksimek/vm2/blob/master/lib/setup-sandbox.js#L71","tags":["x_transferred","Exploit","Third Party Advisory","web"]},{"url":"https://www.oxeye.io/blog/vm2-sandbreak-vulnerability-cve-2022-36067","tags":["x_transferred","Exploit","Third Party Advisory","article","web"]},{"url":"https://security.netapp.com/advisory/ntap-20221017-0002/","tags":["x_transferred","Third Party Advisory","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-36067","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-mrgp-mrhc-5jrq"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/36xxx/CVE-2022-36067.json","tags":["advisory"]},{"url":"https://github.com/patriksimek/vm2","tags":["package"]},{"url":"https://security.netapp.com/advisory/ntap-20221017-0002","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2022-36067","title":"vm2 vulnerable to Sandbox Escape before v3.9.11","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.","status":"published","published":"2022-09-06T00:00:00Z","modified":"2025-04-22T17:24:29.553Z","cvss":[{"version":"3.1","score":10,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","level":"critical","assessor":"cna"}],"cwes":["CWE-913"],"updated_at":"2026-11-02T14:34:35.945659Z"}],"euvd":[{"id":"EUVD-2022-6880","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.","status":"published","published":"2022-09-06T00:00:00Z","modified":"2025-04-22T17:24:29Z","cvss":[{"version":"3.1","score":10,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T20:52:16.055056Z"}],"ghsa":[{"id":"GHSA-mrgp-mrhc-5jrq","title":"vm2 vulnerable to Sandbox Escape resulting in Remote Code Execution on host","description":"### Impact\nA threat actor can bypass the sandbox protections to gain remote code execution rights on the host running the sandbox.\n\n### Patches\nThis vulnerability was patched in the release of version `3.9.11` of `vm2`\n\n### Workarounds\nNone. \n\n### References\nGithub Issue - https://github.com/patriksimek/vm2/issues/467\nThe file that was patched - https://github.com/patriksimek/vm2/blob/master/lib/setup-sandbox.js#L71\nThe commit with the patch - https://github.com/patriksimek/vm2/commit/d9a7f3cc995d3d861e1380eafb886cb3c5e2b873#diff-b1a515a627d820118e76d0e323fe2f0589ed50a1eacb490f6c3278fe3698f164\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [VM2](https://github.com/patriksimek/vm2)\n\n \n","status":"published","published":"2022-09-28T13:09:01Z","modified":"2023-01-30T05:07:09Z","cvss":[{"version":"3.1","score":10,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-913"],"updated_at":"2026-11-02T14:36:28.424013Z"}],"nvd":[{"id":"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.","status":"published","published":"2022-09-06T22:15:09.207Z","modified":"2026-06-17T04:52:50.88Z","cvss":[{"version":"3.1","score":10,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","level":"critical","assessor":"secondary"},{"version":"3.1","score":10,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","level":"critical","assessor":"primary"}],"cwes":["CWE-913"],"updated_at":"2026-11-02T14:07:26.802986Z"}],"osv":[{"id":"CVE-2022-36067","title":"vm2 vulnerable to Sandbox Escape before v3.9.11","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.","status":"published","published":"2022-09-06T00:00:00Z","modified":"2026-10-28T02:30:36.391127338Z","cvss":[{"version":"3.1","score":10,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-913"],"updated_at":"2026-11-02T15:44:26.195407Z"},{"id":"GHSA-mrgp-mrhc-5jrq","title":"vm2 vulnerable to Sandbox Escape resulting in Remote Code Execution on host","description":"### Impact\nA threat actor can bypass the sandbox protections to gain remote code execution rights on the host running the sandbox.\n\n### Patches\nThis vulnerability was patched in the release of version `3.9.11` of `vm2`\n\n### Workarounds\nNone. \n\n### References\nGithub Issue - https://github.com/patriksimek/vm2/issues/467\nThe file that was patched - https://github.com/patriksimek/vm2/blob/master/lib/setup-sandbox.js#L71\nThe commit with the patch - https://github.com/patriksimek/vm2/commit/d9a7f3cc995d3d861e1380eafb886cb3c5e2b873#diff-b1a515a627d820118e76d0e323fe2f0589ed50a1eacb490f6c3278fe3698f164\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [VM2](https://github.com/patriksimek/vm2)\n\n \n","status":"published","published":"2022-09-28T13:09:01Z","modified":"2023-11-08T04:09:59.397193Z","cvss":[{"version":"3.1","score":10,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-913"],"updated_at":"2026-11-02T15:46:52.170928Z"},{"id":"ROOT-APP-NPM-CVE-2022-36067","title":"CVE-2022-36067 in vm2 - Patched by Root","description":"Root has patched CVE-2022-36067 in the vm2 package for Root:npm. Multiple fixed versions available.","status":"published","published":"2026-09-30T06:02:29Z","modified":"2026-09-30T07:15:05.623267093Z","updated_at":"2026-11-02T15:53:27.362922Z"}]}}
