FlowiseAI Flowise CSV Agent Prompt Injection Remote Code Execution Vulnerability
The CSV_Agents class in Flowise fails to sanitise untrusted input before building an LLM prompt, allowing an unauthenticated attacker to inject instructions that lead to arbitrary code execution. The attacker can run code as the service account.
This vulnerability allows remote attackers to execute arbitrary code on affected installations of Flowise. 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 CSV_Agents run method passes user-controlled data directly into an LLM prompt without sanitisation, enabling prompt injection that leads to code execution.
Impact
An unauthenticated remote attacker could execute arbitrary code with the privileges of the service account.
What the attacker needed
No authentication required
The fix
The vulnerability was fixed by an update from Flowise.
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 that lets you build applications using large language models (LLMs). The CSV agent takes a CSV file and asks the LLM to analyse it. Because the input is not cleaned, an attacker can sneak in extra instructions that make the LLM run harmful commands, which then execute code on the server.
What is AI / LLM?
Prompt injection, data exfiltration and tool abuse in features built on language models, and the ordinary bugs around them.