Vulnerability · Published Jul 21, 2023 · Assigned by GitHub_M

CVE-2023-37903Sandbox Escape in vm2

Critical 9.8

In plain English

A critical-severity OS command injection in vm2 from patriksimek. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 4.2% (higher than 91% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code.

Severity (CVSS 3.1)9.8Critical
Exploit odds (30 days)4.2%top 9.0% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack tooling1Public PoC

Official description

vm2 is an open source vm/sandbox for Node.js. In vm2 for versions up to and including 3.9.19, Node.js custom inspect function allows attackers to escape the sandbox and run arbitrary code. This may result in Remote Code Execution, assuming the attacker has arbitrary code execution primitive inside the context of vm2 sandbox. There are no patches and no known workarounds. Users are advised to find an alternative software.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
npmvm2no fix listedGHSA-g644-9gfx-q4q4

Affected products (as reported)

VendorProductVersions
patriksimek vm2 <= 3.9.19

Weakness: CWE-78 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

References