{"id":"CVE-2022-25893","summary":"Arbitrary Code Execution","details":"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.","aliases":["GHSA-4w2j-2rg4-5mjw"],"modified":"2026-08-12T03:51:47.262281211Z","published":"2022-12-21T05:15:11.220Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/25xxx/CVE-2022-25893.json","cna_assigner":"snyk"},"references":[{"type":"WEB","url":"https://github.com/patriksimek/vm2/pull/445/commits/3a9876482be487b78a90ac459675da7f83f46d69"},{"type":"WEB","url":"https://security.snyk.io/vuln/SNYK-JS-VM2-2990237"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/25xxx/CVE-2022-25893.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25893"},{"type":"REPORT","url":"https://github.com/patriksimek/vm2/issues/444"},{"type":"FIX","url":"https://github.com/patriksimek/vm2/pull/445"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/patriksimek/vm2","events":[{"introduced":"0"},{"fixed":"6fcb7079c2a7673f3682f590df07417b1f4991fe"}],"database_specific":{"cpe":"cpe:2.3:a:vm2_project:vm2:*:*:*:*:*:node.js:*:*","extracted_events":[{"introduced":"0"},{"fixed":"3.9.10"}],"source":["AFFECTED_FIELD","CPE_RANGE"]}}],"versions":["3.9.9","3.9.8","3.9.7","3.9.6","3.9.5","3.9.4","3.9.3","v3.9.2","v3.9.1","v3.9.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-25893.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P"}]}