Code Injection in vm2-project (CVE-2026-24118)
Summary
code injection in vm2-project (CVE-2026-24118). Successful exploitation can lead to full system takeover. Exploitable via __lookupGetter__.
Original description
The description as published by the source.
vm2 is an open source vm/sandbox for Node.js. Prior to version 3.11.0, VM2 suffers from a sandbox breakout vulnerability. This allows 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.11.0.
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.
There is a critical vulnerability in the vm2 library for Node.js. Without patching, attackers could use this library to take control of the server. This issue is fixed in version 3.11.0, and it is recommended to update immediately. This vulnerability could pose severe risks similar to past issues like Heartbleed.
A sandbox breakout vulnerability in vm2, a Node.js virtual machine library, allows attackers to execute code in the host environment. Affected versions are <=3.10.4, patched in 3.11.0. Exploitation involves using the __lookupGetter__ method with Buffer.apply to invoke the host apply method, enabling arbitrary code execution on the host. There is no workaround; updating to the latest version is necessary.
Sandbox breakout in vm2 allowing arbitrary code execution on the host system.
Within vm2 library running untrusted code.
Critical severity with CVSS 9.8, remote exploitation possible without user interaction.
Update to vm2 version 3.11.0 or later.
No known workarounds.
Monitor for unexpected file changes or command execution suggesting unauthorized access.
Related past incidents Similar incidents extracted from past CVEs
Similar vulnerability in Spring Framework allowing RCE via data binding.
Heartbleed vulnerability where memory leak allowed sensitive data exposure.
Log4Shell vulnerability in Apache Log4j allowing RCE via JNDI lookup.
If this happens at your company Expected impact per business scenario
The attacked system could be fully compromised, allowing data theft and unauthorized access to resources.
Critical business processes could be disrupted, leading to loss of productivity and financial damage.
The provider's systems could be used to further launch attacks on client systems, damaging reputation and leading to compliance issues.
Company should immediately upgrade to vm2 version 3.11.0 and review systems for signs of past exploitation.
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.4`Step 1 で見つかったバージョンが影響範囲
<= 3.10.4に該当するか照合。本番で稼働中ならインシデント扱い。 -
7Post-deployment verification verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番では Step 3 と同じログクエリでアラート再発が無いか継続監視。
References
- exploit github.com
- patch security-advisories@github.com
- patch security-advisories@github.com
- web security-advisories@github.com
- web access.redhat.com
- web bugzilla.redhat.com
- web security.access.redhat.com