Skip to main content
Mallory
CriticalPublic exploitVulnerability

CVE-2026-24118: Sandbox Escape via __lookupGetter__ in vm2

Published May 4, 2026 · Updated 23 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS9.1Critical · v3.1
EPSS1.0%63rd percentile
CISA KEVNoNot listed
In the wildNonePublic exploit, no exploitation reported
Vendor
Vm2 Project
IdentifiersCVE-2026-24118CWE-94 · Improper Control of Generation of…

CVE-2026-24118 is a sandbox escape vulnerability in vm2, a JavaScript sandbox library for Node.js, affecting versions before 3.11.0. Inconsistent cross-context handling involving lookupGetter, Buffer.apply, and prototype traversal allows attacker-controlled sandboxed JavaScript to reach the host Function constructor. An attempted protection can be bypassed by retrieving constructor properties through Object.getOwnPropertyDescriptor. Successful exploitation permits execution of arbitrary code and operating system commands outside the sandbox, with the privileges of the host Node.js process. Version 3.11.0 fixes the vulnerability.

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.

Exploitation breaks vm2's isolation boundary and compromises the confidentiality, integrity, and availability of resources accessible to the Node.js application. Attackers can execute host commands, read application secrets and environment variables, access or modify files, and disrupt services. Access to internal systems may also enable lateral movement. The extent of compromise depends on the privileges, credentials, and network access available to the Node.js process; exploitation does not inherently grant root privileges.

Mitigation

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

Until patched, stop executing untrusted JavaScript in affected vm2 instances. No vulnerability-specific workaround is documented. Do not rely on vm2 as the sole security boundary for hostile code; use independently enforced process, container, or microVM isolation to reduce the consequences of a sandbox escape.

Remediation

Patch, then assume compromise.

Upgrade vm2 to version 3.11.0 or later, which fixes CVE-2026-24118. Audit direct and transitive dependencies to identify affected installations. Version 3.11.0 is the minimum fix for this vulnerability, not a guarantee of protection against separate vm2 vulnerabilities.

Public exploits

Exploits

1 exploit validated by Mallory's analysis.

View more in app →
CVE-2026-24118This repository is a small self-contained JavaScript proof-of-concept for escaping a vulnerable vm2 sandbox in a local lab environment. It contains two code files: lab.js, which creates an Express-based test service exposing POST /execute on localhost:3000 and runs supplied code inside a vm2 VM configured with sandbox {}, timeout 4000, and eval disabled; and exploit.js, which sends a crafted JavaScript payload to that endpoint using fetch. The exploit’s core capability is sandbox escape leading to host-side arbitrary command execution. The payload creates an Error object, sets err.name to a Symbol, invokes an async function returning err.stack, and in the promise rejection path accesses e.constructor.constructor to recover the host Function constructor. It then executes host JavaScript that imports child_process via process.mainModule.require('child_process') and runs shell commands on the underlying system. On success it prints markers plus the output of whoami and id, creates a timestamped proof file in /tmp, and appends an exploitation log entry to /tmp/vm2_lab.log. The repository is not part of a larger exploit framework; it is a standalone operational PoC with a hardcoded target and payload. The README and license are disclaimers only. The exploit is aimed at a deliberately vulnerable local Node.js lab using vm2 version 3.10.1. It is not merely a detector: it actively exploits the sandbox and demonstrates post-escape command execution. A commented section in exploit.js also shows how the payload could be replaced with a bash reverse shell callback to 127.0.0.1:4444, indicating the exploit can be adapted beyond simple proof-file creation.HORKimhab · Disclosed May 7, 2026 · javascript · markdown · local · network · webOperational
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-2026-24118 exploited in the wild?
As of Nov 5, 2026, Mallory has no reports of CVE-2026-24118 being exploited in the wild. It is not listed in CISA KEV.
Is there a public exploit for CVE-2026-24118?
Yes. Mallory tracks 1 public exploit or proof of concept for CVE-2026-24118, the earliest disclosed May 7, 2026.
Is there a patch for CVE-2026-24118?
Upgrade vm2 to version 3.11.0 or later, which fixes CVE-2026-24118. Audit direct and transitive dependencies to identify affected installations.
What products are affected by CVE-2026-24118?
Vm2 Project Vm2.
How severe is CVE-2026-24118?
CVE-2026-24118 has a CVSS v3.1 score of 9.1 (Critical) and an EPSS score of 1.0% (63rd percentile) as of Nov 5, 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 activity7Community discussion across Reddit, Mastodon, and other social sources.