Improper Control of Dynamically-Managed Code Resources in vm2 - #VU131741

 

Improper Control of Dynamically-Managed Code Resources in vm2 - #VU131741

Published: May 18, 2026


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

Detailed vulnerability description

The vulnerability allows a remote attacker to execute arbitrary code.

The vulnerability exists due to improper control of dynamically-managed code resources in the vm2 sandbox when processing crafted code inside the sandbox. A remote attacker can combine Buffer prototype accessors with Node.js error handling to escape the sandbox and execute arbitrary code.

The issue allows access to the host's TypeError constructor, resulting in a scope change from the sandbox to the host environment.


Remediation

Install security update from vendor's website.

Sources