{"id":"CVE-2019-10761","published":"2022-07-13T08:20:14Z","modified":"2024-09-16T16:28:51Z","title":"Sandbox Bypass","vendor":null,"product":null,"tier":"tail","description":{"text":"This affects the package vm2 before 3.6.11. It is possible to trigger a RangeError exception from the host rather than the \"sandboxed\" context by reaching the stack call limit with an infinite recursion. The returned object is then used to reference the mainModule property of the host code running the script allowing it to spawn a child_process and execute arbitrary code.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.3,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L/E:P/RL:O/RC:C","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01329,"percentile":0.71733,"provenance":"source"},"cwes":[],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-VM2-473188","tags":["x_refsource_MISC"]},{"url":"https://github.com/patriksimek/vm2/issues/197","tags":["x_refsource_MISC"]},{"url":"https://github.com/patriksimek/vm2/commit/4b22d704e4794af63a5a2d633385fd20948f6f90","tags":["x_refsource_MISC"]}],"priority":{"score":20.2,"factors":[{"name":"EPSS percentile","points":14.35},{"name":"CVSS severity","points":5.81}]},"affectedVersions":[{"vendor":"n/a","product":"vm2","versions":[">= unspecified, < 3.6.11"]}],"affected":[{"ecosystem":"npm","package":"vm2","vulnerableRanges":["<3.6.11"],"patched":["3.6.11"],"from":["GHSA-wf5x-cr3r-xr77"],"provenance":"source"}],"summary":{"text":"The flaw is a sandbox bypass in the vm2 package, affecting versions before 3.6.11. A RangeError thrown by infinite recursion escapes the sandboxed context into the host, letting an attacker reach the host's mainModule property and spawn a child process to run arbitrary code; the attack vector is network-reachable with no privileges or user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:14:31Z"},"euvd":{"id":"EUVD-2022-6434","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-patriksimek-vm2-cve-2021-23449","parents":[{"from":"CVE-2021-23449","to":"CVE-2019-10761","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["lib/contextify.js"],"commits":["https://github.com/patriksimek/vm2/commit/4b22d704e4794af63a5a2d633385fd20948f6f90","https://github.com/patriksimek/vm2/commit/b4f6e2bd2c4a1ef52fc4483d8e35f28bc4481886"],"basis":"rarely changed file"}]},{"from":"CVE-2021-23555","to":"CVE-2019-10761","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["lib/contextify.js"],"commits":["https://github.com/patriksimek/vm2/commit/4b22d704e4794af63a5a2d633385fd20948f6f90","https://github.com/patriksimek/vm2/commit/532120d5cdec7da8225fc6242e154ebabc63fe4d"],"basis":"rarely changed file"}]}]}}