{"id":"CVE-2021-23555","published":"2022-02-11T20:00:14Z","modified":"2024-09-16T17:23:55Z","title":"Sandbox Bypass","vendor":null,"product":null,"tier":"tail","description":{"text":"The package vm2 before 3.9.6 are vulnerable to Sandbox Bypass via direct access to host error objects generated by node internals during generation of a stacktraces, which can lead to execution of arbitrary code on the host machine.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.02876,"percentile":0.86818,"provenance":"source"},"cwes":[],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-VM2-2309905","tags":["x_refsource_MISC"]},{"url":"https://github.com/patriksimek/vm2/commit/532120d5cdec7da8225fc6242e154ebabc63fe4d","tags":["x_refsource_MISC"]}],"priority":{"score":24.2,"factors":[{"name":"EPSS percentile","points":17.36},{"name":"CVSS severity","points":6.86}]},"affectedVersions":[{"vendor":"n/a","product":"vm2","versions":[">= unspecified, < 3.9.6"]}],"affected":[{"ecosystem":"npm","package":"vm2","vulnerableRanges":["<3.9.6"],"patched":["3.9.6"],"from":["GHSA-6pw2-5hjv-9pf7"],"provenance":"source"}],"euvd":{"id":"EUVD-2022-0867","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-patriksimek-vm2-cve-2021-23449","parents":[{"from":"CVE-2021-23449","to":"CVE-2021-23555","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"npm:vm2","fromFixed":"3.9.4","toFixed":"3.9.6","daysApart":116},{"kind":"same-code","provenance":"machine","files":["lib/contextify.js","lib/main.js","lib/sandbox.js"],"commits":["https://github.com/patriksimek/vm2/commit/b4f6e2bd2c4a1ef52fc4483d8e35f28bc4481886","https://github.com/patriksimek/vm2/commit/532120d5cdec7da8225fc6242e154ebabc63fe4d"],"basis":"rarely changed file"}]}],"children":[{"from":"CVE-2021-23555","to":"CVE-2023-29199","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["lib/transformer.js"],"commits":["https://github.com/patriksimek/vm2/commit/532120d5cdec7da8225fc6242e154ebabc63fe4d","https://github.com/patriksimek/vm2/commit/24c724daa7c09f003e556d7cd1c7a8381cb985d7"],"basis":"rarely changed file"}]},{"from":"CVE-2021-23555","to":"CVE-2023-30547","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["lib/transformer.js"],"commits":["https://github.com/patriksimek/vm2/commit/532120d5cdec7da8225fc6242e154ebabc63fe4d","https://github.com/patriksimek/vm2/commit/4b22e87b102d97d45d112a0931dba1aef7eea049","https://github.com/patriksimek/vm2/commit/f3db4dee4d76b19869df05ba7880d638a880edd5"],"basis":"rarely changed file"}]},{"from":"CVE-2021-23555","to":"CVE-2023-32313","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["lib/vm.js"],"commits":["https://github.com/patriksimek/vm2/commit/532120d5cdec7da8225fc6242e154ebabc63fe4d","https://github.com/patriksimek/vm2/commit/5206ba25afd86ef547a2c9d48d46ca7a9e6ec238"],"basis":"rarely changed file"}]},{"from":"CVE-2021-23555","to":"CVE-2023-37466","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["lib/bridge.js"],"commits":["https://github.com/patriksimek/vm2/commit/532120d5cdec7da8225fc6242e154ebabc63fe4d","https://github.com/patriksimek/vm2/commit/d9a1fde8ec5a5a9c9e5a69bf91d703950859d744"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2019-10761","published":"2022-07-13","fixed":"3.6.11","kev":false},{"cve":"CVE-2021-23449","published":"2021-10-18","fixed":"3.9.4","kev":false},{"cve":"CVE-2021-23555","published":"2022-02-11","fixed":"3.9.6","kev":false},{"cve":"CVE-2022-25893","published":"2022-12-21","fixed":"3.9.10","kev":false,"link":{"from":"CVE-2021-23555","to":"CVE-2022-25893","relation":"successor","confidence":"high","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:vm2","fromFixed":"3.9.6","toFixed":"3.9.10","daysApart":313},{"kind":"same-code","provenance":"machine","files":["lib/setup-sandbox.js"],"commits":["https://github.com/patriksimek/vm2/commit/532120d5cdec7da8225fc6242e154ebabc63fe4d","https://github.com/patriksimek/vm2/commit/3a9876482be487b78a90ac459675da7f83f46d69"],"basis":"shared file"}]}},{"cve":"CVE-2022-36067","published":"2022-09-06","fixed":"3.9.11","kev":false},{"cve":"CVE-2023-29017","published":"2023-04-06","fixed":"3.9.15","kev":false}],"package":"npm:vm2"}}