{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2023-30547","id":"CVE-2023-30547","title":"Sandbox Escape in vm2","description":"vm2 is a sandbox that can run untrusted code with whitelisted Node's built-in modules. There exists a vulnerability in exception sanitization of vm2 for versions up to 3.9.16, allowing attackers to raise an unsanitized host exception inside `handleException()` which can be used to escape the sandbox and run arbitrary code in host context. This vulnerability was patched in the release of version `3","descriptionLong":"vm2 is a sandbox that can run untrusted code with whitelisted Node's built-in modules. There exists a vulnerability in exception sanitization of vm2 for versions up to 3.9.16, allowing attackers to raise an unsanitized host exception inside `handleException()` which can be used to escape the sandbox and run arbitrary code in host context. This vulnerability was patched in the release of version `3.9.17` of `vm2`. There are no known workarounds for this vulnerability. Users are advised to upgrade.","published":"2023-04-17T21:42:10.514Z","updated":"2026-11-11T10:31:03.994782122Z","reserved":"2023-04-12T15:19:33.767Z","status":"Modified","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"GitHub_M"},"metrics":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"GitHub_M"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"github.com"},{"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","rating":"critical","source":"NVD"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"OSV"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"GitHub"}],"rating":"critical","products":["patriksimek vm2"],"affectedProducts":[{"vendor":"patriksimek","product":"vm2","defaultStatus":null,"versions":[{"version":"< 3.9.17","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"vm2","purl":"pkg:npm/vm2","ranges":["<3.9.17"],"fixed":["3.9.17"],"advisory":"GHSA-ch3r-j5x3-6q2m"}],"cwes":["CWE-74"],"aliases":["GHSA-ch3r-j5x3-6q2m"],"references":[{"url":"https://github.com/patriksimek/vm2/security/advisories/GHSA-ch3r-j5x3-6q2m","tags":["x_refsource_CONFIRM","x_transferred","Exploit","Vendor Advisory","advisory","web"]},{"url":"https://github.com/patriksimek/vm2/commit/4b22e87b102d97d45d112a0931dba1aef7eea049","tags":["x_refsource_MISC","x_transferred","Patch","fix","web"]},{"url":"https://github.com/patriksimek/vm2/commit/f3db4dee4d76b19869df05ba7880d638a880edd5","tags":["x_refsource_MISC","x_transferred","Patch","fix","web"]},{"url":"https://gist.github.com/leesh3288/381b230b04936dd4d74aaf90cc8bb244","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/30xxx/CVE-2023-30547.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-30547","tags":["advisory"]},{"url":"https://github.com/patriksimek/vm2","tags":["package"]},{"url":"https://github.com/patriksimek/vm2/releases/tag/3.9.17","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total"},"epss":0.72973,"epssPercentile":0.99464,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2023-30547","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-30547","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2023-30547","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-ch3r-j5x3-6q2m","ok":true,"note":"GHSA-ch3r-j5x3-6q2m"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2023-30547","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":["EPSS 73% with CVSS 9.8"],"attention":null}