CVE-2023-32313
MEDIUM 5.3CVSS 3.1vm2 vulnerable to Inspect Manipulation
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.
- Published
- 15 May 2023
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-74
- Also known as
- GHSA-p5gc-c584-jj6v
- Sources
- NVDJSONOSV GHSA-p5gc-c584-jj6vJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | vm2_project | vm2cpe:2.3:a:vm2_project:vm2:*:*:*:*:*:node.js:*:* |
< 3.9.18 | 3.9.18 |
| OSV | npm | vm2 | < 3.9.18 | 3.9.18 |
References
- https://gist.github.com/arkark/c1c57eaf3e0a649af1a70c2b93b17550 · Product, WEB
- https://github.com/patriksimek/vm2/commit/5206ba25afd86ef547a2c9d48d46ca7a9e6ec238 · Patch, WEB
- https://github.com/patriksimek/vm2/releases/tag/3.9.18 · Release Notes, WEB
- https://github.com/patriksimek/vm2/security/advisories/GHSA-p5gc-c584-jj6v · Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2023-32313 · ADVISORY
- https://github.com/patriksimek/vm2 · PACKAGE
History
- 25 Nov 2026 20:36 UTC · NVD: first stored (published 15 May 2023)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 17 May 2023)