Host code execution via unwrapped stack objects
Published Apr 6, 2023 · Updated Feb 10, 2025
Sandbox escape in Patrik Simek vm2 before 3.9.15 allows attackers to execute arbitrary code on the host through unhandled async errors. The prepareStackTrace wrapper passes a host-created stack-trace array and CallSite objects into attacker-controlled sandbox code without first converting every object to a sandbox-safe wrapper. Exploitation requires control of JavaScript evaluated by a VM that permits asynchronous execution, after which the sandbox boundary no longer restricts host access.
Summary
What happened
Sandbox escape in Patrik Simek vm2 before 3.9.15 allows attackers to execute arbitrary code on the host through unhandled async errors. The prepareStackTrace wrapper passes a host-created stack-trace array and CallSite objects into attacker-controlled sandbox code without first converting every object to a sandbox-safe wrapper. Exploitation requires control of JavaScript evaluated by a VM that permits asynchronous execution, after which the sandbox boundary no longer restricts host access.
The record
- CVE
- CVE-2023-29017
- Published
- Apr 6, 2023
- Updated
- Feb 10, 2025
- Vendor
- Patrik Simek
- Product
- vm2
- Classifications
- CWE-913, T1059.007
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Apr 6, 2023CVE publishedPublication date reported by the CVE source.
- Feb 10, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=< 3.9.15
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- CVE-2023-29017 vm2 sandbox-escape proof of conceptproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo