Vulnerability · Published Jul 13, 2023 · Assigned by GitHub_M

CVE-2023-37466vm2 Sandbox Escape vulnerability

Critical 9.8

In plain English

A critical-severity code 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 3.9% (higher than 90% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)9.8Critical
Exploit odds (30 days)3.9%top 9.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

vm2 is an advanced vm/sandbox for Node.js. The library contains critical security issues and should not be used for production. The maintenance of the project has been discontinued. In vm2 for versions up to 3.9.19, `Promise` handler sanitization can be bypassed with the `@@species` accessor property allowing attackers to escape the sandbox and run arbitrary code, potentially allowing remote code execution inside the context of vm2 sandbox. Version 3.10.0 contains a patch for the issue.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
npmvm23.10.0GHSA-cchq-frgv-rjh5

Affected products (as reported)

VendorProductVersions
patriksimek vm2 <= 3.9.19

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

References