Improper access control in vm2 - CVE-2026-24118
Published: May 4, 2026
vm2
Detailed vulnerability description
The vulnerability allows a remote attacker to execute arbitrary code on the host system.
The vulnerability exists due to improper access control in the vm2 sandbox boundary handling of the __lookupGetter__ method when executing untrusted code inside a vm2 sandbox. A remote attacker can invoke host-context methods through Buffer.apply and retrieve the host Function constructor to execute arbitrary code on the host system.
Exploitation requires the ability to run arbitrary code within the context of a vm2 sandbox.