CVE-2025-71334: Flowise: path traversal → RCE via missing UUID validation
CRITICAL PoC AVAILABLE NUCLEI TEMPLATE CISA: ATTENDFlowise before version 3.0.6 contains a critical path traversal vulnerability in its file handling endpoints that allows any unauthenticated attacker to read and write arbitrary files on the server by supplying directory traversal sequences as chatflowId parameters. With a CVSS score of 9.8 and the full AV:N/AC:L/PR:N/UI:N profile, this is as exploitable as vulnerabilities get — no credentials, no special knowledge, just an HTTP request to any exposed Flowise instance. The arbitrary file write primitive is a well-understood path to remote code execution, and given that Flowise instances typically store OpenAI, Anthropic, and other LLM provider API keys in configuration files, a successful read exploit alone results in significant credential exposure and unauthorized AI service usage at the victim's cost. Upgrade to Flowise 3.0.6 immediately; if immediate patching is not possible, take the instance offline or restrict it behind a VPN or network control until patched, and rotate all API keys stored on affected hosts.
What is the risk?
Critical. CVSS 9.8 with no authentication required, no user interaction, and a network-accessible attack vector makes this trivially weaponizable at scale. The compound impact of arbitrary file read (immediate credential exfiltration) and arbitrary file write (path to full RCE) means a single exposed Flowise instance represents a complete system compromise scenario. The package carries 112 prior CVEs, indicating a historically weak security posture. Any internet-facing Flowise deployment on versions 2.2.8 or earlier should be treated as actively compromised until patched.
How does the attack unfold?
What systems are affected?
How severe is it?
What is the attack surface?
What should I do?
1 step-
1) Patch immediately: upgrade to Flowise 3.0.6+. 2) If patching is not immediately possible, take Flowise offline or restrict access to trusted IP ranges only — this is trivially exploitable with no tooling required. 3) WAF mitigation: block requests containing path traversal sequences (../, %2e%2e%2f, encoded variants) in chatflowId and chatId parameters across /api/v1/chatflows, /api/v1/get-upload-file, and /api/v1/openai-assistants-file/download endpoints. 4) Rotate all LLM API keys, database credentials, and secrets stored on affected Flowise hosts. 5) Review server access logs for the three affected endpoints, specifically looking for non-UUID, non-numeric, or path-containing chatflowId values as indicators of exploitation. 6) Audit all files in Flowise storage directories for unexpected or recently written content.
What does CISA's SSVC say?
Source: CISA Vulnrichment (SSVC v2.0). Decision based on the CISA Coordinator decision tree.
How is it classified?
Which compliance frameworks are affected?
This CVE is relevant to:
Frequently Asked Questions
What is CVE-2025-71334?
Flowise before version 3.0.6 contains a critical path traversal vulnerability in its file handling endpoints that allows any unauthenticated attacker to read and write arbitrary files on the server by supplying directory traversal sequences as chatflowId parameters. With a CVSS score of 9.8 and the full AV:N/AC:L/PR:N/UI:N profile, this is as exploitable as vulnerabilities get — no credentials, no special knowledge, just an HTTP request to any exposed Flowise instance. The arbitrary file write primitive is a well-understood path to remote code execution, and given that Flowise instances typically store OpenAI, Anthropic, and other LLM provider API keys in configuration files, a successful read exploit alone results in significant credential exposure and unauthorized AI service usage at the victim's cost. Upgrade to Flowise 3.0.6 immediately; if immediate patching is not possible, take the instance offline or restrict it behind a VPN or network control until patched, and rotate all API keys stored on affected hosts.
Is CVE-2025-71334 actively exploited?
Proof-of-concept exploit code is publicly available for CVE-2025-71334, increasing the risk of exploitation.
How to fix CVE-2025-71334?
1) Patch immediately: upgrade to Flowise 3.0.6+. 2) If patching is not immediately possible, take Flowise offline or restrict access to trusted IP ranges only — this is trivially exploitable with no tooling required. 3) WAF mitigation: block requests containing path traversal sequences (../, %2e%2e%2f, encoded variants) in chatflowId and chatId parameters across /api/v1/chatflows, /api/v1/get-upload-file, and /api/v1/openai-assistants-file/download endpoints. 4) Rotate all LLM API keys, database credentials, and secrets stored on affected Flowise hosts. 5) Review server access logs for the three affected endpoints, specifically looking for non-UUID, non-numeric, or path-containing chatflowId values as indicators of exploitation. 6) Audit all files in Flowise storage directories for unexpected or recently written content.
What systems are affected by CVE-2025-71334?
This vulnerability affects the following AI/ML architecture patterns: agent frameworks, LLM orchestration platforms, chatbot deployments, RAG pipelines, no-code AI builders.
What is the CVSS score for CVE-2025-71334?
CVE-2025-71334 has a CVSS v3.1 base score of 9.8 (CRITICAL). The EPSS exploitation probability is 3.90%.
What is the AI security impact?
Affected AI Architectures
MITRE ATLAS Techniques
AML.T0037 Data from Local System AML.T0049 Exploit Public-Facing Application AML.T0055 Unsecured Credentials AML.T0072 Reverse Shell Compliance Controls Affected
What are the technical details?
Original Advisory
Flowise before 3.0.6 (affected versions 2.2.8 and earlier) contains an arbitrary file access vulnerability due to missing validation that the chatflowId and chatId parameters are UUIDs or numbers in file handling operations. By supplying a path-traversal value (e.g., '../../../../../tmp') as the chatflow id, an unauthenticated attacker can use the /api/v1/chatflows endpoint (via addBase64FilesToStorage) to write arbitrary files, and the /api/v1/get-upload-file and /api/v1/openai-assistants-file/download endpoints (via streamStorageFile) to read arbitrary files. Arbitrary file write may lead to remote code execution.
Exploitation Scenario
An attacker performs passive reconnaissance on internet-facing Flowise instances via Shodan or Censys, identifying pre-3.0.6 deployments. Without any authentication, they issue a GET to /api/v1/get-upload-file?chatflowId=../../../../.env to immediately harvest OpenAI, Anthropic, and database credentials stored in the environment file. For RCE, they POST a base64-encoded PHP web shell to /api/v1/chatflows with chatflowId set to ../../../../var/www/html/shell.php, then trigger execution via the web server. From this foothold, the attacker exfiltrates all chatflow configurations, user conversation histories, and embedded documents, then pivots to connected databases and abuses the harvested AI provider API keys for unauthorized model access at the victim's expense. The entire attack chain requires no credentials, no prior knowledge of the target, and can be scripted in minutes.
Weaknesses (CWE)
CWE-73 — External Control of File Name or Path: The product allows user input to control or influence paths or file names that are used in filesystem operations.
- [Architecture and Design] When the set of filenames is limited or known, create a mapping from a set of fixed input values (such as numeric IDs) to the actual filenames, and reject all other inputs. For example, ID 1 could map to "inbox.txt" and ID 2 could map to "profile.txt". Features such as the ESAPI AccessReferenceMap provide this capability.
- [Architecture and Design, Operation] Run your code in a "jail" or similar sandbox environment that enforces strict boundaries between the process and the operating system. This may effectively restrict all access to files within a particular directory. Examples include the Unix chroot jail and AppArmor. In general, managed code may provide some protection. This may not be a feasible solution, and it only limits the impact to the operating system; the rest of your application may still be subject to compromise. Be careful to avoid CWE-243 and other weaknesses related to jails.
Source: MITRE CWE corpus.
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H References
- github.com/FlowiseAI/Flowise/commit/8bd3de41533de78e4ef6c980e5704a1f9cb7ae6f patch
- github.com/FlowiseAI/Flowise/commit/c2b830f279e454e8b758da441016b2234f220ac7 patch
- github.com/FlowiseAI/Flowise/security/advisories/GHSA-q67q-549q-p849 vendor-advisory
- vulncheck.com/advisories/flowise-arbitrary-file-access-via-missing-chat-flow-id-validation third-party-advisory
Timeline
Scanner Template Available
A Nuclei vulnerability scanner template exists for this CVE. You can scan your infrastructure for this vulnerability immediately.
View template on GitHubnuclei -t http/cves/2025/CVE-2025-71334.yaml -u https://target.example.com Related Vulnerabilities
CVE-2025-71338 10.0 Flowise: unauthenticated file write enables RCE
Same package: flowise CVE-2025-59528 10.0 Flowise: Unauthenticated RCE via MCP config injection
Same package: flowise CVE-2025-61913 9.9 Flowise: path traversal in file tools leads to RCE
Same package: flowise CVE-2026-40933 9.9 Flowise: RCE via MCP stdio command injection
Same package: flowise CVE-2026-46442 9.9 Flowise: sandbox escape enables authenticated RCE
Same package: flowise