Inspect method manipulation in vm2
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- None · Low · None
- Fix status
- Partial Red Hat: 1 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat.
Summary
vm2 is a sandbox that can run untrusted code with Node's built-in modules. In versions 3.9.17 and lower of vm2 it was possible to get a read-write reference to the node `inspect` method and edit options for `console.log`. As a result a threat actor can edit options for the `console.log` command. This vulnerability was patched in the release of version `3.9.18` of `vm2`. Users are advised to upgrade. Users unable to upgrade may make the `inspect` method readonly with `vm.readonly(inspect)` after creating a vm.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| patriksimek | vm2 | before 3.9.18 | 3.9.18 | Patch available | CNA |
| — | vm2 (npm) | before 3.9.18 | 3.9.18 | Patch available | GHSA-p5gc-c584-jj6v |
- vm2 Vendorpatriksimek Affected before 3.9.18 Fixed in 3.9.18 Patch available CNA
- vm2 (npm) Vendor— Affected before 3.9.18 Fixed in 3.9.18 Patch available GHSA-p5gc-c584-jj6v
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:vm2_project:vm2:*:*:*:*:*:node.js:*:* | before 3.9.18 | Vulnerable | patriksimek |
- cpe:2.3:a:vm2_project:vm2:*:*:*:*:*:node.js:*:* Versions before 3.9.18 Vulnerable ·patriksimek
Remediation
- Fix · CNA vm2 (patriksimek) Fixed in 3.9.18
- Fix · GHSA-p5gc-c584-jj6v vm2 (npm) Fixed in 3.9.18 Advisory →
Red Hat 4 advisories
- RHSA-2023:3356 Released 2023-05-30 · Red Hat rating CriticalRed Hat Advanced Cluster Management 2.5.9 security fixes and container updates
- Red Hat Advanced Cluster Management for Kubernetes 2.5 for RHEL 8 rhacm2/acm-cluster-proxy-rhel8, rhacm2/acm-governance-policy-addon-controller-rhel8, rhacm2/acm-grafana-rhel8 +47
- RHSA-2023:3353 Released 2023-05-30 · Red Hat rating CriticalMulticluster Engine for Kubernetes 2.0.9 security fixes and container updates
- multicluster engine for Kubernetes 2.0 for RHEL 8 multicluster-engine/agent-service-rhel8, multicluster-engine/apiserver-network-proxy-rhel8, multicluster-engine/assisted-image-service-rhel8 +35
- RHSA-2023:3326 Released 2023-05-26 · Red Hat rating CriticalRed Hat Advanced Cluster Management 2.6.6 security fixes and container updates
- Red Hat Advanced Cluster Management for Kubernetes 2.6 for RHEL 8 rhacm2/acm-governance-policy-addon-controller-rhel8, rhacm2/acm-grafana-rhel8, rhacm2/acm-must-gather-rhel8 +45
Show 1 more Red Hat advisories
- RHSA-2023:3325 Released 2023-05-25 · Red Hat rating CriticalMulticluster Engine for Kubernetes 2.1.7 security fixes and container updates
- multicluster engine for Kubernetes 2.1 for RHEL 8 multicluster-engine/agent-service-rhel8, multicluster-engine/apiserver-network-proxy-rhel8, multicluster-engine/assisted-image-service-rhel8 +37
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Advanced Cluster Management for Kubernetes 2 | Affected | No fix yet |
Timeline
- 2026-10-02 Threatist record created from CVE-2023-32313
- 2026-10-03 Alias added: GHSA-p5gc-c584-jj6v
References
Advisory 2
More patriksimek Vm2 vulnerabilities
- TI-2023-14382 Sandbox Escape in vm2 CVSS 3.1CRITICAL 10.0
- TI-2023-13478 vm2 Sandbox Escape vulnerability CVSS 3.1CRITICAL 10.0
- TI-2026-33200 vm2: Sandbox Breakout Using Async Generator CVSS 3.1CRITICAL 9.8
- TI-2026-32052 vm2: Sandbox Breakout Through Null Proto Exception CVSS 3.1CRITICAL 9.8
- TI-2026-32051 vm2 has sandbox breakout via `neutralizeArraySpeciesBatch` CVSS 3.1CRITICAL 9.8
- TI-2026-32049 vm2: Sandbox Escape CVSS 3.1CRITICAL 10.0
Sources
- CVE-2023-32313 · CVE Program
- CVE-2023-32313 · NVD
- FIRST EPSS
- GHSA-p5gc-c584-jj6v · GitHub Advisory Database · CC BY 4.0
- CVE-2023-32313 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences