
Cloud Vulnerability DB
A community-led vulnerabilities database
The vulnerability CVE-2022-25893 affects the vm2 package versions before 3.9.10. This vulnerability was discovered in July 2022 and allows arbitrary code execution through the manipulation of WeakMap.prototype.set method (GitHub Issue, Snyk Report). The vm2 package is a sandbox designed to run untrusted code with whitelisted Node's built-in modules.
The vulnerability stems from the improper usage of prototype lookup for the WeakMap.prototype.set method. An attacker can exploit this by manipulating the WeakMap prototype to gain access to host objects and compromise the sandbox. The vulnerability has been assigned a CVSS v3.1 score of 9.8 (Critical), with attack vector being Network, attack complexity Low, and requiring no privileges or user interaction (Snyk Report).
When successfully exploited, this vulnerability can lead to total loss of confidentiality, integrity, and availability of the affected system. The attacker can gain complete access to protected resources, modify files, and potentially execute arbitrary code on the host system (Snyk Report).
The recommended mitigation is to upgrade the vm2 package to version 3.9.10 or higher. The vulnerability was fixed by avoiding prototype lookup and implementing proper security measures in the WeakMap.prototype.set method implementation (GitHub PR).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."