(0Day) Langflow exec_globals Inclusion of Functionality from Untrusted Control Sphere Remote Code Execution Vulnerability
The validate endpoint of Langflow mishandles the exec_globals parameter, allowing an unauthenticated remote attacker to execute arbitrary code. This can lead to code execution with root privileges.
Originally disclosed on Zero Day Initiative
This vulnerability allows remote attackers to execute arbitrary code on affected installations of Langflow. Authentication is not required to exploit this vulnerability.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the validate endpoint fails to properly validate or restrict the exec_globals parameter, allowing untrusted input to be executed as code.
Impact
An unauthenticated attacker could execute arbitrary code with root privileges on the affected Langflow installation.
What the attacker needed
None
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
Langflow is a tool for building AI workflows. A part of it called the validate endpoint accepts a parameter called exec_globals, and it does not properly check what is passed in. An attacker can send a specially crafted request to that endpoint and make the server run their own code, even without logging in.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.