PT-2023-2209 · Npm · Vm2

Seongil Wi

·

Published

2023-04-06

·

Updated

2026-05-06

·

CVE-2023-29017

CVSS v3.1

10

Critical

VectorAV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions vm2 versions prior to 3.9.15
Description The issue is related to the incorrect handling of objects in memory by the Error.prepareStackTrace object in the vm2 library of the NPM package manager. This can allow a remote attacker to bypass sandbox protections and gain remote code execution rights on the host running the sandbox. The Error.prepareStackTrace function is vulnerable when handling host objects passed in case of unhandled async errors.
Recommendations For versions prior to 3.9.15, update to version 3.9.15 or later to patch the vulnerability. As a temporary workaround, consider restricting access to the Error.prepareStackTrace function until a patch is available.

Exploit

Fix

RCE

Improper Handling of Exceptional Conditions

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

BDU:2023-01956
CVE-2023-29017
GHSA-7JXR-CG7F-GPGV

Affected Products

Vm2