GHSA-wf5x-cr3r-xr77

Suggest an improvement
Source
https://github.com/advisories/GHSA-wf5x-cr3r-xr77
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/07/GHSA-wf5x-cr3r-xr77/GHSA-wf5x-cr3r-xr77.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-wf5x-cr3r-xr77
Aliases
Published
2022-07-14T00:00:23Z
Modified
2025-01-14T07:14:29.863464Z
Severity
  • 8.3 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L CVSS Calculator
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.

Database specific
{
    "nvd_published_at": "2022-07-13T09:15:00Z",
    "github_reviewed_at": "2022-07-15T18:36:08Z",
    "severity": "HIGH",
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-674"
    ]
}
References

Affected packages

npm / vm2

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.6.11