GHSA-4w2j-2rg4-5mjw

Suggest an improvement
Source
https://github.com/advisories/GHSA-4w2j-2rg4-5mjw
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/12/GHSA-4w2j-2rg4-5mjw/GHSA-4w2j-2rg4-5mjw.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-4w2j-2rg4-5mjw
Aliases
Published
2022-12-21T06:30:29Z
Modified
2023-11-08T04:08:51.082168Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
vm2 vulnerable to Arbitrary Code Execution
Details

The package vm2 before 3.9.10 is vulnerable to Arbitrary Code Execution due to the usage of prototype lookup for the WeakMap.prototype.set method. Exploiting this vulnerability leads to access to a host object and a sandbox compromise.

Database specific
{
    "nvd_published_at": "2022-12-21T05:15:00Z",
    "github_reviewed_at": "2022-12-22T03:33:42Z",
    "severity": "CRITICAL",
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-94"
    ]
}
References

Affected packages

npm / vm2

Package

Affected ranges

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