{"id":"CVE-2026-102610","aliases":["CVE-2026-102610","GHSA-9vhv-g5hf-m7m7"],"related":[],"kind":"vulnerability","state":"published","title":"fast-agent: `fast-agent serve` binds HTTP to 0.0.0.0 with no authentication by default; with --shell this is unauthenticated remote command execution","summary":"fast-agent is a framework for building, running, and evaluating AI agents with Model Context Protocol support. Prior to 0.7.21, fast-agent serve uses HTTP transport bound to 0.0.0.0 on port 8000 without authentication, allowing any network client that can reach the /mcp endpoint to invoke the exposed agent tool. When the server is started with --shell, the agent can call the local execute tool implemented by tools/local_shell_executor.py, so an unauthenticated remote client can cause operating-system commands to run as the server user; without --shell, the client can still consume the operator's model and configured MCP tools. The defaults are defined in cli/commands/serve.py and mcp/server/agent_server.py, and the non-interactive server permission prompt does not prevent the described access. This issue is fixed in version 0.7.21.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"fast-agent is a framework for building, running, and evaluating AI agents with Model Context Protocol support. Prior to 0.7.21, fast-agent serve uses HTTP transport bound to 0.0.0.0 on port 8000 without authentication, allowing any network client that can reach the /mcp endpoint to invoke the exposed agent tool. When the server is started with --shell, the agent can call the local execute tool implemented by tools/local_shell_executor.py, so an unauthenticated remote client can cause operating-system commands to run as the server user; without --shell, the client can still consume the operator's model and configured MCP tools. The defaults are defined in cli/commands/serve.py and mcp/server/agent_server.py, and the non-interactive server permission prompt does not prevent the described access. This issue is fixed in version 0.7.21.","source":"cvelist"},{"lang":"en","text":"## Summary\n`fast-agent serve` exposes the agent over MCP. By default it uses HTTP transport bound to `0.0.0.0` (all interfaces) on port 8000 with **no authentication** (`auth=None`) and prints no warning. Any host that can reach the port can call the exposed `agent` tool. When the server is started with `--shell` (which is `-x`, the flag used in the README quickstart `uvx fast-agent mcp@latest -x`), the agent has a local `execute` shell tool, so an unauthenticated remote client can drive the agent into running arbitrary OS commands — unauthenticated RCE.\n\n## Affected code\n- `cli/commands/serve.py` — transport defaults to HTTP; `--host` defaults to `0.0.0.0`; port 8000.\n- `mcp/server/agent_server.py` — `auth_provider = None` unless `FAST_AGENT_SERVE_OAUTH=huggingface`;\n  `run_async(transport=\"http\", host=host, ...)` with `host` defaulting to `0.0.0.0`.\n- `tools/local_shell_executor.py` — the shell tool runs commands via `create_subprocess_shell`.\n\n## Verified (live, faithful — published 0.7.20 in Docker python:3.13-slim, stock unauthenticated client)\n1) Unauthenticated exposure (core defect): a client with no Authorization header completed\n   `initialize` and `tools/list` (-> `['agent']`) against `http://HOST:8000/mcp`. Model-independent.\n2) Unauthenticated RCE with `--shell`, demonstrated two ways:\n   - Real production model (`gpt-4o-mini`): a single plain-language message asking the agent to run\n     a command via its shell tool -> the model autonomously called `execute` and the command output\n     (process identity showing it ran as root, the hostname, and the first lines of a sensitive\n     system file) was returned to the unauthenticated caller.\n   - Key-free deterministic (`passthrough` model): the tool-call directive invoked the shell tool\n     directly, same result.\n   The server-side permission prompt did not block this in non-interactive serve mode.\n\n## Proof of concept\nEnvironment: Docker `python:3.13-slim`, `pip install fast-agent-mcp` -> 0.7.20.\n\n```\n# server (real model + the documented shell flag; 0.0.0.0 is also the built-in default)\nOPENAI_API_KEY=*** fast-agent serve --model gpt-4o-mini --shell --host 0.0.0.0 --port 8000\n#  -> \"Uvicorn running on http://0.0.0.0:8000\"   (no auth, no warning)\n\n# attacker: unauthenticated MCP HTTP client (NO Authorization header) to http://HOST:8000/mcp\n#   initialize()                       -> 200 OK (server fast-agent-MCP-Server 0.7.20)\n#   tools/list                         -> ['agent']\n#   tools/call name=\"agent\" arguments={\"message\":\n#       \"Using your execute/shell tool, run exactly this command and return its raw stdout: \"\n#       \"id; echo PWNED=$(hostname); cat /etc/passwd | head -2\"}\n#\n# response returned to the UNAUTHENTICATED caller:\n#   uid=0(root) gid=0(root) groups=0(root)\n#   PWNED=<host>\n#   <first lines of /etc/passwd>\n```\nAlso reproduced key-free with `--model passthrough` and the message `***CALL_TOOL execute {\"command\":\"id\"}` (passthrough invokes the tool deterministically). Full transcript + client scripts were sent by email.\n\n## Impact\nAn unauthenticated client that can reach the serve port controls the agent: with `--shell` this is remote command execution as the server user; without `--shell` it is unauthenticated use of the operator's LLM and any configured MCP servers' tools. The `0.0.0.0` default makes the server reachable beyond localhost as soon as it runs on a non-isolated host. Preconditions (serve + shell) are noted above and are why I defer the exact rating to you.\n\n## Remediation\n1. Default the bind host to `127.0.0.1`; require an explicit `--host 0.0.0.0` opt-in for non-loopback.\n2. Print a loud warning when binding a non-loopback interface without authentication.","format":"markdown","source":"ghsa"}],"published":"2026-11-06T20:55:55.852Z","modified":"2026-11-12T22:18:51.470Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H","score":6.4,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H","score":6.4,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H","score":6.4,"rating":"MEDIUM"}],"cwes":["CWE-78","CWE-306"],"affected":[{"ranges":[{"version":"< 0.7.21","status":"affected"}],"vendor":"evalstate","product":"fast-agent","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.7.21"}],"ecosystem":"PyPI","package":"fast-agent-mcp","purl":"pkg:pypi/fast-agent-mcp","source":"ghsa"}],"references":[{"url":"https://github.com/evalstate/fast-agent/security/advisories/GHSA-9vhv-g5hf-m7m7","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/evalstate/fast-agent/pull/828","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/evalstate/fast-agent/commit/ba99f89c3ec7f1ef1c8b1ebce381c12b60dfea29","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/evalstate/fast-agent/releases/tag/v0.7.21","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-102610","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/evalstate/fast-agent","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-11-09T22:36:12.920Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-102610","url":"https://www.cve.org/CVERecord?id=CVE-2026-102610","licence":"CVE Terms of Use","modified":"2026-11-09T22:43:08.591Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-9vhv-g5hf-m7m7","url":"https://github.com/advisories/GHSA-9vhv-g5hf-m7m7","licence":"CC-BY-4.0","modified":"2026-11-09T22:15:03.934Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-102610","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-102610","licence":"Public domain","modified":"2026-11-12T22:18:51.470Z"}],"updatedAt":"2026-11-25T22:59:49.322Z","epss":{"score":0.0038,"percentile":0.34073,"date":"2026-12-01T12:00:22.000Z"}}