{
  "id": "CVE-2026-92935",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-92935",
  "published_at": "2026-09-17T13:46:00.854Z",
  "title": "vm2 NodeVM Remote Code Execution via Array-Shaped Require",
  "vendor": "patriksimek",
  "product": "vm2",
  "cvss": {
    "score": 9.5,
    "source": "cna",
    "vector": "CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "vm2 is a sandbox for running untrusted Node.js code. In versions \u003e= 3.11.4 and \u003c= 3.11.6, the NodeVM constructor computes `hasRealRequireConfig` with `typeof requireOpts === 'object' \u0026\u0026 requireOpts !== null`, so an array-shaped `require` value (for example `require: []`) satisfies the guard that is meant to reject nesting without an explicit require configuration. `makeResolverFromLegacyOptions()` then destructures the array into undefined option fields and returns a resolver containing only `NESTING_OVERRIDE.vm2`. As a result, an attacker who can supply JavaScript executed by a NodeVM configured with truthy `nesting` and an array-shaped `require` (e.g. `new NodeVM({nesting: true, require: []})`) can require the host `vm2` module, create an inner NodeVM with an attacker-chosen builtin allowlist (such as `child_process`), and execute arbitrary commands with the privileges of the host Node.js process, escaping the sandbox. Outer builtin restrictions do not constrain the attacker-created inner NodeVM. This issue is fixed in vm2 3.11.7.",
  "cwe": "CWE-913",
  "cvss_by_source": {
    "cna": 9.5
  },
  "repos": [
    {
      "repo": "CompleteTech-Security/vm2-nesting-check",
      "url": "https://github.com/CompleteTech-Security/vm2-nesting-check",
      "created_at": "2026-10-23T23:37:45Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 0,
      "is_poc": "no",
      "kind": "writeup",
      "suspicion_score": 45,
      "suspicious": false,
      "suspicion_reasons": [
        "owner account created less than 7 days before the repo",
        "no network code found (normal for a local exploit)"
      ],
      "status": "analyzed",
      "owner_created_at": "2026-10-24T07:04:53Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "patriksimek",
        "product": "vm2",
        "ranges": [
          "\u003e= 3.11.4, \u003c 3.11.7"
        ],
        "fixed_in": [
          "3.11.7"
        ]
      }
    ],
    "upgrade": [
      "Upgrade vm2 to 3.11.7 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/patriksimek/vm2/security/advisories/GHSA-8hr7-r645-pc6w"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/patriksimek/vm2/commit/54b54b74a382577f0bcd0538c5bf99acdcd7f53b"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
