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

Langflow fixes OS command injection RCE vulnerability in MCP stdio configuration

Langflow: OS command injection (RCE) via arbitrary command in MCP stdio server configuration

AI summary

Before Langflow 1.10.3, the MCP stdio transport directly executes the command and args that users fill in the MCP server configuration, with no allowlist, and before 1.10.3 it also wraps them with bash -c, allowing arbitrary OS commands to be executed. Any user who can access MCP server settings or build a flow containing MCP Tools components can add a server whose command is any system command, and the command runs on the host machine as the Langflow process user when Langflow attempts to connect to that server, even if the interface subsequently indicates that the stdio server failed to start. With the default LANGFLOW_AUTO_LOGIN=true, GET /api/v1/auto_login issues a token without credentials, so instances exposed under the default configuration can be exploited without an account; after disabling this setting, any authenticated non-admin user can also exploit it. This vulnerability is CWE-78, and the reporter found multiple internet-facing Langflow servers affected.

Why it was selected

The announcement fully disclosed the command injection path caused by Langflow MCP stdio configuration, the affected version range, and a two-phase fix plan, which can be used to check deployed versions.

Read originalgithub.com