Skip to main content

CVE-2023-30547

Description

vm2 is a sandbox that can run untrusted code with whitelisted Node's built-in modules. There exists a vulnerability in exception sanitization of vm2 for versions up to 3.9.16, allowing attackers to raise an unsanitized host exception inside handleException() which can be used to escape the sandbox and run arbitrary code in host context. This vulnerability was patched in the release of version 3.9.17 of vm2. There are no known workarounds for this vulnerability. Users are advised to upgrade.

NVD
Severity: CRITICAL
CVE ID: CVE-2023-30547
CVSS Score: 10.0
CVSS Metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
GitHub, Inc.
Severity: CRITICAL
CVE ID: CVE-2023-30547
CVSS Score: 9.8
CVSS Metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Refrence: NVDMITRE

Proof Of Concept

rvizx

PoC Exploit for VM2 Sandbox Escape Vulnerability

Refrence: GitHub

user0x1337

PoC to CVE-2023-30547 (Library vm2)

Refrence: GitHub

Cur1iosity

Tool for exploring CVE-2023-30547

Refrence: GitHub