CVE-2024-58351 Flowise - Remote Code Execution via overrideConfig Parameter
Attackers can achieve remote code execution and denial of service in Flowise by injecting malicious configuration into the Chainflow execution.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-58351?
CVE-2024-58351 is a critical code injection vulnerability in Flowise, published on 20 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Flowise before 2.1.4 allows configuration to be injected into the Chainflow during execution via the overrideConfig option, supported in both the frontend web integration and the backend Prediction API. Because this feature is enabled by default with no allow-list of permitted variables and relies on vm2 for sandboxing, an attacker can abuse it to achieve remote code execution and sandbox escape, denial of service by crashing the server, server-side request forgery, prompt injection, and server variable and data exfiltration. These issues are self-targeted and do not persist to other users.
Weakness: CWE-94
Which versions are affected by CVE-2024-58351?
2 open source packages ship an affected version, including flowise.
| Package | Affected | Fixed in |
|---|---|---|
flowise npm | All versions | 2.1.4 |
flowise npm | All versions | 2.1.4 |
How do I fix CVE-2024-58351?
Upgrade flowise to 2.1.4 or later.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2024-58351 being exploited?
There is no known exploitation of CVE-2024-58351 in the wild and no public exploit code.
Sources
Also known as GHSA-5cph-wvm9-45gj.