CVE-2022-25893
CRITICAL 9.8CVSS 3.1vm2 vulnerable to Arbitrary Code Execution
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.
- Published
- 21 Dec 2022
- Last modified
- 17 Jun 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-471CWE-94
- Also known as
- GHSA-4w2j-2rg4-5mjw
- Sources
- NVDJSONOSV GHSA-4w2j-2rg4-5mjwJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | vm2_project | vm2cpe:2.3:a:vm2_project:vm2:*:*:*:*:*:node.js:*:* |
< 3.9.10 | 3.9.10 |
| OSV | npm | vm2 | < 3.9.10 | 3.9.10 |
References
- https://github.com/patriksimek/vm2/issues/444 · Exploit, Issue Tracking, Third Party Advisory, WEB
- https://github.com/patriksimek/vm2/pull/445 · Patch, Third Party Advisory, WEB
- https://github.com/patriksimek/vm2/pull/445/commits/3a9876482be487b78a90ac459675da7f83f46d69 · Patch, Third Party Advisory, WEB
- https://security.snyk.io/vuln/SNYK-JS-VM2-2990237 · Exploit, Patch, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-25893 · ADVISORY
- https://github.com/patriksimek/vm2 · PACKAGE
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 21 Dec 2022)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 21 Dec 2022)