# CVE-2026-43998: vm2: NodeVM require.root bypass via symlink traversal allows sandbox escape

- Severity: High 8.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.72%, higher than 55% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-07T04:33:37.000Z
- Modified: 2026-10-26T17:10:03.270Z
- Also known as: GHSA-cp6g-6699-wx9c
- Weaknesses: CWE-59
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

vm2 is an open source vm/sandbox for Node.js. In 3.10.5, NodeVM's require.root path restriction can be bypassed using filesystem symlinks, allowing sandboxed code to load modules from outside the allowed root directory in host context. Because path validation uses path.resolve() (which does not dereference symlinks) but module loading uses Node's native require() (which does), an attacker can load arbitrary host-realm modules and achieve remote code execution. This vulnerability is fixed in 3.11.0.

(As written by CVE List.)

## Affected

- patriksimek vm2: 3.10.5
- ansible-automation-platform/automation-portal: no versions given (not affected: from 1785854226 before *)
- rhdh/rhdh-hub-rhel9: no versions given
- vm2 (npm): from 3.10.5 before 3.11.0
- vm2_project vm2: 3.10.5

## Every score

- GitHub_M: CVSS:3.1 8.5 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H`
- redhat-SADP: CVSS:3.1 8.5 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.5 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H`

## References

- <https://github.com/patriksimek/vm2/security/advisories/GHSA-cp6g-6699-wx9c> (exploit, mitigation, vendor-advisory, web)
- <https://access.redhat.com/security/cve/CVE-2026-43998> (vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2477206> (issue-tracking)
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-43998.json>
- <https://access.redhat.com/errata/RHSA-2026:50850> (vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-43998> (advisory)
- <https://github.com/patriksimek/vm2> (package)
- <https://github.com/patriksimek/vm2/releases/tag/v3.11.0> (web)

## Sources

- CVE List: [CVE-2026-43998](https://www.cve.org/CVERecord?id=CVE-2026-43998), CVE Terms of Use, modified 2026-09-07
- GitHub Advisory Database: [GHSA-cp6g-6699-wx9c](https://github.com/advisories/GHSA-cp6g-6699-wx9c), CC-BY-4.0, modified 2026-05-14
- NVD: [CVE-2026-43998](https://nvd.nist.gov/vuln/detail/CVE-2026-43998), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-43998 · Whole record: https://cve.day/CVE-2026-43998.json · Rebuilt by cve.day 2026-11-25T22:59:21.610Z
