CVE-2023-32313

Inspect method manipulation in vm2

Description

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.

Category

5.3
CVSS
Severity: Medium
CVSS 3.1 •
EPSS 0.65%
Vendor Advisory github.com
Affected: patriksimek vm2
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2023-32313?
CVE-2023-32313 has been scored as a medium severity vulnerability.
How to fix CVE-2023-32313?
To fix CVE-2023-32313, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2023-32313 being actively exploited in the wild?
As for now, there are no information to confirm that CVE-2023-32313 is being actively exploited. According to its EPSS score, there is a ~1% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2023-32313?
CVE-2023-32313 affects patriksimek vm2.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.