Vulnerability in vm2-project
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
A severe security issue has been discovered in vm2, an open-source sandbox for Node.js. This vulnerability allows attackers to escape the sandbox and execute arbitrary code on the system, potentially taking over control. Similar issues have occurred in the past, particularly involving the unintended disabling of security mechanisms (CWE-693). The issue is fixed in version 3.10.5, and it is highly recommended that organizations update their software immediately.
The vulnerability in vm2 version 3.10.4 allows attacker code executed inside VM.run() to obtain the host process object and execute commands on the host. Affected versions are up to 3.10.4, and the issue is fixed in 3.10.5. The PoC exploits the WASM try_table instruction to catch JavaScript exceptions at the C++ level, leading to arbitrary code execution through unsanitized host errors. No workarounds are provided, thus an immediate update is recommended.
vm2のVM.run()内でのフルサンドボックスエスケープと任意のコード実行が可能。
vm2 version 3.10.4以下。
critical: リモート攻撃可能、認証不要、ユーザー操作不要。
vm2をバージョン3.10.5に更新する。
素材から特定できず。
素材から特定できず。
Related past incidentsSimilar incidents extracted from past CVEs
Node.jsのsandbox escapeに関連するCVE。
TypeScriptコンパイラによるsandbox escapeの事例。
If this happens at your companyExpected impact per business scenario
攻撃者がサンドボックスを脱出してバックエンドの完全な制御を取得する可能性がある。
攻撃者が社内の開発サーバで任意のコードを実行できるリスクがある。
一つのテナントが他のテナントやホストシステムを攻撃する可能性がある。
即座にvm2のバージョンを3.10.5にアップデートすること。
Response actions
Concrete steps and command examples for SOC/SRE teams to execute in order
-
1
Identify exposureidentify
grep -r 'vm2-project' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
vm2-projectを grep し、稼働しているサービス・バージョンを把握する。 -
2
Match against affected rangeverify
Confirm if version satisfies `<= 3.10.4`Step 1 で見つかったバージョンが影響範囲
<= 3.10.4に該当するか照合。本番で稼働中ならインシデント扱い。 -
7
Post-deployment verificationverify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番では Step 3 と同じログクエリでアラート再発が無いか継続監視。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| npmvm2 |
< 3.10.5→ 3.10.5 |
3.10.5 |
Original description The description as published by the source.
vm2 is an open source vm/sandbox for Node.js. In version 3.10.4, vm2 is vulnerable to full sandbox escape with arbitrary code execution. Attacker code inside VM.run() obtains host process object and runs host commands with zero host cooperation. This issue has been patched in version 3.10.5.
Source: NIST National Vulnerability Database NVD GitHub Advisory
References
- advisory nvd.nist.gov
- advisory github.com
- exploit github.com
- package github.com
- web security-advisories@github.com
- web github.com
- web access.redhat.com
- web bugzilla.redhat.com
- web security.access.redhat.com