CVE-2023-37903CWE-78

Sandbox Escape in vm2

Critical · published July 21, 2023

CVSS v3.1
9.8
EPSS
4%
Percentile
91.0
In the wild
Unconfirmed
What it is

🚨 A crafty Node.js sandbox flaw is your ticket to chaos! In vm2 versions up to 3.9.19, attackers can escape the sandbox with a custom inspect function — like a magician getting out of handcuffs! 🔥 Think of the vm2 sandbox as a magic show where the magician is supposed to stay in a locked box. But with this vulnerability, the magician has found the hidden key to escape — now they can perform their tricks anywhere, potentially wreaking havoc! If an attacker can execute arbitrary code inside this sandbox, they could gain full control over your Node.js environment. This is absolutely devastating since it paves the way for Remote Code Execution, allowing attackers to steal sensitive data, manipulate the system, or even worse, take it down completely!

Put simply

Think of the vm2 sandbox as a magic show where the magician is supposed to stay in a locked box. But with this vulnerability, the magician has found the hidden key to escape — now they can perform their tricks anywhere, potentially wreaking havoc! This vulnerability in vm2 allows an attacker to leverage a custom inspect function to break out of the sandbox. Once outside, they can execute malicious code in the Node.js context, compromising the entire application.

What to do

If an attacker can execute arbitrary code inside this sandbox, they could gain full control over your Node.js environment. This is absolutely devastating since it paves the way for Remote Code Execution, allowing attackers to steal sensitive data, manipulate the system, or even worse, take it down completely! Since there are no patches or workarounds available, the best immediate action is to find an alternative software solution. Consider migrating to a more secure sandboxing solution that doesn’t suffer from this vulnerability. Stay vigilant and audit your code for any dependencies on vm2! You've got this! By acting quickly, you can ensure your systems remain safe and sound! 🛡️

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.04215 · 91.0th percentile
Weakness
CWE-78 · Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Published
2023-07-21T19:42Z
EPSS history
Timeline
  • 21 JUL 19:42Z
    Sandbox Escape in vm2
    cvelistv5