Langflow 1.3.0 Patched After Unauthenticated Remote Code Execution Discovered

A security researcher has disclosed a remote code execution vulnerability in Langflow, a popular open-source AI workflow platform. Tracked as CVE-2026-0770, the bug is serious: it requires no authentication and lets attackers run arbitrary code on affected servers.

The flaw sits in Langflow’s code validation endpoint. When a user submits code for validation, the platform executes it server-side using Python. The problem is that the exec_globals parameter allowed untrusted input to flow directly into the execution environment. An attacker could craft a payload that imports Python’s subprocess module and spawns a shell — all without logging in.

Exploitation is straightforward. A single POST request to the validate/code endpoint sends crafted Python that catches its own exceptions and returns the output of any system command. The attacker gets root-level command execution just by sending a network request.

Langflow is used to build and orchestrate AI workflows, often in environments where developers are running multiple language models and data pipelines. An unauthenticated RCE in that context means an attacker could pivot deeper into infrastructure, access API keys, or tamper with models being served.

If you’re running Langflow, update to the latest version immediately. If you can’t patch right now, consider restricting access to the /api/v1/validate/code endpoint at the network level. And if you expose Langflow’s web interface to the internet — which the vendor’s Docker setup makes easy to do — treat this as urgent.

References