{"id":"CVE-2023-32313","aliases":["GHSA-p5gc-c584-jj6v"],"summary":"Inspect method manipulation in vm2","published_at":"2023-05-15T00:00:00Z","modified_at":"2026-09-10T03:50:01.835338Z","products":[],"rating":{"severity":"medium","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","attack_path":"internet_unauthenticated","user_interaction":false,"malicious":false,"red_hat":"Moderate","vendor_ratings":[{"source":"Red Hat","rating":"Moderate"}]},"fix_available":false,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.007899999618530273,"percentile":0.5704600214958191,"date":"2026-11-19T00:00:00Z"},"priority":7.3,"details":"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_stack":[],"affected_other":[{"ecosystem":"CVE","package":"patriksimek/vm2","versions":["< 3.9.18"],"provider":"cvelistv5","source":"CVE-2023-32313","relation":"self"},{"ecosystem":"NVD","package":"vm2_project:vm2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.9.18"}]}],"fixed":["3.9.18"],"provider":"nvd","source":"CVE-2023-32313","relation":"self"},{"ecosystem":"npm","package":"vm2","purl":"pkg:npm/vm2","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"3.9.18"}]}],"fixed":["3.9.18"],"provider":"osv","source":"GHSA-p5gc-c584-jj6v","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"Red Hat Advanced Cluster Management for Kubernetes 2","cpe":"cpe:/a:redhat:acm:2","status":"affected","packages":["rhacm2/console-rhel8"],"package_count":1,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2023-32313"}],"records":[{"provider":"csaf-bsi","source_id":"WID-SEC-W-2023-1217","relation":"upstream","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2023-1217","license":"TLP:CLEAR, mirroring permitted","published_at":"2023-05-15T22:00:00Z","modified_at":"2023-06-04T22:00:00Z","summary":"vm2: Mehrere Schwachstellen","details":"Ein entfernter, anonymer Angreifer kann mehrere Schwachstellen in vm2 ausnutzen, um beliebigen Programmcode auszuführen und um Dateien zu manipulieren.\n\nvm2 ist eine Sandbox, in der nicht vertrauenswürdiger Code der in Node integrierten Module ausgeführt werden kann.","severity":[{"type":"BSI","score":"hoch","source":"WID-SEC-W-2023-1217"}],"affected":[],"product_status":[],"references":[{"type":"WEB","url":"https://wid.cert-bund.de/.well-known/csaf/white/2023/wid-sec-w-2023-1217.json"},{"type":"WEB","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2023-1217"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2023:3356"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2023:3353"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2023:3326"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2023:3325"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2023:3297"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2023:3296"},{"type":"WEB","url":"https://github.com/patriksimek/vm2/security/advisories/GHSA-whpj-8f3w-67p5"},{"type":"WEB","url":"https://github.com/patriksimek/vm2/security/advisories/GHSA-p5gc-c584-jj6v"}]},{"provider":"cvelistv5","source_id":"CVE-2023-32313","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2023-32313","license":"CC-BY-4.0","published_at":"2023-05-15T19:45:13.963Z","modified_at":"2025-01-22T21:42:56.955Z","summary":"Inspect method manipulation in vm2","details":"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.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","source":"CVE-2023-32313"}],"affected":[{"ecosystem":"CVE","package":"patriksimek/vm2","versions":["< 3.9.18"],"provider":"cvelistv5","source":"CVE-2023-32313","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/patriksimek/vm2/security/advisories/GHSA-p5gc-c584-jj6v"},{"type":"WEB","url":"https://github.com/patriksimek/vm2/commit/5206ba25afd86ef547a2c9d48d46ca7a9e6ec238"},{"type":"WEB","url":"https://gist.github.com/arkark/c1c57eaf3e0a649af1a70c2b93b17550"},{"type":"WEB","url":"https://github.com/patriksimek/vm2/releases/tag/3.9.18"}]},{"provider":"nvd","source_id":"CVE-2023-32313","relation":"self","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-32313","severity":[],"affected":[{"ecosystem":"NVD","package":"vm2_project:vm2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.9.18"}]}],"fixed":["3.9.18"],"provider":"nvd","source":"CVE-2023-32313","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"GHSA-p5gc-c584-jj6v","relation":"self","url":"https://osv.dev/vulnerability/GHSA-p5gc-c584-jj6v","license":"CC-BY-4.0","published_at":"2023-05-17T03:49:37Z","modified_at":"2026-09-10T03:50:01.835338Z","summary":"vm2 vulnerable to Inspect Manipulation","details":"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`.\n\n### Impact\nA threat actor can edit options for `console.log`.\n\n### Patches\nThis vulnerability was patched in the release of version `3.9.18` of `vm2`.\n\n### Workarounds\nAfter creating a vm make the `inspect` method readonly with `vm.readonly(inspect)`.\n\n### References\nPoC - https://gist.github.com/arkark/c1c57eaf3e0a649af1a70c2b93b17550\n\n### For more information\n\nIf you have any questions or comments about this advisory:\n\n- Open an issue in [VM2](https://github.com/patriksimek/vm2)\n\nThanks to @arkark (Takeshi Kaneko) of GMO Cybersecurity by Ierae, Inc. for disclosing this vulnerability.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","source":"GHSA-p5gc-c584-jj6v"}],"affected":[{"ecosystem":"npm","package":"vm2","purl":"pkg:npm/vm2","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"3.9.18"}]}],"fixed":["3.9.18"],"provider":"osv","source":"GHSA-p5gc-c584-jj6v","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/patriksimek/vm2/security/advisories/GHSA-p5gc-c584-jj6v"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-32313"},{"type":"WEB","url":"https://github.com/patriksimek/vm2/commit/5206ba25afd86ef547a2c9d48d46ca7a9e6ec238"},{"type":"WEB","url":"https://gist.github.com/arkark/c1c57eaf3e0a649af1a70c2b93b17550"},{"type":"PACKAGE","url":"https://github.com/patriksimek/vm2"},{"type":"WEB","url":"https://github.com/patriksimek/vm2/releases/tag/3.9.18"}]},{"provider":"redhat-vex","source_id":"CVE-2023-32313","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2023-32313","license":"CC-BY-4.0","published_at":"2023-05-15T00:00:00Z","modified_at":"2026-02-02T07:28:11.015271Z","summary":"vm2: Inspect Manipulation","details":"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.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","source":"CVE-2023-32313"},{"type":"Red Hat","score":"Moderate","source":"CVE-2023-32313"}],"affected":[],"product_status":[{"vendor":"Red Hat","product":"Red Hat Advanced Cluster Management for Kubernetes 2","cpe":"cpe:/a:redhat:acm:2","status":"affected","packages":["rhacm2/console-rhel8"],"package_count":1,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2023-32313"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2023/cve-2023-32313.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2023-32313"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2208377"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2023-32313"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-32313"},{"type":"WEB","url":"https://github.com/patriksimek/vm2/security/advisories/GHSA-p5gc-c584-jj6v"}]}],"references":[{"type":"WEB","url":"https://github.com/patriksimek/vm2/security/advisories/GHSA-p5gc-c584-jj6v"},{"type":"WEB","url":"https://github.com/patriksimek/vm2/commit/5206ba25afd86ef547a2c9d48d46ca7a9e6ec238"},{"type":"WEB","url":"https://gist.github.com/arkark/c1c57eaf3e0a649af1a70c2b93b17550"},{"type":"WEB","url":"https://github.com/patriksimek/vm2/releases/tag/3.9.18"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-32313"},{"type":"PACKAGE","url":"https://github.com/patriksimek/vm2"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2023/cve-2023-32313.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2023-32313"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2208377"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2023-32313"}],"sources":[{"provider":"csaf-bsi","source_id":"WID-SEC-W-2023-1217","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2023-1217","license":"TLP:CLEAR, mirroring permitted","modified_at":"2023-06-04T22:00:00Z","relation":"upstream"},{"provider":"cvelistv5","source_id":"CVE-2023-32313","url":"https://www.cve.org/CVERecord?id=CVE-2023-32313","license":"CC-BY-4.0","modified_at":"2025-01-22T21:42:56.955Z","relation":"self"},{"provider":"nvd","source_id":"CVE-2023-32313","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-32313","relation":"self"},{"provider":"osv","source_id":"GHSA-p5gc-c584-jj6v","url":"https://osv.dev/vulnerability/GHSA-p5gc-c584-jj6v","license":"CC-BY-4.0","modified_at":"2026-09-10T03:50:01.835338Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2023-32313","url":"https://access.redhat.com/security/cve/CVE-2023-32313","license":"CC-BY-4.0","modified_at":"2026-02-02T07:28:11.015271Z","relation":"self"}]}
