QID 378611

Date Published: 2023-06-27

QID 378611: vm2 NPM Package Remote Code Execution (RCE) Vulnerability (GHSA-whpj-8f3w-67p5)

vm2 was not properly handling exception sanitization allowing unsanitized host exceptions under handleException()

Affected Versions:
vm2 NPM package versions prior to 3.9.17

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 High - 7.5 severity.
  • Solution
    Customers are advised to update to version 3.9.18 or later. For more information please refer to Vendor Advisory

    CVEs related to QID 378611

    Software Advisories
    Advisory ID Software Component Link
    GHSA-whpj-8f3w-67p5 URL Logo github.com/patriksimek/vm2/security/advisories/GHSA-whpj-8f3w-67p5