{"id":"CVE-2022-25893","published":"2022-12-21T23:14:33Z","modified":"2025-04-15T19:18:16Z","title":"Arbitrary Code Execution","vendor":null,"product":null,"tier":"tail","description":{"text":"The package vm2 before 3.9.10 are vulnerable to Arbitrary Code Execution due to the usage of prototype lookup for the WeakMap.prototype.set method. Exploiting this vulnerability leads to access to a host object and a sandbox compromise.","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.01542,"percentile":0.74948,"provenance":"source"},"cwes":[{"id":"CWE-471","name":"Modification of Assumed-Immutable Data (MAID)"}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-JS-VM2-2990237","tags":[]},{"url":"https://github.com/patriksimek/vm2/issues/444","tags":[]},{"url":"https://github.com/patriksimek/vm2/pull/445/commits/3a9876482be487b78a90ac459675da7f83f46d69","tags":[]},{"url":"https://github.com/patriksimek/vm2/pull/445","tags":[]}],"priority":{"score":21.8,"factors":[{"name":"EPSS percentile","points":14.99},{"name":"CVSS severity","points":6.86}]},"affectedVersions":[{"vendor":"n/a","product":"vm2","versions":[">= unspecified, < 3.9.10"]}],"affected":[{"ecosystem":"npm","package":"vm2","vulnerableRanges":["<3.9.10"],"patched":["3.9.10"],"from":["GHSA-4w2j-2rg4-5mjw"],"provenance":"source"}],"euvd":{"id":"EUVD-2022-7507","exploited":false,"provenance":"source"},"lineage":{"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,"link":{"from":"CVE-2021-23555","to":"CVE-2022-25893","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:vm2","fromFixed":"3.9.6","toFixed":"3.9.10","daysApart":313}]}},{"cve":"CVE-2022-25893","published":"2022-12-21","fixed":"3.9.10","kev":false},{"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},{"cve":"CVE-2023-29199","published":"2023-04-14","fixed":"3.9.16","kev":false}],"package":"npm:vm2"}}