# CVE-2022-25893: Arbitrary Code Execution

- Severity: Critical 9.8 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.57%, higher than 76% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2022-12-21T05:15:11.220Z
- Modified: 2026-06-17T04:34:27.233Z
- Also known as: GHSA-4w2j-2rg4-5mjw
- Weaknesses: CWE-94, CWE-471
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: snyk

## Description

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.

(As written by CVE List.)

## Affected

- vm2: from unspecified before 3.9.10
- vm2 (npm): before 3.9.10
- vm2_project vm2: before 3.9.10

## Every score

- snyk: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P`
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://security.snyk.io/vuln/SNYK-JS-VM2-2990237> (exploit, patch, third-party-advisory, web)
- <https://github.com/patriksimek/vm2/issues/444> (exploit, issue-tracking, third-party-advisory, web)
- <https://github.com/patriksimek/vm2/pull/445/commits/3a9876482be487b78a90ac459675da7f83f46d69> (patch, third-party-advisory, web)
- <https://github.com/patriksimek/vm2/pull/445> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-25893> (advisory)
- <https://github.com/patriksimek/vm2> (package)

## Sources

- CVE List: [CVE-2022-25893](https://www.cve.org/CVERecord?id=CVE-2022-25893), CVE Terms of Use, modified 2025-04-15
- GitHub Advisory Database: [GHSA-4w2j-2rg4-5mjw](https://github.com/advisories/GHSA-4w2j-2rg4-5mjw), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2022-25893](https://nvd.nist.gov/vuln/detail/CVE-2022-25893), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-25893 · Whole record: https://cve.day/CVE-2022-25893.json · Rebuilt by cve.day 2026-11-25T22:58:17.732Z
