Patriksimek vm2
vm2: NodeVM network builtin exclusions bypass via internal _http_client and _http_server
vm2 is an open source vm/sandbox for Node.js. Prior to version 3.11.4, NodeVM supports excluding public network builtins from the wildcard builtin option. With this configuration direct access to http, https, http2, net, dgram, tls, dns, and dns/promises is blocked. However, Node.js also exposes underscored internal HTTP builtins such as _http_client and _http_server. These are not blocked when the public modules are excluded. Sandboxed code can use these internal builtins to make outbound HTTP requests and open listening HTTP sockets even though the public network modules are denied. This issue has been patched in version 3.11.4.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 3.11.4
Fixed in 3.11.4
Mitigation
Upgrade vm2 to 3.11.4 or later.
References
- Vendor advisory github.com/patriksimek/vm2/security/advisories…
- Patch github.com/patriksimek/vm2/commit/436053e30eec…
- Release notes github.com/patriksimek/vm2/releases/tag/v3.11.…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.