Quick answers
- Is CVE-2023-32313 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2023-32313 being exploited in the wild.
- How severe is CVE-2023-32313?
- Low severity, with a CVSS score of 3.1, published 17 May 2023.
- Which products and versions are affected?
- vm2 (npm) SEMVER:introduced=0,fixed=3.9.18.
- Is there a fix for CVE-2023-32313?
- Yes. vm2 (npm): upgrade to 3.9.18 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2023-32313 attacked?
- It is attacked over the network.
- Am I affected by CVE-2023-32313?
- Check whether you run vm2 (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
- vm2 (npm): upgrade to 3.9.18 or later
npm install vm2@3.9.18
Technical details
vm2 versions 3.9.17 and earlier fail to properly protect the Node.js inspect method from modification, allowing code running inside the sandbox to obtain a read-write reference and alter console.log options. The vulnerability is classified as an Improper Input Validation (CWE-74) issue affecting the sandbox isolation boundary. Attack requires only network access and no authentication or user interaction, as any code executing within the vm2 sandbox can trigger the manipulation. An attacker can modify inspection behavior to obfuscate logs or bypass output filtering, compromising the integrity of logging mechanisms. The vulnerability was patched in version 3.9.18; a temporary workaround involves calling vm.readonly(inspect) after creating the virtual machine instance.
Affected products
- Patrik Simek vm2 3.9.17 and earlier
Identifiers
- CVE-2023-32313
- GHSA-p5gc-c584-jj6v
Timeline
- 2023-05-15: disclosed: CVE-2023-32313 published on NVD
- 2023-05-17: disclosed: GHSA-p5gc-c584-jj6v published
- 2023-05-17: patched: vm2 version 3.9.18 released with fix