Flowise through 2.2.4 contains an unauthenticated arbitrary file upload vulnerability in the /api/v1/attachments endpoint when storageType is set to local. Attackers can exploit path traversal in the chatId and chatflowId parameters to upload malicious files to arbitrary directories, potentially enabling remote code execution and server compromise.
The /api/v1/attachments endpoint does not require authentication and accepts files uploaded by users. The chatId and chatflowId parameters are vulnerable to path traversal (CWE-73 – External Control of File Name or Path), which allows an attacker to manipulate the target file save path. As a result, a malicious file can be saved outside the intended directory – in any location accessible to the application process. This vulnerability only affects configurations where the storageType parameter is set to local.
An attacker can upload malicious files (e.g., webshell) to arbitrary directories on the server, which can lead to remote code execution (RCE) and complete takeover of the server.
Patches available from the vendor should be applied according to the references. As an interim measure, consider changing the storageType configuration to a value other than local (e.g., external file storage) and restricting network access to the /api/v1/attachments endpoint using a firewall or infrastructure-level authentication mechanisms.
Flowise in versions up to and including 2.2.4, configured with the storageType parameter set to local.
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:XFlowiseai Flowise
APPFlowiseai≤ 2.2.4
Related vulnerabilities
Flowise before 3.1.3 contains a regex-based Python code validator bypass in CSV and Airtable Agent nodes that ...
Flowise before 3.1.3 contains a code injection vulnerability in the CSV Agent node's customReadCSV parameter t...
Flowise before 3.1.3 contains a code injection vulnerability in the Airtable Agent node that allows unauthenti...
Flowise (packages flowise and flowise-components) in versions <= 3.1.2 contain a sandbox escape in the vm2/@fl...
Flowise versions before 3.1.3 contain a remote code execution vulnerability in the Custom MCP node when CUSTOM...