CVE-2026-5752

9.3

Cohere · cohere-terrarium

Cohere Terrarium is vulnerable to a sandbox escape via JavaScript prototype chain traversal, allowing for arbitrary code execution with root privileges on the host process.

Executive summary

A critical sandbox escape vulnerability in Cohere Terrarium permits unauthenticated attackers to achieve arbitrary code execution with root-level privileges.

Vulnerability

The software suffers from improper control of code generation and access control (CWE-94, CWE-284). By leveraging JavaScript prototype chain traversal, an attacker can bypass sandbox restrictions to execute commands with root privileges on the underlying host.

Business impact

With a CVSS score of 9.3, this vulnerability represents a total compromise of the host environment. An attacker achieving root access can bypass all internal security controls, access sensitive data, or pivot into the broader network, resulting in severe operational and reputational damage.

Remediation

Immediate Action: Review the official project repository for security updates and apply them immediately; if no update is available, restrict access to the Terrarium service to trusted internal networks only.

Proactive Monitoring: Monitor host process logs for suspicious spawned processes or unauthorized modifications to system files originating from the Terrarium service.

Compensating Controls: Implement strict containerization or hardware-level isolation to limit the blast radius if the sandbox is breached.

Exploitation status

Public Exploit Available: Unknown.

Analyst recommendation

This vulnerability represents a significant risk to host integrity. Administrators should prioritize upgrading the affected software and ensure that the service is not exposed to the public internet until a security patch is verified and applied.