CVE-2023-32313
mediumpriority · track · 21EPSS 0.008 · 56 %ileDEEUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (5)
Products and version ranges known to be affected.
- Red Hat Enterprise Linux Advanced Cluster Management for Kubernetes 2all versionscert_bundDEcpe:/o:redhat:enterprise_linux:advanced_cluster_management_for_kubernetes_2
advisories (2)
Vendor and ecosystem advisories describing this.
- WID-SEC-W-2023-1217vm2: Mehrere SchwachstellenDeutsch2023-05-15csaf · cert_bundDE
Ein entfernter, anonymer Angreifer kann mehrere Schwachstellen in vm2 ausnutzen, um beliebigen Programmcode auszuführen und um Dateien zu manipulieren.
- GHSA-p5gc-c584-jj6vvm2 vulnerable to Inspect Manipulation2023-05-17ghsa · osvUS
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`. ### Impact A threat actor can edit options for `console.log`. ### Patches This vulnerability was patched in the release of version `3.9.18` of `vm2`. ### Workarounds After creating a vm make the `inspect` method readonly with `vm.readonly(inspect)`. ### References PoC - https://gist.github.com/arkark/c1c57eaf3e0a649af1a70c2b93b17550 ### For more information If you have any questions or comments about this advisory: - Open an issue in [VM2](https://github.com/patriksimek/vm2) Thanks to @arkark (Takeshi Kaneko) of GMO Cybersecurity by Ierae, Inc. for disclosing this vulnerability.
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (15)
External citations — patches, advisories, analysis.
- https://cxsecurity.com/cveshow/CVE-2023-32313/cnnvd
- https://gist.github.com/arkark/c1c57eaf3e0a649af1a70c2b93b17550cnnvd
- https://github.com/patriksimek/vm2/commit/5206ba25afd86ef547a2c9d48d46ca7a9e6ec238cnnvd
- https://github.com/patriksimek/vm2/releases/tag/3.9.18cnnvd
- https://github.com/patriksimek/vm2/security/advisories/GHSA-p5gc-c584-jj6vcnnvd
- https://www.auscert.org.au/bulletins/ESB-2023.3053cnnvd
- https://www.auscert.org.au/bulletins/ESB-2023.3060cnnvd
- https://gist.github.com/arkark/c1c57eaf3e0a649af1a70c2b93b17550enisa_euvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan