CVE-2026-92958: vm2 - Sandbox Bypass
- Cve: CVE-2026-92958
- Name: vm2 - Sandbox Bypass
- Description: vm2 through 3.11.6 contains a builtin-module denylist bypass in NodeVM. When the embedder uses the builtin wildcard together with negative entries (e.g. require: { builtin: ['*', '-fs', '-child_process'] }), negative entries are matched by exact module name in lib/builtin.js, so -fs removes only the builtin named fs and does not remove builtin subpaths such as fs/promises. Sandboxed code can therefore call require('fs/promises') or require('node:fs/promises') and reach the promise-based filesystem API despite fs being denied; node: prefix handling is likewise inconsistent (a -node:fs/promises entry does not block require('fs/promises')). Host file creation and writing were confirmed via fsp.writeFile(), and other fs/promises operations (cp, mkdir, rename, rm, rmdir, truncate, read operations, etc.) are also reachable. This issue is fixed in vm2 3.11.7.
- Impact: Sandboxed code can bypass module restrictions to perform unauthorized file system operations, potentially leading to host file creation and modification.
- Remediation: Upgrade to vm2 version 3.11.7 or later.
- Vulnerability type: misconfiguration
- Vulnerability impact: file_system_write, file_system_read
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 8.5
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:L
- Epss score: 0.00384
- Epss percentile: 0.32992
- Assignee: [email protected]
- Published at: 2026-09-17T14:18:01Z
- Age in days: 68
- Modified at: 2026-09-18T20:17:31Z
- Patch available: yes
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-92958
- Nvd status: deferred
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-269 | Improper Privilege Management |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/patriksimek/vm2/security/advisories/GHSA-6rh5-qq4q-97xh | nvd | |
| https://www.vulncheck.com/advisories/vm2-before-3.11.7-denylist-bypass-via-fs-promises | nvd |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| vm2_project:vm2 | < 3.11.7 | no | cna_alias | /v1/products/vm2_project/vm2 |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| patriksimek/vm2 | commit, package, releases, security_advisory | yes | /v1/repositories/patriksimek/vm2 |
Index
- Repositories: 59
- Repositories high signal: 16
- Packages: 1
Exploitation
- Remote: yes
- Authentication required: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts