CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



CVE-2026-92950

CVE-2026-92950: Sandbox Escape Vulnerability in vm2 CLI

Amit Schendel
Amit Schendel
Senior Security Researcher

Oct 2, 2026·5 min read·12 visits

Executive Summary (TL;DR)

A design flaw in the vm2 CLI tool permits sandboxed code to load local files in the host execution realm, resulting in a complete sandbox escape and unauthenticated arbitrary command execution.

CVE-2026-92950 (GHSA-jxxv-8r27-vm4p) is a critical sandbox escape vulnerability in the command-line interface of the vm2 library prior to version 3.11.7. The flaw allows untrusted scripts to bypass sandbox constraints and execute arbitrary system commands with the privileges of the host process by exploiting insecure default configurations of the module resolver.

Vulnerability Overview

The vm2 library is a widely deployed Node.js library used to execute untrusted code in a sandboxed, isolated execution environment. To ensure isolation, vm2 wraps JavaScript execution frames using proxy objects and custom resolvers to intercept sensitive API calls. This sandboxing is critical for applications that process untrusted user-supplied code, such as online code editors or automated execution systems.

Prior to version 3.11.7, the global command-line interface tool supplied with vm2 contains a significant security configuration flaw. When running a targeted script through the CLI execution path, the runner instantiates an instance of the NodeVM engine with permissive external module options. This module resolution configuration is vulnerable to a sandbox escape that grants complete shell access to the host environment.

This specific bug class maps to CWE-453 (Insecure Default Variable Initialization). By executing arbitrary commands with the privileges of the executing process, an attacker can fully compromise the underlying host operating system. The vulnerability presents an immediate path to local privilege escalation or container escape if the CLI tool runs within a containerized environment.

Root Cause Analysis

The root cause of CVE-2026-92950 lies in how the vm2 command-line utility instantiates the sandboxed NodeVM instance in lib/cli.js. The CLI tool sets the require.external flag to true to allow sandboxed modules to import external dependencies. However, it fails to define the require.root property and leaves require.context unconfigured, causing it to fall back to the default 'host' evaluation context.

Within the vm2 library, the class CustomResolver (implemented in lib/resolver-compat.js) manages permissions for imported file paths. The resolution logic evaluates paths using a helper function called isPathAllowed. When require.root is undefined, the internal rootPaths array is also initialized as undefined, causing the resolver to permit any absolute or relative path without restriction.

Simultaneously, the 'host' evaluation context dictates that permitted modules must be loaded using the host process's native require() function rather than being evaluated within the sandbox context. Under these specific conditions, the resolver intercepts module queries and safely resolves the absolute path of the target script, but then hands the path over to Node's native module loader. Because native execution happens entirely in the host realm, the sandbox execution boundary is bypassed.

Code-Level Analysis

A review of the vulnerable implementation in lib/cli.js demonstrates the omission of restricting properties during the VM setup. The initialization configures external: true without constraining the root path or context:

// Vulnerable configuration in lib/cli.js (Pre-3.11.7)
NodeVM.file(path, {
    verbose: true,
    require: {
        external: true
    }
});

In the patch released in version 3.11.7, the developers explicitly declared the root property as the parent directory of the script and set the execution context to 'sandbox' to block native module execution. The fix constrains imports and compiles them inside the safe sandbox wrapper:

// Patched configuration in lib/cli.js (v3.11.7)
NodeVM.file(path, {
    verbose: true,
    require: {
        external: true,
        // Explicitly set the root boundary to the target directory
        root: pa.dirname(path),
        // Enforce script execution inside the sandbox realm
        context: 'sandbox'
    }
});

Furthermore, defense-in-depth measures were introduced in the resolution module to prevent nested escape routes. The update introduces the isVm2SelfRequire helper to block sandboxed scripts from loading vm2 itself. Without this block, an attacker could load the library from disk and generate unrestricted nested engines to execute commands on the host.

Exploitation Methodology

