CVE-2019-10761 json
Sandbox Bypass
published 2022-07-13 4 y ago modified 2026-09-10 1 mo ago also GHSA-wf5x-cr3r-xr77 , EUVD-2022-6434
- cvss
- 8.3
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.3%
- EPSS 1.3% chance of exploitation in 30 days, percentile 71%
- public exploits
- 0
- none known
Summary
This affects the package vm2 before 3.6.11. It is possible to trigger a RangeError exception from the host rather than the "sandboxed" context by reaching the stack call limit with an infinite recursion. The returned object is then used to reference the mainModule property of the host code running the script allowing it to spawn a child_process and execute arbitrary code.
Patch / fix
Exploit prediction
1.33% chance of exploitation in the next 30 days, higher than 71% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/patriksimek/vm2/issues/197 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 8.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L/E:P/RL:O/RC:C |
| CNA | 3.1 | 8.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L |
| NVD | 3.1 | 8.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L |
| GitHub | 3.1 | 8.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | vm2 | <3.6.11 |
3.6.11 |
Affected products
- n/a vm2
Classification
- Weakness
-
- CWE-674 Uncontrolled Recursion
References
-
github.com
/patriksimek/vm2/commit/4b22d704e4794af63a5a2d633385fd20948f6f90
web, patch, third-party-advisory
-
github.com
/patriksimek/vm2/issues/197
web, exploit, third-party-advisory
-
snyk.io
/vuln/SNYK-JS-VM2-473188
web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2019-10761
advisory
-
github.com
/patriksimek/vm2/issues/197#issuecomment-480643832
web
-
gist.github.com
/JLLeitschuh/609bb2efaff22ed84fe182cf574c023a
web
-
github.com
/patriksimek/vm2
package
Sources
- CVE List CVE-2019-10761
- GitHub Advisory GHSA-wf5x-cr3r-xr77
- NVD CVE-2019-10761
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.