NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · Flowise

CVE-2024-36420: Flowise Path Injection at /api/v1/openai-assistants-file

highCVSS 4.0 8.7 · 3.1 7.5GHSA-h997-3fxj-p5j8

Flowise 1.4.3 and earlier let an unauthenticated caller read arbitrary files through the /api/v1/openai-assistants-file endpoint, because the fileName body parameter is not sanitized. No patched version is listed, and the maintainers told GitHub Security Lab they lacked resources to fix it.

Published Aug 5, 2024 · Analysis Nov 1, 2026

What an attacker can do

The POST handler for /api/v1/openai-assistants-file joins the fileName body parameter onto a path under ~/.flowise/openai-assistant and streams the file back with fs.createReadStream. Nothing stops ../ sequences or absolute paths, so the caller can read any file the Flowise process can read (GitHub Security Lab issue GHSL-2023-232).

In the default configuration Flowise has no authentication, and the CVSS vector lists no privileges and no user interaction. Files worth reading include the Flowise database and .env file, which hold stored credentials and API keys for model providers, and SSH keys or cloud credentials in the home directory.

The issue can be chained with the CORS misconfiguration, CVE-2024-36421. A web page the victim opens can then make their browser call a Flowise server on a private network and read the files, so even an instance not reachable from the internet can be hit.

The advisory reports version 1.4.3 as tested and states no patch is available.

Who is affected

The npm package flowise, version 1.4.3 and earlier. Instances without authentication are the easiest targets. Check your version:

npm ls -g flowise

For Docker, check the image tag.

flowise

Ecosystem
npm
Affected
<= 1.4.3
Fixed in
No patched version yet
Check
npm ls flowise

How to fix it

The advisory data lists no patched version, and GitHub Security Lab reports the maintainers did not fix it when it published on June 28, 2024. I could not confirm which later Flowise release, if any, fixes this specific route, so check the release notes and test it.

Until then, enable Flowise authentication, keep the server off public networks, run it as an unprivileged user with access only to its own data directory, and block the route at a reverse proxy.

How to tell if you were hit

Search access logs for POST requests to /api/v1/openai-assistants-file whose body contains ../, ..%2f or an absolute path such as /etc/passwd. Check for requests from unfamiliar clients or browser origins to that route. If you find any, rotate every secret stored on the host or in Flowise.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Flowise is a drag & drop user interface to build a customized large language model flow. In version 1.4.3 of Flowise, the /api/v1/openai-assistants-file endpoint in index.ts is vulnerable to arbitrary file read due to lack of sanitization of the fileName body parameter. No known patches for this issue are available.

Questions

Is there a patch for CVE-2024-36420?

None is listed. The GitHub Security Lab write-up says the maintainers said they lacked resources to fix the issues.

Does the attacker need to log in?

In the default unauthenticated configuration, no. Turning on Flowise authentication changes that.

How does it relate to CVE-2024-36421?

CVE-2024-36421 is the CORS misconfiguration in the same version. Together they let a web page the victim visits read files from a Flowise server the attacker cannot reach directly.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology

More Flowise vulnerabilities

All Flowise entries