# CVE-2026-92937: vm2 3.11.6 Remote Code Execution via Promise call/apply

The Markdown version of <https://upatch.dev/cve/CVE-2026-92937>. Last updated 25 Nov 2026.

## At a glance

CVE-2026-92937 is rated Critical 10.0 (CVSS 4.0, CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X). It affects vm2 (patriksimek) and was published on 17 Sept 2026. It is not in CISA's Known Exploited Vulnerabilities catalog. Its EPSS score is 1.0%: the estimated chance it is exploited in the next 30 days, as of 24 Nov 2026. The upatch `cve-2026-92937-exec-block` mitigates it, and is vetted (merged into the registry).

A upatch is a signed BPF program that shirudo loads into a running Linux kernel to block the code path this CVE's exploit takes. It holds the line until the fix ships; it does not replace patching.

## The vulnerability

CVE-2026-92937 (GHSA-647f-g98j-qq25), published on 17 September 2026, is a sandbox escape in `vm2` 3.11.6 that leads to remote code execution in the host Node.js process. It is an incomplete fix for GHSA-m283-3h24-438v: the bridge gate at `lib/bridge.js:1624` identity-checks only the direct call target when deciding whether to rebuild and sanitize a rejected host `Promise` value. Registering the rejection handler through `Function.prototype.call` or `.apply` indirection (`p.then.call(p, undefined, cb)`) makes the intercepted target the host's `Function.prototype.call`, so the sanitizer never runs and the raw host error reaches sandbox code (`lib/bridge.js:1639`) with its own properties intact. When an embedder-exposed host-realm `Promise` rejects with an `Error` carrying a property that references a host object such as `process`, sandbox code receives a working proxy to it and can load `child_process` (`e.detail.mainModule.require('child_process').execSync(...)`) to execute arbitrary commands on the host.

### Official description

