MISFIRE

Browse / AI Framework and Platform Flaws / CVE-2021-23555

Sandbox bypass in vm2

CVE-2021-23555 ยท 2022-02-12 critical

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

Source: GitHub Advisory Database, used under CC BY 4.0.