#VU75367 Code injection in vm2


Published: 2023-04-20 | Updated: 2023-12-18

Vulnerability identifier: #VU75367

Vulnerability risk: Medium

CVSSv3.1: 8.9 [CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H/E:P/RL:O/RC:C]

CVE-ID: CVE-2023-30547

CWE-ID: CWE-74

Exploitation vector: Network

Exploit availability: Yes

Vulnerable software:
vm2
Web applications / Modules and components for CMS

Vendor: 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.

Mitigation
Install updates from vendor's website.

Vulnerable software versions

vm2: 3.9.0 - 3.9.16


External links
http://github.com/patriksimek/vm2/commit/f3db4dee4d76b19869df05ba7880d638a880edd5
http://github.com/patriksimek/vm2/commit/4b22e87b102d97d45d112a0931dba1aef7eea049
http://github.com/patriksimek/vm2/security/advisories/GHSA-ch3r-j5x3-6q2m
http://gist.github.com/leesh3288/381b230b04936dd4d74aaf90cc8bb244


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote authenticated user via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability. However, proof of concept for this vulnerability is available.


Latest bulletins with this vulnerability