{"id":"GHSA-mrgp-mrhc-5jrq","summary":"vm2 vulnerable to Sandbox Escape resulting in Remote Code Execution on host","details":"### 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","aliases":["CVE-2022-36067"],"modified":"2023-11-08T04:09:59.397193Z","published":"2022-09-28T13:09:01Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2022-09-28T13:09:01Z","nvd_published_at":"2022-09-06T22:15:00Z","cwe_ids":["CWE-913"],"severity":"CRITICAL"},"references":[{"type":"WEB","url":"https://github.com/patriksimek/vm2/security/advisories/GHSA-mrgp-mrhc-5jrq"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-36067"},{"type":"WEB","url":"https://github.com/patriksimek/vm2/issues/467"},{"type":"WEB","url":"https://github.com/patriksimek/vm2/commit/d9a7f3cc995d3d861e1380eafb886cb3c5e2b873#diff-b1a515a627d820118e76d0e323fe2f0589ed50a1eacb490f6c3278fe3698f164"},{"type":"PACKAGE","url":"https://github.com/patriksimek/vm2"},{"type":"WEB","url":"https://github.com/patriksimek/vm2/blob/master/lib/setup-sandbox.js#L71"},{"type":"WEB","url":"https://security.netapp.com/advisory/ntap-20221017-0002"},{"type":"WEB","url":"https://www.oxeye.io/blog/vm2-sandbreak-vulnerability-cve-2022-36067"}],"affected":[{"package":{"name":"vm2","ecosystem":"npm","purl":"pkg:npm/vm2"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"3.9.11"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/09/GHSA-mrgp-mrhc-5jrq/GHSA-mrgp-mrhc-5jrq.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H"}]}