{"api_version":"1","generated_at":"2026-05-12T18:11:00+00:00","cve":"CVE-2023-30547","urls":{"html":"https://cve.report/CVE-2023-30547","api":"https://cve.report/api/cve/CVE-2023-30547.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2023-30547","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2023-30547"},"summary":{"title":"CVE-2023-30547","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.9.17` of `vm2`. There are no known workarounds for this vulnerability. Users are advised to upgrade.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2023-04-17 22:15:00","updated_at":"2023-04-28 01:13:00"},"problem_types":["NVD-CWE-noinfo"],"metrics":[],"references":[{"url":"https://github.com/patriksimek/vm2/security/advisories/GHSA-ch3r-j5x3-6q2m","name":"https://github.com/patriksimek/vm2/security/advisories/GHSA-ch3r-j5x3-6q2m","refsource":"MISC","tags":[],"title":"Sandbox Escape · Advisory · patriksimek/vm2 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/patriksimek/vm2/commit/4b22e87b102d97d45d112a0931dba1aef7eea049","name":"https://github.com/patriksimek/vm2/commit/4b22e87b102d97d45d112a0931dba1aef7eea049","refsource":"MISC","tags":[],"title":"Ensure every catch block is protected · patriksimek/vm2@4b22e87 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://gist.github.com/leesh3288/381b230b04936dd4d74aaf90cc8bb244","name":"https://gist.github.com/leesh3288/381b230b04936dd4d74aaf90cc8bb244","refsource":"MISC","tags":[],"title":"Sandbox Escape in vm2@3.9.16 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/patriksimek/vm2/commit/f3db4dee4d76b19869df05ba7880d638a880edd5","name":"https://github.com/patriksimek/vm2/commit/f3db4dee4d76b19869df05ba7880d638a880edd5","refsource":"MISC","tags":[],"title":"Handle host errors captured in Promises · patriksimek/vm2@f3db4de · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2023-30547","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-30547","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2023","cve_id":"30547","vulnerable":"1","versionEndIncluding":"3.9.16","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"vm2_project","cpe5":"vm2","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"node.js","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2023-30547","qid":"378432","title":"vm2 NPM Package Remote Code Execution (RCE) Vulnerability (GHSA-ch3r-j5x3-6q2m)"}]},"source_records":{"cve_program":{"data_version":"4.0","data_type":"CVE","data_format":"MITRE","CVE_data_meta":{"ID":"CVE-2023-30547","ASSIGNER":"security-advisories@github.com","STATE":"PUBLIC"},"description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')","cweId":"CWE-74"}]}]},"affects":{"vendor":{"vendor_data":[{"vendor_name":"patriksimek","product":{"product_data":[{"product_name":"vm2","version":{"version_data":[{"version_affected":"=","version_value":"< 3.9.17"}]}}]}}]}},"references":{"reference_data":[{"url":"https://github.com/patriksimek/vm2/security/advisories/GHSA-ch3r-j5x3-6q2m","refsource":"MISC","name":"https://github.com/patriksimek/vm2/security/advisories/GHSA-ch3r-j5x3-6q2m"},{"url":"https://github.com/patriksimek/vm2/commit/4b22e87b102d97d45d112a0931dba1aef7eea049","refsource":"MISC","name":"https://github.com/patriksimek/vm2/commit/4b22e87b102d97d45d112a0931dba1aef7eea049"},{"url":"https://github.com/patriksimek/vm2/commit/f3db4dee4d76b19869df05ba7880d638a880edd5","refsource":"MISC","name":"https://github.com/patriksimek/vm2/commit/f3db4dee4d76b19869df05ba7880d638a880edd5"},{"url":"https://gist.github.com/leesh3288/381b230b04936dd4d74aaf90cc8bb244","refsource":"MISC","name":"https://gist.github.com/leesh3288/381b230b04936dd4d74aaf90cc8bb244"}]},"source":{"advisory":"GHSA-ch3r-j5x3-6q2m","discovery":"UNKNOWN"},"impact":{"cvss":[{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":9.8,"baseSeverity":"CRITICAL","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}]}},"nvd":{"publishedDate":"2023-04-17 22:15:00","lastModifiedDate":"2023-04-28 01:13:00","problem_types":["NVD-CWE-noinfo"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"CHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":10,"baseSeverity":"CRITICAL"},"exploitabilityScore":3.9,"impactScore":6}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:vm2_project:vm2:*:*:*:*:*:node.js:*:*","versionEndIncluding":"3.9.16","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}