Skip to content
Fencer Vulns
critical 9.8

CVE-2023-30547 in the critical feed json

Sandbox Escape in vm2

published 2023-04-17 3 y ago modified 2026-06-17 4 mo ago also GHSA-ch3r-j5x3-6q2m , EUVD-2023-1268

cvss
9.8
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
73.0%
EPSS 73.0% chance of exploitation in 30 days, percentile 99.4%
public exploits
0
none known

Summary

vm2 is a sandbox that can run untrusted code with whitelisted Node's built-in modules. 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.

Patch / fix

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2023-30547 updated cvss 9.8

vm2: Sandbox Escape when exception sanitization

  • Red Hat Advanced Cluster Management for Kubernetes 2 rhacm2/console-rhel8
    affected: no fix available

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
Proof of concept is public
Automatable
yes
Technical impact
total
Assessed
21 mo ago

Exploit prediction

72.97% chance of exploitation in the next 30 days, higher than 99.4% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • github.com https://github.com/patriksimek/vm2/security/advisories/GHSA-ch3r-j5x3-6q2m referenced PoC, tagged "exploit" by a source, unverified
  • gist.github.com https://gist.github.com/leesh3288/381b230b04936dd4d74aaf90cc8bb244 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
CNA 3.1 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD 3.1 10.0 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
GitHub 3.1 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected packages

ecosystem package affected fixed in
npm vm2
<3.9.17
3.9.17

Affected products

  • patriksimek vm2

Classification

Weakness
  • CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.