{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2023-32313","id":"CVE-2023-32313","title":"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 upgrad","descriptionLong":"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":"2023-05-15T19:45:13.963Z","updated":"2026-10-28T02:30:58.666858696Z","reserved":"2023-05-08T13:26:03.878Z","status":"Modified","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","rating":"medium","source":"GitHub_M"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","rating":"medium","source":"github.com"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","rating":"medium","source":"NVD"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","rating":"medium","source":"OSV"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","rating":"medium","source":"GitHub"}],"rating":"medium","products":["patriksimek vm2"],"affectedProducts":[{"vendor":"patriksimek","product":"vm2","defaultStatus":null,"versions":[{"version":"< 3.9.18","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"vm2","purl":"pkg:npm/vm2","ranges":["<3.9.18"],"fixed":["3.9.18"],"advisory":"GHSA-p5gc-c584-jj6v"}],"cwes":["CWE-74"],"aliases":["GHSA-p5gc-c584-jj6v"],"references":[{"url":"https://github.com/patriksimek/vm2/security/advisories/GHSA-p5gc-c584-jj6v","tags":["x_refsource_CONFIRM","x_transferred","Vendor Advisory","advisory","web"]},{"url":"https://github.com/patriksimek/vm2/commit/5206ba25afd86ef547a2c9d48d46ca7a9e6ec238","tags":["x_refsource_MISC","x_transferred","Patch","fix","web"]},{"url":"https://gist.github.com/arkark/c1c57eaf3e0a649af1a70c2b93b17550","tags":["x_refsource_MISC","x_transferred","Product","web"]},{"url":"https://github.com/patriksimek/vm2/releases/tag/3.9.18","tags":["x_refsource_MISC","x_transferred","Release Notes","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/32xxx/CVE-2023-32313.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-32313","tags":["advisory"]},{"url":"https://github.com/patriksimek/vm2","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial"},"epss":0.0079,"epssPercentile":0.57046,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2023-32313","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-32313","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2023-32313","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-p5gc-c584-jj6v","ok":true,"note":"GHSA-p5gc-c584-jj6v"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2023-32313","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}