Browse / AI Framework and Platform Flaws / CVE-2021-23555
Sandbox bypass in vm2
- Class
- AI Framework and Platform Flaws (filed by a model that read the source)
- Technique
- Sandbox escape
- Affected
- vm2 (npm)
- Gets past
- Sandbox or allowlist
- CVSS
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS
- 2.9% chance of exploitation in 30 days
How it works, in short
Host error objects leak through stack trace generation, letting sandboxed code reach host internals and run arbitrary code. (Our summary, written by a model. The source text is below.)
Details
The package vm2 before 3.9.6 are vulnerable to Sandbox Bypass via direct access to host error objects generated by node internals during generation of a stacktraces, which can lead to execution of arbitrary code on the host machine.
References
- https://nvd.nist.gov/vuln/detail/CVE-2021-23555
- https://github.com/patriksimek/vm2/commit/532120d5cdec7da8225fc6242e154ebabc63fe4d
- https://github.com/patriksimek/vm2
- https://snyk.io/vuln/SNYK-JS-VM2-2309905
Source: GitHub Advisory Database, used under CC BY 4.0.