Exploitation of CVE-2026-92950 relies on a nested-import technique often referred to as a "self-require" primitive. An attacker crafts a malicious JavaScript file designed to run under dual execution phases. During the initial execution phase, the script runs within the sandboxed environment where calls to high-privilege built-in modules like fs or child_process fail.

When these calls fail and throw exceptions, the catch block intercepts the error and executes the escape payload. The script triggers a call to require(__filename), pointing directly back to its own file path on the host filesystem. Because the module root boundary is unrestricted and the resolution context is 'host', the custom resolver authorizes the native Node.js engine to load the file.

Upon the second execution phase, Node.js resolves and runs the script from the top using the host's native environment. This grants the script unrestricted access to the host's global context. The second execution successfully accesses the native fs and child_process modules, allowing arbitrary shell command execution with the privileges of the host process.

Remediation and Defensive Measures

To completely address the vulnerability, administrators must upgrade the vm2 dependency to version 3.11.7 or higher. Organizations utilizing the CLI tool globally should execute updates to purge vulnerable versions from their global NPM configurations. It is important to note that the vm2 project has been officially deprecated by its maintainers due to structural design limitations within single-process Node.js sandbox systems.

For applications that instantiate NodeVM dynamically in code, developer teams must implement robust configuration policies. Never enable require.external without specifying a restricted require.root path. Enforcing context: 'sandbox' is also required to prevent the loading of modules inside the native host execution frame.

If immediate patching or replacement is not possible, security teams must deploy detection rules to identify exploit attempts. Monitor process creation events originating from Node.js applications that execute untrusted code. Deploying system-level controls like AppArmor or SELinux can block unauthorized system calls if an attacker successfully escapes the runtime sandbox.

Official Patches

patriksimekFix commit restricting resolution pathways in lib/cli.js
patriksimekOfficial GitHub Release page for fixed version 3.11.7

Fix Analysis (1)

Technical Appendix

CVSS Score
9.3/ 10
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
EPSS Probability
0.20%
Top 91% most exploited

Affected Systems

vm2 CLI (npm package)

Affected Versions Detail

Product
Affected Versions
Fixed Version
vm2
patriksimek
< 3.11.73.11.7
AttributeDetail
CWE IDCWE-453 (Insecure Default Variable Initialization)
Attack VectorLocal
CVSS v4.0 Score9.3 (Critical)
EPSS Score0.00197 (8.53rd Percentile)
Exploit StatusProof-of-Concept Publicly Available
KEV StatusNot Listed

MITRE ATT&CK Mapping

T1211Exploitation for Defense Evasion
Defense Evasion
T1059.003Command and Scripting Interpreter: JavaScript
Execution
CWE-453
Insecure Default Variable Initialization

The vm2 CLI tool initializes the sandboxed context with an insecure configuration, omitting the root boundary and evaluation context rules, enabling module resolution inside the host realm.

Known Exploits & Detection

GitHub Security AdvisoryGHSA advisory describing the insecure default options and reproduction payload.

Vulnerability Timeline

Vulnerability discovered, addressed and commit 903017c8a1eae9aba947ec854468b48155e79f86 applied
2026-08-22
Patched version 3.11.7 published
2026-08-22
CVE-2026-92950 record officially published
2026-09-17

References & Sources

  • [1]GitHub Security Advisory
  • [2]VulnCheck Security Advisory
  • [3]CVE Record

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•30 minutes ago•GHSA-VGHH-5RFX-XHQ8
9.9

CVE-2026-48749: Arbitrary Host File Read and Write via Malicious Image Symlink in Canonical LXD and Incus

CVE-2026-48749 (tracked as GHSA-vghh-5rfx-xhq8 for LXD and GHSA-2q3f-q5pq-g8wv for Incus) is a critical container escape vulnerability in the Canonical LXD and Linux Containers Incus system container managers. By importing a specially crafted container image archive containing duplicate tar member headers, an authenticated attacker can replace the instance rootfs directory with a symbolic link pointing to the underlying host root filesystem. When performing file operations on a stopped container, the privileged forkfile helper binary resolves the symbolic link without confinement and chroots directly into the host filesystem, granting arbitrary root-level file read and write access.

