Skip to content

vm2 vulnerable to Arbitrary Code Execution

Critical severity GitHub Reviewed Published Dec 21, 2022 to the GitHub Advisory Database • Updated Jan 30, 2023

Package

npm vm2 (npm)

Affected versions

< 3.9.10

Patched versions

3.9.10

Description

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.

References

Published by the National Vulnerability Database Dec 21, 2022
Published to the GitHub Advisory Database Dec 21, 2022
Reviewed Dec 22, 2022
Last updated Jan 30, 2023

Severity

Critical
9.8
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Weaknesses

CVE ID

CVE-2022-25893

GHSA ID

GHSA-4w2j-2rg4-5mjw

Source code

Checking history
See something to contribute? Suggest improvements for this vulnerability.