Flowise CSV_Agent customReadCSV Code Injection Remote Code Execution Vulnerability
The run method of the CSV_Agents class in Flowise passes a user-supplied string into Python code execution without proper validation. An authenticated attacker could use this to run arbitrary code as the service account.
This vulnerability allows remote attackers to execute arbitrary code on affected installations of Flowise. Authentication is 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 CSV agent builds Python code from an unvalidated user-supplied string and evaluates it, rather than treating the input as inert data.
Impact
An authenticated attacker could execute arbitrary code in the context of the service account running Flowise.
What the attacker needed
Authentication to Flowise
The fix
The vendor issued an update to correct the vulnerability, referenced in a linked pull request.
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.
Flowise is a tool for building AI workflows, and one of its components reads CSV spreadsheet files. That component took text supplied by a user and ran it as Python code without checking it first, so someone with a login could make the server run their own commands. This is called remote code execution, meaning the attacker gets to run programs on the victim's machine.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.