patchminder
Proof of concept · CISA assessment CVE-2023-32313

Injectionin patriksimek vm2.

Published 15 May 2023 · Updated 22 Jan 2025 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Proof of concept public (CISAThe US cyber defence agency. Its list names every hole it has seen used in real attacks. assessment).

Severity
Medium 5.3
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.1 · no login needed
Attack likelihood
Low
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 0.8% chance in 30 days · 4 Dec 2026
Fix
Available
Upgrade to 3.9.18 or later
In plain words

vm2 is a sandbox that can run untrusted code with Node's built-in modules. In versions 3.9.17 and lower of vm2 it was possible to get a read-write reference to the node `inspect` method and edit options for `console.log`. As a result a threat actor can edit options for the `console.log` command. This vulnerability was patched in the release of version `3.9.18` of `vm2`. Users are advised to upgrade. Users unable to upgrade may make the `inspect` method readonly with `vm.readonly(inspect)` after creating a vm.

What to do now
  • Upgrade vm2 to 3.9.18 or later.
  • Upgrade vm2 (npm) to 3.9.18 or later.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
vm2
before 3.9.18
3.9.18
CVE record
vm2 (npm)
before 3.9.18
3.9.18
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 8 May 2023
    CVE ID reserved by GitHub_M.
  2. 15 May 2023
    Published in the CVE List.
  3. 22 Jan 2025
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: Proof of concept (CISA assessment). CISA assessment (SSVC): exploitation poc.

Metasploit module
None known
Nuclei scan template
None known
Exploit-DB
None known
GitHub proof of concepts
None known

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

Related

Other vm2 vulnerabilities

Same weakness: Injection

All CWE-74 vulnerabilities

References
Cite this page

Patchminder. CVE-2023-32313: Injection in patriksimek vm2. https://patchminder.com/cve/cve-2023-32313/ (accessed 5 December 2026).