Advisory

GHSA-wf5x-cr3r-xr77

Also known as: CVE-2019-10761, SNYK-JS-VM2-473188

Summary

vm2 before 3.6.11 vulnerable to sandbox escape

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-07-14 00:00 UTC
Modified
2026-09-10 03:49 UTC

Affected packages and fixes

vm2

npm · All systems

Affected

  • introduced 0, fixed 3.6.11 (semver)

Fixed versions

3.6.11

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences