Miggo Logo

CVE-2019-10761:
vm2 before 3.6.11 vulnerable to sandbox escape

8.3

CVSS Score
3.1

Basic Information

EPSS Score
0.60763%
Published
7/14/2022
Updated
1/27/2023
KEV Status
No
Technology
TechnologyJavaScript

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L
Package NameEcosystemVulnerable VersionsFirst Patched Version
vm2npm< 3.6.113.6.11

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The commit 4b22d70 shows both functions were modified to move context-checking logic INSIDE try blocks. Originally, these checks were outside try-catch, allowing exceptions to bypass sandbox isolation. The vulnerability exploit demonstrates that uncaught host exceptions (like stack overflows) could expose host references via error objects. These functions were the entry points for value marshaling between contexts, making them critical for sandbox integrity.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

T*is *****ts t** p**k*** vm* ***or* *.*.**. It is possi*l* to tri***r * R*n***rror *x**ption *rom t** *ost r*t**r t**n t** "s*n**ox**" *ont*xt *y r****in* t** st**k **ll limit wit* *n in*init* r**ursion. T** r*turn** o*j**t is t**n us** to r***r*n**

Reasoning

T** *ommit ******* s*ows *ot* *un*tions w*r* mo*i*i** to mov* *ont*xt-****kin* lo*i* INSI** try *lo*ks. Ori*in*lly, t**s* ****ks w*r* outsi** try-**t**, *llowin* *x**ptions to *yp*ss s*n**ox isol*tion. T** vuln*r**ility *xploit **monstr*t*s t**t un**