#VU75367 Code injection in vm2 - CVE-2023-30547
Published: April 20, 2023 / Updated: December 18, 2023
vm2
Patrik Simek
Description
The vulnerability allows a remote user to bypass implemented security restrictions.
The vulnerability exists due to an error in exception sanitization. A remote user can raise an unsanitized host exception inside "handleException()", which can be used to escape the sandbox and run arbitrary code in host context.
Remediation
External links
- https://github.com/patriksimek/vm2/commit/f3db4dee4d76b19869df05ba7880d638a880edd5
- https://github.com/patriksimek/vm2/commit/4b22e87b102d97d45d112a0931dba1aef7eea049
- https://github.com/patriksimek/vm2/security/advisories/GHSA-ch3r-j5x3-6q2m
- https://gist.github.com/leesh3288/381b230b04936dd4d74aaf90cc8bb244