Executive brief
Soketi is an open-source WebSocket server that enables real-time communication for web applications. A vulnerability in its use of the vm2 code sandbox library allows attackers to escape the sandbox and execute arbitrary code on the server. Any deployment using Soketi with the cluster driver or PM2 process manager is affected and could result in complete system compromise.
Technical details
The vulnerability is a code injection issue (CWE-94) stemming from insufficient input neutralization in Soketi's use of the vm2 sandboxing library. The vm2 library, which Soketi relies on to safely execute user-supplied code, contains multiple known sandbox escape vectors that allow attackers to break out of the restricted execution environment. The vulnerability is exploitable remotely over the network without authentication or user interaction required. An attacker can leverage this to execute arbitrary code with the privileges of the Soketi process, potentially gaining full control of the system. The issue has been patched in Soketi 1.6.0 and later; affected users should upgrade immediately.
Affected products
- Soketi Soketi prior to 1.6.0
Timeline
- 2023-08-03: disclosed