Improper access control in vm2 - #VU129583

 

Improper access control in vm2 - #VU129583

Published: May 4, 2026


Vulnerability identifier: #VU129583
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Clear
CVE-ID: N/A
CWE-ID: CWE-284
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: Patrik Simek
Affected software:
vm2

Detailed vulnerability description

The vulnerability allows a remote user to execute arbitrary OS commands on the host.

The vulnerability exists due to improper access control in the NodeVM module resolver when processing sandboxed code in a NodeVM configured with nesting: true. A remote privileged user can require the vm2 package from the sandbox and create a new inner NodeVM with attacker-controlled require settings to execute arbitrary OS commands on the host.

Exploitation requires the host to run untrusted or user-supplied code inside a NodeVM with nesting: true.


Remediation

Install security update from vendor's website.

Sources