<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Flowise-Components (&lt;= 3.1.2) - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/products/flowise-components--3.1.2/</link><description>Trending threats, MITRE ATT&amp;CK coverage, and detection metadata. Fed continuously.</description><generator>Hugo</generator><language>en</language><managingEditor>hello@craftedsignal.io</managingEditor><webMaster>hello@craftedsignal.io</webMaster><lastBuildDate>Tue, 02 Jan 2024 12:00:00 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/products/flowise-components--3.1.2/feed.xml" rel="self" type="application/rss+xml"/><item><title>FlowiseAI Flowise CSV Agent Prompt Injection RCE Vulnerability</title><link>https://feed.craftedsignal.io/briefs/2024-01-flowise-rce/</link><pubDate>Tue, 02 Jan 2024 12:00:00 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2024-01-flowise-rce/</guid><description>A remote code execution vulnerability exists in FlowiseAI Flowise version 3.0.13 due to insufficient sandboxing when evaluating LLM-generated Python scripts, allowing unauthenticated attackers to inject malicious code via prompts processed by the CSV Agent node, bypassing input validation, to execute arbitrary OS commands.</description><content:encoded><![CDATA[<p>FlowiseAI Flowise, a low-code tool for building customized large language model (LLM) applications, is vulnerable to remote code execution. Specifically, version 3.0.13 and earlier are affected. The vulnerability, identified by Trend Micro's Zero Day Initiative, stems from a lack of proper sandboxing when evaluating LLM-generated Python scripts within the <code>run</code> method of the <code>CSV_Agents</code> class. An unauthenticated attacker can exploit this vulnerability by injecting malicious code into prompts processed by the CSV Agent node, bypassing input validation to execute arbitrary OS commands on the server. Successful exploitation allows an attacker to execute code in the context of the user running the Flowise server. This impacts the confidentiality, integrity, and availability of the Flowise instance and the underlying system. The attack targets installations of Flowise on platforms like Ubuntu 25.10.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>An attacker crafts a malicious prompt designed to exploit the CSV Agent node in Flowise.</li>
<li>The attacker sends the crafted prompt to a chatflow that utilizes the vulnerable CSV Agent node.</li>
<li>The <code>run</code> method of the <code>CSV_Agents</code> class is invoked, processing the attacker-supplied prompt.</li>
<li>The system prompt, including the user's injected payload, is sent to an LLM to generate a Python script.</li>
<li>The LLM generates a Python script containing malicious code, bypassing the <code>FORBIDDEN_PATTERNS</code> validation (e.g., importing <code>os</code> with an alias).</li>
<li>The generated Python code, including the injected malicious commands (e.g., <code>pandas.system(&quot;xcalc&quot;)</code>), is executed within a pyodide environment, lacking sufficient sandboxing.</li>
<li>The attacker-controlled command is executed on the Flowise server, in the context of the user running the server.</li>
<li>The attacker achieves arbitrary code execution, potentially leading to system compromise, data exfiltration, or denial of service.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation allows an unauthenticated attacker to execute arbitrary code on the Flowise server. This can lead to a full system compromise, allowing the attacker to steal sensitive data, install malware, or disrupt services. Given Flowise's role in LLM application development, a successful attack could compromise sensitive data used by these models, or introduce malicious functionality into the models themselves. The number of affected installations is unknown, but any Flowise instance running version 3.0.13 or earlier with the CSV Agent node exposed is potentially vulnerable.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Upgrade Flowise to a patched version greater than 3.0.13 to remediate CVE-2026-41264.</li>
<li>Deploy the Sigma rule &quot;Detect Suspicious Flowise CSV Agent Execution&quot; to detect attempts to exploit this vulnerability via process creation from unexpected locations.</li>
<li>Review and harden the <code>FORBIDDEN_PATTERNS</code> list in the <code>validatePythonCodeForDataFrame()</code> function to prevent bypasses, referencing the details in the overview.</li>
<li>Monitor network connections originating from the Flowise server for suspicious outbound traffic using the &quot;Detect Outbound Connection from Flowise Server&quot; Sigma rule.</li>
</ul>
]]></content:encoded><category domain="severity">critical</category><category domain="type">advisory</category><category>flowise</category><category>rce</category><category>prompt-injection</category></item></channel></rss>