Skip to content
GitHub Security Advisories·Indexed by this site · Originally published· Event →SelectedAttention39

fast-agent serve binds to 0.0.0.0 without authentication by default; enabling --shell can lead to unauthenticated remote command execution, fixed in 0.7.21

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

AI summary

By default, fast-agent's serve command binds the Agent service to port 8000 on 0.0.0.0 over HTTP transport, with no authentication by default (auth=None) and no warning printed; any host that can reach that port can invoke the exposed agent tools. When --shell is enabled (i.e., the -x parameter used in the README quick start), the Agent carries a local execute shell tool, and an unauthenticated remote client can drive the Agent to execute arbitrary system commands, constituting unauthenticated RCE. The reporter verified this in a Docker environment against the released 0.7.20 version: with gpt-4o-mini, a single natural-language message was enough to make the model autonomously invoke the shell tool, with commands executed as root and output returned to the unauthenticated caller; under a passthrough model it can be reproduced deterministically without a key, and the permission prompt in non-interactive serve mode failed to prevent it.

Why it was selected

The advisory includes empirical verification and remediation recommendations; teams exposing Agents with fast-agent serve can use it to check binding addresses, authentication and shell switch configuration.

Read originalgithub.com