(0Day) Langflow eval_custom_component_code Eval Injection Remote Code Execution Vulnerability
The eval_custom_component_code function in Langflow fails to validate user-supplied input before executing it as Python code. An unauthenticated remote attacker can exploit this to run arbitrary code in the context of the current process.
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 eval_custom_component_code function directly executes user-supplied input as Python code without any validation or sandboxing.
Impact
An unauthenticated attacker could execute arbitrary code on the server, potentially taking full control of the application.
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 function that runs custom code did not check what it was given, so anyone could send code that the server would run. This is like letting a stranger write commands on your computer.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.