CVE-2023-32313
published 2023-05-15CVE-2023-32313: 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…
PriorityP428medium5.3CVSS 3.1
AVNACLPRNUINSUCNILAN
EPSS
0.79%
51.6th percentile
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.
Affected
3 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| patriksimek | vm2 | < 3.9.18 | 3.9.18 |
| vm2_project | vm2 | < 3.9.18 | 3.9.18 |
| vm2_project | vm2 | >= 0 < 3.9.18 | 3.9.18 |
CVSS provenance
nvdv3.15.3MEDIUMCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
vendor_redhat5.3MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
OSV
vm2 vulnerable to Inspect Manipulation
osv·2023-05-17
CVE-2023-32313 [MEDIUM] vm2 vulnerable to Inspect Manipulation
vm2 vulnerable to Inspect Manipulation
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.
GHSA
vm2 vulnerable to Inspect Manipulation
ghsa·2023-05-17
CVE-2023-32313 [MEDIUM] CWE-74 vm2 vulnerable to Inspect Manipulation
vm2 vulnerable to Inspect Manipulation
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.
Red Hat
vm2: Inspect Manipulation
vendor_redhat·2023-05-15·CVSS 5.3
CVE-2023-32313 [MEDIUM] CWE-915 vm2: Inspect Manipulation
vm2: 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.
A flaw was found in the vm2. After making a vm, the inspect method is read-write for console.log, which allows an attacker to edit options for console.log. This issue impacts the integrity by changing the log subsystem.
Mitigation: After creating a vm, mak
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
https://gist.github.com/arkark/c1c57eaf3e0a649af1a70c2b93b17550https://github.com/patriksimek/vm2/commit/5206ba25afd86ef547a2c9d48d46ca7a9e6ec238https://github.com/patriksimek/vm2/releases/tag/3.9.18https://github.com/patriksimek/vm2/security/advisories/GHSA-p5gc-c584-jj6vhttps://gist.github.com/arkark/c1c57eaf3e0a649af1a70c2b93b17550https://github.com/patriksimek/vm2/commit/5206ba25afd86ef547a2c9d48d46ca7a9e6ec238https://github.com/patriksimek/vm2/releases/tag/3.9.18https://github.com/patriksimek/vm2/security/advisories/GHSA-p5gc-c584-jj6v
2023-05-15
Published