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-108817 Overview
CVE-2026-108817 is an operating system command injection vulnerability [CWE-77] in the agno-agi/agno AI agent framework. The flaw resides in the agno.CodingTools.run_shell function within libs/agno/agno/tools/coding.py. Attackers can manipulate the command argument to bypass the disallowlist and execute arbitrary shell commands on the host running the agent. The issue affects all versions of agno up to and including 3.0.9 and is resolved in 3.0.10 via patch commit ed64fab5be63d2b15faddc2ef7c733176daa14aa. A public proof of concept has been disclosed, increasing the likelihood of opportunistic exploitation against exposed agent deployments.
Critical Impact
Authenticated remote attackers can bypass the run_shell disallowlist to execute arbitrary OS commands in the context of the agent process, enabling data theft, lateral movement, or full host compromise.
Affected Products
- agno-agi agno versions up to and including 3.0.9
- Component: CodingTools (libs/agno/agno/tools/coding.py)
- Function: agno.CodingTools.run_shell
Discovery Timeline
- 2026-10-12 - CVE-2026-108817 published to NVD
- 2026-10-13 - Last updated in NVD database
Technical Details for CVE-2026-108817
Vulnerability Analysis
The agno framework provides agent-oriented tools, including CodingTools, which exposes a run_shell function so coding agents can execute shell commands with a timeout. The implementation relied on a disallowlist to block dangerous commands, but the filter can be bypassed through command manipulation. An attacker who can influence the command argument, whether through prompt injection, chained tool calls, or an exposed agent endpoint, can run arbitrary operating system commands.
The attack is remote and requires user interaction, typically in the form of an operator accepting or forwarding attacker-controlled input to the agent. Because run_shell executes in the same process context as the agent, successful exploitation yields code execution with the privileges of the hosting user or container.
Root Cause
The root cause is incomplete neutralization of special elements used in an OS command [CWE-77]. The disallowlist-based filtering in run_shell does not account for all shell interpreter features that let an attacker reach a command interpreter, resulting in command injection when crafted input evades the blocked tokens.
Attack Vector
Exploitation requires network reachability to an agent exposing CodingTools and the ability to supply input that reaches the command parameter of run_shell. In agentic deployments this often reduces to supplying attacker-controlled text to an LLM that then calls the tool. The patch deprecates run_shell as a default-enabled tool, converting it to an opt-in capability intended only for supervised agents.
"""
CodingTools: Minimal Tools for Coding Agents
=============================================
-A single toolkit with 4 core tools (read, edit, write, shell) that lets
-an agent perform any coding task. Inspired by the Pi coding agent's
-philosophy: a small number of composable tools is more powerful than
-many specialized ones.
+A single toolkit that lets an agent perform any coding task. Inspired by
+the Pi coding agent's philosophy: a small number of composable tools is
+more powerful than many specialized ones.
Core tools (enabled by default):
- read_file: Read files with line numbers and pagination
- edit_file: Exact text find-and-replace with diff output
- write_file: Create or overwrite files
-- run_shell: Execute shell commands with timeout
-Exploration tools (opt-in):
+Opt-in tools:
+- run_shell: Execute shell commands with timeout. Off by default because it
+ runs arbitrary commands; enable it only for agents you supervise.
- grep: Search file contents
- find: Search for files by glob pattern
- ls: List directory contents
Source: GitHub Commit ed64fab5. The patch hardens run_shell against interpreter RCE and reclassifies it as opt-in so it is not enabled by default for new agents.
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-108817
Indicators of Compromise
- Unexpected child processes (for example sh, bash, cmd.exe, powershell.exe) spawned by the Python interpreter hosting an agno agent.
- Outbound network connections from the agent process to attacker-controlled hosts shortly after tool invocation.
- Agent logs showing CodingTools.run_shell invocations with shell metacharacters, encoded payloads, or commands referencing curl, wget, /etc/passwd, or credential files.
Detection Strategies
- Hunt for process trees where the agent runtime (python, uvicorn, container entrypoint) spawns shell interpreters not expected by the application baseline.
- Correlate LLM prompt and tool-call telemetry with subsequent process creation events to flag prompt-to-shell chains.
- Inventory deployments and search dependency manifests (pyproject.toml, requirements.txt, uv.lock) for agno<=3.0.9.
Monitoring Recommendations
- Enable process creation and command line auditing on hosts running agent workloads and forward events to a central analytics tier.
- Alert on execution of binaries commonly used in post-exploitation (whoami, id, nc, curl, wget, base64) by the agent service account.
- Monitor for egress from agent containers to new or non-allowlisted destinations after tool invocations.
How to Mitigate CVE-2026-108817
Immediate Actions Required
- Upgrade agno-agi/agno to version 3.0.10 or later across all environments running the framework.
- Audit agent configurations and disable CodingTools.run_shell wherever it is not strictly required.
- Review historical agent logs for suspicious run_shell invocations that may indicate prior exploitation.
Patch Information
The fix is delivered in commit ed64fab5be63d2b15faddc2ef7c733176daa14aa and shipped in GitHub Release v3.0.10. Technical context is available in GitHub Pull Request #10210, GitHub Issue #10048, and the Agno Security Advisory.
Workarounds
- Remove run_shell from the active toolset of any agent that does not explicitly require shell execution.
- Run agent processes in least-privilege, sandboxed containers with read-only filesystems and restrictive egress policies.
- Place a validation layer in front of agent inputs to reject prompts and tool arguments containing shell metacharacters or encoded command payloads.
# Upgrade agno to the patched release
pip install --upgrade 'agno>=3.0.10'
# Verify installed version
python -c "import agno; print(agno.__version__)"
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

