Node.js Module vm2 < 3.9.17 Sandbox Breakout

critical Nessus Plugin ID 181413

Synopsis

A module in the Node.js JavaScript run-time environment is affected by a sandbox breakout vulnerability.

Description

There exists a vulnerability in exception sanitization of vm2 for versions up to 3.9.16, allowing attackers to raise an unsanitized host exception inside `handleException()` which can be used to escape the sandbox and run arbitrary code in host context. This vulnerability was patched in the release of version `3.9.17` of `vm2`. There are no known workarounds for this vulnerability. Users are advised to upgrade.

Note that Nessus has not tested for these issues but has instead relied only on the application's self-reported version number.

Solution

Upgrade to vm2 version 3.9.17 or later.

See Also

http://www.nessus.org/u?686ece7c

Plugin Details

Severity: Critical

ID: 181413

File Name: nodejs_module_vm2_3_9_17.nasl

Version: 1.3

Type: local

Agent: windows

Family: Misc.

Published: 9/14/2023

Updated: 10/7/2024

Configuration: Enable thorough checks

Supported Sensors: Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: High

Score: 7.3

CVSS v2

Risk Factor: Critical

Base Score: 10

Temporal Score: 7.8

Vector: CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C

CVSS Score Source: CVE-2023-30547

CVSS v3

Risk Factor: Critical

Base Score: 10

Temporal Score: 9

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

Vulnerability Information

CPE: cpe:/a:vm2_project:vm2

Required KB Items: Host/nodejs/modules/enumerated

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 4/17/2023

Vulnerability Publication Date: 4/17/2023

Reference Information

CVE: CVE-2023-30547