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

High 7.5 Published Updated

Attackers can read arbitrary files from the server via the openai-assistants-file endpoint due to unsanitized input in Flowise.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2024-36420?

CVE-2024-36420 is a high-severity path traversal vulnerability in Flowiseai Flowise, published on 1 Jul 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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.

Weakness: CWE-74

Which versions are affected by CVE-2024-36420?

2 open source packages ship an affected version, including flowise. It affects 1 product.

PackageAffectedFixed in
flowise npmAll versions to 1.4.3None
flowise npmAll versions to 1.4.3None

Products include Flowiseai Flowise.

How do I fix CVE-2024-36420?

No fix has been published for CVE-2024-36420 yet. Limit exposure of the affected software until one is available.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2024-36420 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-36420 exists.

Public exploit code: 1 Nuclei template and 1 proofs of concept on GitHub.

All Flowiseai Flowise vulnerabilities

Sources

Also known as GHSA-h997-3fxj-p5j8.

Is CVE-2024-36420 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free