Skip to main content
← All vulnerabilities
CVE-2023-29017GHSA-7JXR-CG7F-GPGV

vm2 Sandbox Escape vulnerability

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.9.15
3 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. Prior to version 3.9.15, vm2 was not properly handling host objects passed to `Error.prepareStackTrace` in case of unhandled async errors. A threat actor could bypass the sandbox protections to gain remote code execution rights on the host running the sandbox. This vulnerability was patched in the release of version 3.9.15 of vm2. There are no known workarounds.

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.15

  • vm2npm

    fixed in 3.9.15

References 7

GitHub · patriksimek/vm2

gist.github.com

GitHub · gunwoo105/Node_CVE-2023-29017

GitHub · passwa11/CVE-2023-29017-reverse-shell

GitHub · timb-machine-mirrors/seongil-wi-CVE-2023-29017