# CVE-2019-10761: Sandbox Bypass

- Severity: High 8.3 (CVSS:3.1, scored by snyk) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.33%, higher than 71% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-07-13T08:20:14.533Z
- Modified: 2026-09-10T03:49:44.870Z
- Also known as: GHSA-wf5x-cr3r-xr77, SNYK-JS-VM2-473188
- Weaknesses: CWE-674
- Assigned by: snyk

## Description

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.

(As written by CVE List.)

## Affected

- vm2: from unspecified before 3.6.11
- vm2 (npm): before 3.6.11
- vm2_project vm2: before 3.6.11

## Every score

- snyk: CVSS:3.1 8.3 High `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`
- GitHub: CVSS:3.1 8.3 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L`
- NVD: CVSS:3.1 8.3 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L`

## References

- <https://github.com/patriksimek/vm2/issues/197> (exploit, third-party-advisory, web)
- <https://snyk.io/vuln/SNYK-JS-VM2-473188> (third-party-advisory, web)
- <https://github.com/patriksimek/vm2/commit/4b22d704e4794af63a5a2d633385fd20948f6f90> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2019-10761> (advisory)
- <https://github.com/patriksimek/vm2/issues/197#issuecomment-480643832> (web)
- <https://gist.github.com/JLLeitschuh/609bb2efaff22ed84fe182cf574c023a> (web)
- <https://github.com/patriksimek/vm2> (package)

## Sources

- CVE List: [CVE-2019-10761](https://www.cve.org/CVERecord?id=CVE-2019-10761), CVE Terms of Use, modified 2024-09-16
- GitHub Advisory Database: [GHSA-wf5x-cr3r-xr77](https://github.com/advisories/GHSA-wf5x-cr3r-xr77), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2019-10761](https://nvd.nist.gov/vuln/detail/CVE-2019-10761), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2019-10761 · Whole record: https://cve.day/CVE-2019-10761.json · Rebuilt by cve.day 2026-11-25T22:57:50.198Z
