CVE-2026-0770
Description
Langflow exec_globals Inclusion of Functionality from Untrusted Control Sphere Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Langflow. Authentication is not required to exploit this vulnerability.
The specific flaw exists within the handling of the exec_globals parameter provided to the validate endpoint. The issue results from the inclusion of a resource from an untrusted control sphere. An attacker can leverage this vulnerability to execute code in the context of root. Was ZDI-CAN-27325.
Summary dbcve.org
Langflow contains a critical code injection vulnerability in its validate endpoint where the exec_globals parameter is passed directly to Python's exec() function without sanitization. This allows unauthenticated remote attackers to execute arbitrary Python code in the root context, achieving full remote code execution on the affected system.
Mitigation
Immediately restrict network access to the validate endpoint and implement authentication/authorization controls. The exec_globals parameter handling must be removed or refactored to eliminate the unsafe exec() usage with user-controlled input.