Skip to content
OpenAdvisories
Critical · 9.8 CVE-2023-29199 EUVD-2023-1428GHSA-xj72-wvfv-8985

vm2 Sandbox escape vulnerability

Published Apr 14, 2023 · Updated Feb 6, 2025 · Assigned by GitHub_M

Description

There exists a vulnerability in source code transformer (exception sanitization logic) of vm2 for versions up to 3.9.15, allowing attackers to bypass `handleException()` and leak unsanitized host exceptions which can be used to escape the sandbox and run arbitrary code in host context. 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.16` of `vm2`.

Affected products

VendorProductAffectedFixed
patriksimek vm2 < 3.9.16 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm vm2 < 3.9.16 3.9.16 GHSA-xj72-wvfv-8985

Advisories 1

References