Amit Schendel
Amit Schendel
2 views•9 min read
•about 2 hours ago•GHSA-FMC8-P6Q7-75CC
9.9

GHSA-fmc8-p6q7-75cc: Argument Injection in Canonical LXD Backup Compression Leads to Host Root Code Execution

GHSA-fmc8-p6q7-75cc (associated with CVE-2026-48755) is a critical argument injection vulnerability in Canonical LXD (github.com/canonical/lxd). The vulnerability occurs during instance and storage volume backup operations when processing the user-supplied compression_algorithm configuration parameter. While LXD validates the primary executable token against an allowlist of supported compression binaries, it fails to sanitize or restrict subsequent tokens parsed via shellquote.Split. These additional arguments are passed directly to exec.Command. An authenticated attacker with privileges to trigger backups can inject command-line flags for utilities like zstd to read staged files from a container filesystem and write them to arbitrary paths on the underlying host filesystem, such as /etc/cron.d/, achieving root-level arbitrary code execution on the host.

Amit Schendel
Amit Schendel
6 views•10 min read
•about 2 hours ago•GHSA-PJFF-C2WC-F6JM
9.9

CVE-2026-48769: Arbitrary File Write and Remote Code Execution via Trusted Image Hash in Canonical LXD and Linux Containers Incus

A critical path traversal vulnerability caused by improper input validation (CWE-20) exists in the direct image download handler of Canonical LXD and Linux Containers Incus. When an authenticated user requests an image import using the URL source type, the daemon reads the image fingerprint from an untrusted HTTP response header (`Incus-Image-Hash` or `LXD-Image-Hash`) without validating that it conforms to a SHA-256 format. This unvalidated string is concatenated directly into a filesystem path via `filepath.Join` prior to file creation and cryptographic verification, allowing directory traversal sequences to write arbitrary files on the host filesystem as root.

Alon Barad
Alon Barad
7 views•10 min read
•about 6 hours ago•CVE-2026-9639
6.5

CVE-2026-9639: Authenticated Denial of Service via Nil-Pointer Dereference in Canonical LXD Custom Volume Backup Import

CVE-2026-9639 (GHSA-j93m-3j9p-m5m8) is a null pointer dereference vulnerability in Canonical LXD affecting versions 5.0.0 through 5.21.4 and 6.0 through 6.8. The flaw resides in the (*lxdBackend).CreateCustomVolumeFromBackup method within lxd/storage/backend_lxd.go. An authenticated attacker with the can_create_storage_volumes permission can upload a crafted custom volume backup tarball that omits the expires_at field on a snapshot entry, triggering an unhandled SIGSEGV panic and terminating the LXD daemon.

Amit Schendel
Amit Schendel
6 views•9 min read
•about 8 hours ago•CVE-2026-33050
8.8

CVE-2026-33050: OS Command Injection in GeoNode Vector Upload Handler

An operating system command injection vulnerability (CWE-78) exists in GeoNode versions prior to 5.1.0. The vulnerability occurs in the vector upload processing pipeline when handling user-supplied geospatial files. By supplying a crafted layer name containing shell metacharacters, an authenticated attacker with basic data upload privileges can execute arbitrary commands on the underlying server or container hosting the GeoNode application and Celery worker processes.

Alon Barad
Alon Barad
6 views•9 min read
•about 9 hours ago•CVE-2026-46429
5.5

CVE-2026-46429: Unrestricted File Upload and Validation Bypass in GeoNode

GeoNode versions prior to 5.0.3 contain an unrestricted file upload vulnerability (CWE-434) within the document and dataset ingestion architecture. Authenticated low-privileged users can bypass upload validation via direct REST API interactions, file extension masquerading, metadata mutation via PATCH requests, or malicious archive submissions. This allows attackers to store and serve dangerous file types, alter on-disk file references, or trigger path traversal and resource exhaustion during archive extraction.

Amit Schendel
Amit Schendel
7 views•10 min read