{"id":"CVE-2022-25893","aliases":["CVE-2022-25893","GHSA-4w2j-2rg4-5mjw"],"related":[],"kind":"vulnerability","state":"published","title":"Arbitrary Code Execution","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"The package vm2 before 3.9.10 is 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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"El paquete vm2 anterior a 3.9.10 es vulnerable a la ejecución de código arbitrario debido al uso de la búsqueda de prototipos para el método WeakMap.prototype.set. La explotación de esta vulnerabilidad conduce al acceso a un objeto host y a un compromiso de la sandbox.","source":"nvd"}],"published":"2022-12-21T05:15:11.220Z","modified":"2026-06-17T04:34:27.233Z","severity":{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P","score":9.8,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-94","CWE-471"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"3.9.10","status":"affected"}],"product":"vm2","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"3.9.10"}],"ecosystem":"npm","package":"vm2","purl":"pkg:npm/vm2","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"3.9.10"}],"vendor":"vm2_project","product":"vm2","cpe":"cpe:2.3:a:vm2_project:vm2:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://security.snyk.io/vuln/SNYK-JS-VM2-2990237","tags":["exploit","patch","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/patriksimek/vm2/issues/444","tags":["exploit","issue-tracking","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/patriksimek/vm2/pull/445/commits/3a9876482be487b78a90ac459675da7f83f46d69","tags":["patch","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/patriksimek/vm2/pull/445","tags":["patch","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25893","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/patriksimek/vm2","tags":["package"],"sources":["ghsa"]}],"credits":["Ghaem Arasteh"],"assigner":"snyk","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"total","date":"2025-04-15T19:18:11.043Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-25893","url":"https://www.cve.org/CVERecord?id=CVE-2022-25893","licence":"CVE Terms of Use","modified":"2025-04-15T19:18:16.546Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-4w2j-2rg4-5mjw","url":"https://github.com/advisories/GHSA-4w2j-2rg4-5mjw","licence":"CC-BY-4.0","modified":"2023-11-08T04:08:51.082Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-25893","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25893","licence":"Public domain","modified":"2026-06-17T04:34:27.233Z"}],"updatedAt":"2026-11-25T22:58:17.732Z","epss":{"score":0.01573,"percentile":0.7614,"date":"2026-12-01T12:00:22.000Z"}}