QID 377634

Date Published: 2022-10-13

QID 377634: vm2 NPM Package Remote Code Execution (RCE) Vulnerability (GHSA-mrgp-mrhc-5jrq) (Sandbreak)

vm2 is a sandbox that can run untrusted code with whitelisted Node's built-in modules. In versions prior to version 3.9.11, a threat actor can bypass the sandbox protections to gain remote code execution rights on the host running the sandbox. This vulnerability was patched in the release of version 3.9.11 of vm2.

Affected Versions:
VM2 versions prior to version 3.9.11

QID Detection Logic (Authenticated):
This QID checks for vulnerable version of vm2 npm package installed globally. The QID runs the "npm list -g --silent" command and checks the file "/usr/local/lib/node_modules/vm2/package.json" to look for vulnerable versions of vm2.

Note:
NPM packages can be installed anywhere as a developer/production dependency. This QID can only detect vm2 packages that are installed globally. For Microsoft Windows, this QID checks for installed packages within the '%systemdrive%\Users\Administrator' directory.

Successful exploitation of the vulnerability may result in remote code execution.

  • CVSS V3 rated as Critical - 10 severity.
  • CVSS V2 rated as Critical - 10 severity.
  • Solution
    Customers are advised to update to version 3.9.11 or later. For more information please refer to Vendor Advisory

    CVEs related to QID 377634

    Software Advisories
    Advisory ID Software Component Link
    NA URL Logo www.npmjs.com/package/vm2/v/3.9.11

    © CVE.report 2026

    Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

    CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

    Free CVE JSON API cve.report/api

    CVE.report and Source URL Uptime Status status.cve.report