Skip to main content
← All vulnerabilities
CVE-2023-30547GHSA-CH3R-J5X3-6Q2M

Sandbox Escape in vm2

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.9.17
5 proofs of concept on GitHub
  • Exploitation: poc
  • Automatable: yes
  • Technical impact: total

Summary

vm2 is a sandbox that can run untrusted code with whitelisted Node's built-in modules. There exists a vulnerability in exception sanitization of vm2 for versions up to 3.9.16, allowing attackers to raise an unsanitized host exception inside `handleException()` which can be used to escape the sandbox and run arbitrary code in host context. This vulnerability was patched in the release of version `3.9.17` of `vm2`. There are no known workarounds for this vulnerability. Users are advised to upgrade.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: total

  3. Record last updated
  4. EPSS reached 10%

    FIRST estimates at least a 10% chance of exploitation in the next 30 days

Affected versions

  • patriksimek vm2

    fixed in 3.9.17

  • vm2npm

    fixed in 3.9.17

References 9

GitHub · patriksimek/vm2

gist.github.com

GitHub · Cur1iosity/CVE-2023-30547

GitHub · R3fr4kt/Codify-TJNULL-OSCP-

GitHub · junnythemarksman/CVE-2023-30547

GitHub · rvzsec/CVE-2023-30547

GitHub · user0x1337/CVE-2023-30547