Vulnerability 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.
CVSS Score
HIGH
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Vm2 Project | Vm2 | < 3.6.11 |
Related Weaknesses (CWE)
References
- https://github.com/patriksimek/vm2/commit/4b22d704e4794af63a5a2d633385fd20948f6fPatchThird Party Advisory
- https://github.com/patriksimek/vm2/issues/197ExploitThird Party Advisory
- https://snyk.io/vuln/SNYK-JS-VM2-473188Third Party Advisory
- https://github.com/patriksimek/vm2/commit/4b22d704e4794af63a5a2d633385fd20948f6fPatchThird Party Advisory
- https://github.com/patriksimek/vm2/issues/197ExploitThird Party Advisory
- https://snyk.io/vuln/SNYK-JS-VM2-473188Third Party Advisory
FAQ
What is CVE-2019-10761?
CVE-2019-10761 is a vulnerability with a CVSS score of 8.3 (HIGH). 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 recursi...
How severe is CVE-2019-10761?
CVE-2019-10761 has been rated HIGH with a CVSS base score of 8.3/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2019-10761?
Check the references section above for vendor advisories and patch information. Affected products include: Vm2 Project Vm2.