A plain-language summary of this CVE is being written; the description below is the NVD's own text.
Description
vm2 through 3.12.0 exposes Node.js's crypto.setFips() function to untrusted guest code when an embedder explicitly allowlists the crypto builtin for a NodeVM (require.builtin: ['crypto']). The builtin sanitizer (sanitizeCryptoModule in lib/builtin.js) replaces crypto.setEngine but leaves crypto.setFips callable, and the readonly wrapper used to expose the host module does not localize side effects of forwarded host functions. Guest code can therefore call crypto.setFips() to change the FIPS mode of the entire host process; the modified mode is subsequently observed by trusted host code (crypto.getFips() changed from 0 to 1 in the reported test), crossing the NodeVM isolation boundary. Fixed in vm2 3.12.1.
Affected products
The NVD has not attached product data to this record yet; the description names what is affected.
Weakness type
References
- github.com /patriksimek/vm2/security/advisories/GHSA-x3v6-43hc-82mc
- www.vulncheck.com /advisories/vm2-3.11.8-sandbox-escape-via-crypto-setfips
Ingati scans your site every week and tells you when a CVE like this one affects something it found there.
Start scanning