Skip to content
CriticalVulnerability

GHSA-8vvx-qvq9-5948: Flowise allows arbitrary file write to RCE

Published
Record updated
View JSON
Affected
  • flowise <= 2.2.7
Fixed in
No fixed version was stated when the source was last read.
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
1.0%Estimated probability that this CVE is exploited in the next 30 days, from the FIRST Exploit Prediction Scoring System. Read on .

Summary

Flowise, an LLM workflow builder, has an arbitrary file write flaw reachable through the /api/v1/document-store/loader/process endpoint. The fileName value is passed unchecked to path.join() in addBase64FilesToStorage, addArrayFilesToStorage and addSingleFileToStorage in storageUtils.ts, so ../ sequences let an attacker write files anywhere on disk. The advisory's proof of concept overwrites package.json in the project folder to add a command that runs when pnpm start executes, leading to remote code execution. The source text is cut off before its Impact and patch sections, and the affected version is shown only as 1.8.2 in the example package.json.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.