PT-2026-36846 · Npm · Vm2
CVSS v3.1
10
Critical
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions
vm2 versions prior to 3.11.0
Description
vm2 is an open source sandbox for Node.js that contains a sandbox breakout issue caused by incorrect code generation management. This allows attackers to bypass JavaScript sandbox isolation and execute arbitrary commands on the host system. The issue stems from the
lookupGetter method, which can switch between host and sandbox versions when passed to another context. By using the host apply method via Buffer.apply, an attacker can access getters in the host context. This process enables the retrieval of the host Function.prototype object and the host Function through the constructor property, allowing the creation and execution of code in the host context. Attempts to mitigate this using Object.getOwnPropertyDescriptor to access the constructor property can circumvent previous fixes.Recommendations
Update to version 3.11.0.
Exploit
Fix
RCE
Code Injection
Protection Mechanism Failure
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Vm2