Description
Enclave is a secure JavaScript sandbox designed for safe AI agent code execution. Prior to 2.10.1, the existing layers of security in enclave-vm are insufficient: The AST sanitization can be bypassed with dynamic property accesses, the hardening of the error objects does not cover the peculiar behavior or the vm module and the function constructor access prevention can be side-stepped by leveraging host object references. This vulnerability is fixed in 2.10.1.
Problem types
CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop')
Product status
References
github.com/...nclave/security/advisories/GHSA-x39w-8vm5-5m3p
github.com/...ommit/2fcf5da81e7e2578ede6f94cae4f379165426dca
www.staicu.org/publications/usenixSec2023-SandDriller.pdf