Allocation of Resources Without Limits or Throttling in vm2 - #VU129585
Published: May 4, 2026
vm2
Detailed vulnerability description
The vulnerability allows a remote attacker to cause a denial of service.
The vulnerability exists due to allocation of resources without limits or throttling in Buffer.alloc exposed through the vm2 sandbox bridge when processing sandboxed code that invokes Buffer.alloc with an arbitrary size. A remote attacker can send crafted code to allocate excessive host memory and cause a denial of service.
In memory-constrained environments, a single request can terminate the host process with an out-of-memory condition. The issue bypasses vm2's timeout handling because the allocation occurs in a synchronous native call.