cbcvebase.
CVE-2023-29017
published 2023-04-06

CVE-2023-29017: vm2 is a sandbox that can run untrusted code with whitelisted Node's built-in modules. Prior to version 3.9.15, vm2 was not properly handling host objects…

PriorityP277critical9.8CVSS 3.1
AVNACLPRNUINSUCHIHAH
EPSS
63.19%
99.1th percentile
vm2 is a sandbox that can run untrusted code with whitelisted Node's built-in modules. Prior to version 3.9.15, vm2 was not properly handling host objects passed to `Error.prepareStackTrace` in case of unhandled async errors. A threat actor could bypass the sandbox protections to gain remote code execution rights on the host running the sandbox. This vulnerability was patched in the release of version 3.9.15 of vm2. There are no known workarounds.

Affected

4 ranges
VendorProductVersion rangeFixed in
jsreportjsreport>= 0 < 3.11.33.11.3
patriksimekvm2< 3.9.153.9.15
vm2_projectvm2< 3.9.153.9.15
vm2_projectvm2>= 0 < 3.9.153.9.15

Detection & IOCsextracted from sources · hover to see the quote

  • CVE-2023-29017 exploits vm2's improper handling of host objects passed to `Error.prepareStackTrace` in case of unhandled async errors, enabling sandbox escape and RCE on the host.
  • The vulnerability affects vm2 versions prior to 3.9.15; any environment running vm2 < 3.9.15 should be treated as vulnerable and monitored for exploitation attempts.
  • The attack vector is remote and unauthenticated — monitor Node.js processes running vm2 for unexpected child process spawning or outbound connections that may indicate post-exploitation activity.
  • Red Hat Advanced Cluster Management for Kubernetes 2 (rhacm2/console-rhel8) is a confirmed affected package; audit deployments of this product for vulnerable vm2 versions.
  • ·No workarounds exist for CVE-2023-29017; the only remediation is upgrading vm2 to version 3.9.15 or later.
  • ·The vulnerability is specific to the async error handling path — only code paths that trigger unhandled async errors in the vm2 sandbox are exploitable via this particular bug.

CVSS provenance

nvdv3.19.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
ghsa9.8CRITICAL
osv9.8CRITICAL
vendor_redhat10.0CRITICAL
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.