.. / CVE-2023-37903

Exploit for Node.js vm2 <= 3.9.19 - Remote Code Execution (CVE-2023-37903)

Description:

vm2 is an open source vm/sandbox for Node.js. In vm2 for versions up to and including 3.9.19, Node.js custom inspect function allows attackers to escape the sandbox and run arbitrary code. This may result in Remote Code Execution, assuming the attacker has arbitrary code execution primitive inside the context of vm2 sandbox. There are no patches and no known workarounds. Users are advised to find an alternative software.

Proof of Concept

PoC exploit

Try the exploit in a lab environment:

Lab Machine Link
Hack The Box Codify Go to Practice

References:

https://nvd.nist.gov/vuln/detail/CVE-2023-37903
https://github.com/patriksimek/vm2/security/advisories/GHSA-g644-9gfx-q4q4
https://security.netapp.com/advisory/ntap-20230831-0007/