patriksimek/vm2 · Security
vm2 vulnerable to Arbitrary Code Execution
- GHSA ID
- GHSA-4w2j-2rg4-5mjw
- CVE ID
- CVE-2022-25893
- Severity
- critical
- Published
- Updated
- CVSS
- 9.8 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CVSS v3
- 9.8 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Description
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.
CWEs
- CWE-94 · Improper Control of Generation of Code ('Code Injection')
References
- https://nvd.nist.gov/vuln/detail/CVE-2022-25893 ↗
- https://github.com/patriksimek/vm2/issues/444 ↗
- https://github.com/patriksimek/vm2/pull/445 ↗
- https://github.com/patriksimek/vm2/pull/445/commits/3a9876482be487b78a90ac459675da7f83f46d69 ↗
- https://security.snyk.io/vuln/SNYK-JS-VM2-2990237 ↗
- https://github.com/advisories/GHSA-4w2j-2rg4-5mjw ↗