Summary
code injection in vm2-project (CVE-2026-24120). Successful exploitation can lead to full system takeover. Exploitable via resetPromiseSpecies.
Original description
The description as published by the source.
vm2 is an open source vm/sandbox for Node.js. Prior to version 3.10.5, the fix for CVE-2023-37466 is insufficient and can be circumvented allowing attackers to write code which can escape from the VM2 sandbox and execute arbitrary commands on the host system. This issue has been patched in version 3.10.5.
Source: NIST National Vulnerability Database NVD
AI summary
Written by an external AI model and may contain mistakes. Check the original description and references below before acting on it.
A critical security issue has been identified in vm2, a Node.js sandbox, allowing attackers to escape the sandbox and execute arbitrary code on the host system. This was patched in version 3.10.5, and prompt updating is recommended. Similar issues in the past have led to system takeovers, highlighting the need for caution.
This vulnerability exists in vm2 sandbox versions <= 3.10.3, allowing code execution on the host system via Promise objects. It has been patched in 3.10.5. With this vulnerability, attackers exploit Object.defineProperty and Symbol.species to gain access to the host's process object and execute commands. Affected environments should apply the patch immediately.
vm2 sandbox escape enabling arbitrary code execution on host
vm2 versions <= 3.10.3, patched in 3.10.5
Critical, allows remote code execution
Update vm2 to version 3.10.5 or later
No workaround available, updating is mandatory
Monitor for unusual file operations such as creating files like 'pwned'
Related past incidents Similar incidents extracted from past CVEs
Previous issue in vm2 relating to sandbox escape capabilities.
Another instance of vm2 allowing sandbox escape.
If this happens at your company Expected impact per business scenario
Could enable attackers to escape from a sandboxed environment, leading to full system control.
Potential for remote takeover of devices.
Risk of data leaks and unauthorized command execution on server infrastructure.
Organizations should urgently update to vm2 version 3.10.5 to mitigate this risk.
Response actions
Concrete steps and command examples for SOC/SRE teams to execute in order
-
1Identify exposure identify
grep -r 'vm2-project' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
vm2-projectを grep し、稼働しているサービス・バージョンを把握する。 -
2Match against affected range verify
Confirm if version satisfies `<= 3.10.3`Step 1 で見つかったバージョンが影響範囲
<= 3.10.3に該当するか照合。本番で稼働中ならインシデント扱い。 -
7Post-deployment verification verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番では Step 3 と同じログクエリでアラート再発が無いか継続監視。
References
- exploit github.com
- web security-advisories@github.com
- web access.redhat.com
- web bugzilla.redhat.com
- web security.access.redhat.com