Skip to main content
Mallory
CriticalPublic exploitVulnerability

CVE-2023-30547: vm2 Exception Sanitization Sandbox Escape

Published Apr 17, 2023 · Updated 1 month ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS10.0Critical · v3.1
EPSS73.0%99th percentile
CISA KEVNoNot listed
In the wildNonePublic exploit, no exploitation reported
Vendor
Vm2 Project
IdentifiersCVE-2023-30547CWE-755

CVE-2023-30547 is a critical sandbox-escape vulnerability in vm2 versions through 3.9.16. Insufficient exception sanitization permits sandboxed code to raise an unsanitized host exception within vm2's handleException() processing path. The host-context exception can be abused to bypass the vm2 isolation boundary and execute attacker-controlled code in the host Node.js context.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation escapes the vm2 sandbox and enables arbitrary code execution in the host context. An attacker may execute operating-system commands with the privileges of the Node.js process, access host-process resources available to that process, and compromise the confidentiality, integrity, and availability of the hosting environment.

Mitigation

If you can’t patch tonight, do this now.

No known workaround is available. Until upgrading, do not execute attacker-controlled or untrusted JavaScript with affected vm2 releases. Where untrusted-code execution is unavoidable, enforce an independent process-, container-, or virtual-machine-level isolation boundary and least-privilege execution.

Remediation

Patch, then assume compromise.

Upgrade vm2 to version 3.9.17 or later, which patches the exception-sanitization flaw.

Public exploits

Exploits

2 exploits validated by Mallory's analysis. Hidden: 1 rejected by Mallory's analysis as not a working exploit.

View more in app →
CVE-2023-30547Small standalone exploit repository for CVE-2023-30547 targeting vm2 versions prior to 3.9.17. The repo contains only a README and one Python script. The README explains the vulnerability, gives a simple version-check snippet, and shows how to run the exploit. The main logic is in exploit.py, which provides an interactive shell-like interface using Python's cmd module. For each entered command, it builds a JavaScript payload that abuses vm2 exception sanitization via a Proxy/getPrototypeOf recursion pattern, escapes the sandbox through constructor access, and executes arbitrary host commands with child_process.execSync. The payload is base64-encoded and sent as JSON in a POST request to a user-supplied URL, implying the intended target is a web application endpoint that accepts code for execution inside vm2. The script then attempts to parse the HTTP response as JSON and print the first returned value, otherwise it prints raw response text. Overall, this is an operational PoC for remote host command execution through a vulnerable vm2-backed code execution service, not merely a detector.rvzsec · Disclosed Dec 10, 2023 · markdown · python · web · networkOperationalCVE-2023-30547This repository contains a proof-of-concept exploit for CVE-2023-30547, a sandbox escape vulnerability in vm2 (<3.9.17) for Node.js. The exploit is implemented in 'exploit.py', a Python script that provides an interactive shell interface. The user supplies the URL of a target service running a vulnerable vm2 sandbox. The script encodes a malicious JavaScript payload (which exploits the exception sanitization flaw to escape the sandbox and execute arbitrary system commands) in base64 and sends it as a JSON payload to the target via HTTP POST. The exploit expects the target to accept a JSON object with a 'code' field and to execute the provided code in the vm2 sandbox. The README provides background, usage instructions, and references. The repository is structured simply, with a single exploit script and a README. No hardcoded endpoints are present; the user must specify the target URL at runtime.rvizx · Disclosed Dec 10, 2023 · python · networkOperational
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
Vm2 ProjectVm2application
FAQ

Frequently asked questions

Is CVE-2023-30547 exploited in the wild?
As of Oct 16, 2026, Mallory has no reports of CVE-2023-30547 being exploited in the wild. It is not listed in CISA KEV.
Is there a public exploit for CVE-2023-30547?
Yes. Mallory tracks 2 public exploits or proofs of concept for CVE-2023-30547, the earliest disclosed Dec 10, 2023.
Is there a patch for CVE-2023-30547?
Upgrade vm2 to version 3.9.17 or later, which patches the exception-sanitization flaw.
What products are affected by CVE-2023-30547?
Vm2 Project Vm2.
How severe is CVE-2023-30547?
CVE-2023-30547 has a CVSS v3.1 score of 10.0 (Critical) and an EPSS score of 73.0% (99th percentile) as of Oct 16, 2026.
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity1Community discussion across Reddit, Mastodon, and other social sources.