Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-109437 Overview
Cognition versions prior to 0.13.0 contain an unauthenticated remote code execution vulnerability in the agent framework's REST and Server-Sent Events (SSE) API. The product ships with its agent sandbox backend defaulted to local execution and exposes no authentication on session endpoints. Unauthenticated attackers can create a session through POST /sessions, then post a message through POST /sessions/{id}/messages. The Deep Agents ReAct loop interprets the attacker-supplied content and executes shell commands through the local shell backend. Code execution runs with the privileges of the server process, giving attackers full control of the host.
Critical Impact
Any network-reachable Cognition instance before 0.13.0 allows unauthenticated attackers to execute arbitrary shell commands as the server process without credentials or user interaction.
Affected Products
- Cognition agent framework versions prior to 0.13.0
- Deployments using the default local shell sandbox backend
- Instances exposing the REST or SSE API on a reachable network interface
Discovery Timeline
- 2026-10-19 - CVE-2026-109437 published to the National Vulnerability Database (NVD)
- 2026-10-20 - Last updated in NVD database
Technical Details for CVE-2026-109437
Vulnerability Analysis
The flaw is a Missing Authentication for Critical Function weakness [CWE-306] combined with an insecure default execution backend. Cognition exposes HTTP endpoints that drive an agent reasoning loop capable of invoking tools, including a shell tool bound to the local operating system. Because the REST and SSE routes require no credentials, any unauthenticated client that reaches the service can submit prompts the agent will act upon.
Exploitation does not require crafted payloads or memory corruption primitives. Attackers simply instruct the agent in natural language or structured tool calls, and the ReAct loop converts those instructions into shell command executions. The impact extends beyond the application boundary into arbitrary command execution on the host.
Root Cause
Two design decisions compound into the vulnerability. First, the agent sandbox backend defaults to local execution rather than an isolated container or remote sandbox. Second, the API layer ships with no authentication, authorization, or network binding safeguards. Either control alone would reduce blast radius; the absence of both yields direct unauthenticated code execution.
Attack Vector
An attacker sends an unauthenticated POST /sessions request to create a new agent session, then submits a POST /sessions/{id}/messages request containing instructions that steer the Deep Agents ReAct loop toward shell tool invocation. The agent executes the resulting commands through the local shell backend. The attack requires only network reachability to the API port. Refer to the VulnCheck Unauthenticated RCE Advisory and the Lasso Security CVE-2026-109437 write-up for request-level technical details.
Stop Remote Code Execution Before It Runs
Singularity™ Endpoint detects and blocks exploit attempts at machine speed, including zero-days and novel attack techniques.
Stop Exploit AttemptsDetection Methods for CVE-2026-109437
Indicators of Compromise
- Unexpected POST /sessions and POST /sessions/{id}/messages requests from untrusted source addresses in Cognition access logs.
- Child processes spawned by the Cognition server process that are not part of normal agent workflows, such as shells, package managers, or network utilities.
- Outbound network connections from the Cognition host to attacker-controlled infrastructure immediately following API traffic.
- New cron jobs, systemd units, or SSH authorized keys created under the service account running Cognition.
Detection Strategies
- Alert on any inbound HTTP request to Cognition endpoints that lacks an authenticating header or originates outside approved client ranges.
- Correlate agent session creation events with subsequent process execution telemetry on the host to flag shell commands tied to externally triggered sessions.
- Monitor for anomalous command-line patterns executed by the Cognition process, including curl, wget, bash -i, /dev/tcp/, and base64-decoded command chains.
Monitoring Recommendations
- Capture process creation, network, and file telemetry from all hosts running the Cognition agent framework.
- Centralize Cognition API access logs and alert on unauthenticated requests to /sessions routes.
- Track changes to persistence locations writable by the Cognition service account.
How to Mitigate CVE-2026-109437
Immediate Actions Required
- Upgrade all Cognition deployments to version 0.13.0 or later without delay.
- Remove direct network exposure of Cognition API ports and place the service behind an authenticating reverse proxy or VPN.
- Rotate credentials, API tokens, and secrets accessible from any host that ran a vulnerable Cognition version exposed to untrusted networks.
- Review process execution and outbound connection history on affected hosts for signs of prior exploitation.
Patch Information
Upgrade to Cognition 0.13.0 or newer. Release notes and artifacts are available at the GitHub Release v0.13.0 page. The upstream fix addresses the authentication gap on the REST and SSE API surface associated with the agent session endpoints.
Workarounds
- Switch the agent sandbox backend from local execution to an isolated remote or container-based sandbox so shell tool calls cannot touch the host.
- Place Cognition behind an authenticating gateway that enforces mutual TLS or signed bearer tokens on /sessions and /sessions/{id}/messages routes.
- Bind the Cognition listener to loopback and restrict access to trusted client processes on the same host.
- Run the Cognition server under a dedicated unprivileged account with filesystem and network egress constraints to limit the impact of any residual exploitation.
# Configuration example: restrict Cognition to loopback and require upstream auth
# systemd drop-in to bind the service to localhost only
# /etc/systemd/system/cognition.service.d/override.conf
[Service]
Environment="COGNITION_HOST=127.0.0.1"
Environment="COGNITION_PORT=8080"
# Front with an authenticating reverse proxy (example: nginx)
# location / {
# auth_request /auth;
# proxy_pass http://127.0.0.1:8080;
# }
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

