Cohere AI Terrarium Sandbox Flaw Enables Root Code Execution, Container Escape
- Published
- Record updated
Summary
A critical sandbox escape flaw, tracked as CVE-2026-5752 and rated 9.3 on CVSS, affects Terrarium, a Python sandbox built by Cohere AI on Pyodide and deployed as a Docker container for running untrusted code. The root cause is JavaScript prototype chain traversal in the Pyodide WebAssembly environment, which lets sandboxed code execute with elevated privileges on the host Node.js process and run arbitrary commands as root. The attack requires local access but no user interaction or special privileges, and the project is no longer actively maintained, so a patch is unlikely.
Mitigation
As mitigations, CERT/CC advises disabling features that allow users to submit code to the sandbox, if possible. Other steps include segmenting the network to limit the attack surface and lateral movement, deploying a Web Application Firewall to detect and block exploitation attempts, monitoring container activity, limiting access to authorized personnel, using a secure container orchestration tool, and keeping dependencies up-to-date and patched.
Related items
- InfoCybersecurity M&A Roundup: 37 Deals Announced in October 2026Same vendor · SecurityWeek
- LowCohere’s Qwen Story: Looks More Like Model JaggednessSame vendor · Check Point Research
- Medium“Next Exploit Opportunities”: How a Threat Actor Used AI to Help Plan and Execute Multiple Types of Cybercrime ActivitiesSame vendor · Palo Alto Unit 42
- MediumLiteLLM PyPI Package and Docker Images Compromised to Steal Cloud and AI CredentialsSame vendor · Socket Blog
- MediumCVE-2026-108597: Cohere Python SDK path traversal in model archive extractionSame vendor · NVD/CVE Database