vm2 3.11.6 is vulnerable to a sandbox escape leading to remote code execution in the host Node.js process. The fix for GHSA-m283-3h24-438v is incomplete: the bridge gate at lib/bridge.js:1624 identity-checks only the direct call target when deciding whether to rebuild/sanitise a rejected host Promise value. Registering the rejection handler through Function.prototype.call or .apply indirection (e.g., p.then.call(p, undefined, cb)) makes the intercepted target host Function.prototype.call, so the sanitiser never runs and the raw host error reaches sandbox code with its own properties intact. If an embedder exposes a host-realm Promise to the sandbox (an async host function bridged via the sandbox option, or a NodeVM external module's async method) and that Promise rejects with an Error carrying a non-primitive own property referencing a host object (for example err.detail = process), untrusted code in the sandbox obtains a fully functional proxy to that host object and can execute arbitrary commands with the privileges of the host process (e.g., e.detail.mainModule.require('child_process').execSync(...)). The direct p.then(undefined, cb), bind, and Reflect.apply forms are correctly sanitised. Fixed in vm2 3.11.7.

## What the upatch does

It attaches to `lsm/bprm_check_security` and returns `-EPERM` when the calling task's executable (`mm->exe_file`) or command name (`comm`) is `node`. When Node.js spawns a child process (`child_process.execSync`, `execFileSync`, `spawn`, `exec`), it forks a child whose executable and command name are still `node` when `execve` runs `security_bprm_check()`. Refusing that step causes the spawn to fail with `EPERM` before the target program is loaded. A refusal from an earlier BPF LSM program on the same hook is passed on unchanged, and the `refused` per-CPU array counts refused executions at key 0.

The policy: [`cve-2026-92937-exec-block.bpf.c`](https://github.com/copper-helm/upatch-registry/tree/main/upatches/cve-2026-92937), 70 lines of BPF C attached at `lsm/bprm_check_security`, licensed GPL-2.0 OR BSD-2-Clause.

## Side effects

- Any `node` process on the machine is unable to execute child programs (`child_process.spawn`, `exec`, `execFile`, `execSync`, `execFileSync` fail with `EPERM`).
- Pure JavaScript execution inside `vm2` and the host Node.js application, network I/O, and file operations continue to work.
- Other processes on the machine, including root shells, `sshd`, and package managers, can execute programs normally; starting `/usr/bin/node` from another process remains allowed because the parent's executable is not `node`.
- Not covered: in-process post-exploitation inside the Node.js process that does not spawn an external binary (`fs` reads or writes, network connections), or a Node.js binary renamed to something other than `node` that also changes its `comm` before calling `execve`.

## Preemption model and cost

The program shares only a single-entry per-CPU counter (`refused`), updated with an atomic fetch-and-add only when an `execve` from `node` is refused, so it is safe under every preemption model, including `PREEMPT_LAZY`, preemptible RCU, and `PREEMPT_RT`. The hook runs only on `execve`, never on I/O or syscall hot paths, and non-`node` processes return after checking the four-byte executable dentry length and `comm`.

## Affected versions

`vm2` (npm):

| Affected    | Fixed in |
| ----------- | -------- |
| `<= 3.11.6` | `3.11.7` |

Affected kernels: N/A (application vulnerability in `vm2`; the upatch runs on any Linux kernel supported by shirudo with `BPF_LSM`).

## How it was tested

On vm2 3.11.6 running on Node.js, the loaded upatch refused child process execution from the escaped sandbox with EPERM while normal vm2 evaluation continued to work.

- **Tested:** 25 Nov 2026
- **Target:** vm2 3.11.6 on Node.js with a bridged async host function rejecting with a host reference, loopback only
- **Kernel:** 7.4-shirudo-ci-20261123
- **Architecture:** x86_64
- **Machine:** shirudo test VM
- **Distribution:** Ubuntu 26.04

### Results

| State           | Child command execution from escaped vm2 sandbox | Normal vm2 evaluation |
| --------------- | ------------------------------------------------ | --------------------- |
| Before loading  | yes                                              | yes                   |
| Upatch loaded   | no (EPERM)                                       | yes                   |
| After unloading | yes                                              | yes                   |

## How to apply

Build the upatch from source, sign it with your own shirudo key, and publish it to your own OCI registry. Machines that follow your upatch tree load it within about a minute.

Build and sign:

```sh
git clone https://github.com/copper-helm/upatch-registry
cd upatch-registry
tools/build <shirudo-checkout> <keys-dir> 1.0.0 upatches/cve-2026-92937
```

Publish and roll out:

```sh
shirudo bpm push build/packages/cve-2026-92937-1.0.0.bee oci://<registry>/<namespace>/cve-2026-92937 --keys-dir <keys-dir>
shirudo bpm tree append build/packages/cve-2026-92937-1.0.0.bee oci://<registry>/<namespace>/<tree> --tree-id <tree-id> --keys-dir <keys-dir>
```

## Review

- Contributors: romanlab.
- Reviewers: none recorded yet.

## Sources and links

- [CVE-2026-92937 record (CVE API)](https://cveawg.mitre.org/api/cve/CVE-2026-92937)
- [GitHub Security Advisory GHSA-647f-g98j-qq25](https://github.com/patriksimek/vm2/security/advisories/GHSA-647f-g98j-qq25)
- [VulnCheck advisory for CVE-2026-92937](https://www.vulncheck.com/advisories/vm2-3.11.6-remote-code-execution-via-promise-call-apply)
- [vm2 v3.11.7 release and commit 0c5b63a228c0](https://github.com/patriksimek/vm2/releases/tag/v3.11.7)

### Links

- [CVE-2026-92937 on upatch.dev](https://upatch.dev/cve/CVE-2026-92937) (this page, as HTML)
- [NVD](https://nvd.nist.gov/vuln/detail/CVE-2026-92937)
- [CVE.org](https://www.cve.org/CVERecord?id=CVE-2026-92937)
- [CWE-94](https://cwe.mitre.org/data/definitions/94.html)
- Upatch source: [upatches/cve-2026-92937](https://github.com/copper-helm/upatch-registry/tree/main/upatches/cve-2026-92937)

### More references from NVD (2)

- [github.com](https://github.com/patriksimek/vm2/security/advisories/GHSA-647f-g98j-qq25)
- [vulncheck.com](https://www.vulncheck.com/advisories/vm2-3.11.6-remote-code-execution-via-promise-call-apply)
