Horizon Alert
Summary of the vulnerability and why it matters
A critical vulnerability exists in Cognition's agent sandbox that could allow unauthenticated attackers to execute arbitrary code on the server. This is due to the system defaulting to local execution and lacking authentication on its API, enabling attackers to create sessions and send messages without credentials, thereby running malicious shell commands.
- Unauthenticated code execution via agent sandbox.
- Leadership should remember this if using Cognition AI.
- Confirm relevance and exposure for Cognition AI systems.
Attack Path
How an attacker could exploit the issue
An attacker can gain unauthorized access to a server running Cognition by exploiting a vulnerability in its API. This API, which lacks authentication by default, allows an attacker to create a session and send messages. These actions trigger the Deep Agents ReAct loop to execute arbitrary commands on the server, leading to remote code execution.
- Unauthenticated API access required.
- Attacker sends crafted session and message requests.
- Leads to unauthenticated remote code execution.
Live Threat
Current exploitation, exposure, and threat context
This vulnerability could allow an unauthenticated attacker to execute arbitrary commands on the server. When the system defaults to using a local shell backend for its agent sandbox, an attacker can create sessions and send messages through the unauthenticated REST API to trigger command execution.
- Server process and its data.
- Unauthenticated API access.
- Arbitrary command execution.
Operational Fix
Recommended remediation, mitigation, and detection steps
This vulnerability in Cognition's agent sandbox backend requires immediate attention from the platform or application owner responsible for its deployment. The first practical step is to determine the scope of exposure: identify all instances of Cognition, confirm if the REST/SSE API is accessible externally, and ascertain business criticality before planning remediation.
- Platform or application owner should triage.
- Verify external API reachability and criticality.
- Plan remediation based on exposure and risk.