CVE-2024-58351
JSON

9.3critical

Flowise - Remote Code Execution via overrideConfig Parameter

Severity
9.3critical CVSS:4.0 by VulnCheck
Exploit likelihood
0.86% (higher than 59% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
VulnCheck
Also known as
GHSA-5cph-wvm9-45gj

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.

Affected

Product or packageVersionsReported by
Flowise Flowisebefore 2.1.4
Not affected: 2.1.4
CVE List
flowise (npm)before 2.1.4GitHub Advisory Database

All scores

VulnCheck9.3critical CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
VulnCheck9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Classification

CWE-15CWE-94

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total.

What each source says

CVE List

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.

GitHub Advisory Database
Impact

Flowise allows developers to inject configuration into the Chainflow during execution through the overrideConfig option. This is supported in both the frontend web integration and the backend Prediction API.

This has a range of fundamental issues that are a major security vulnerability. While this feature is intentional, it should have strong protections added and be disabled by default.

These issues include:

  1. Remote code execution. While inside a sandbox this allows for
  2. Sandbox escape
  3. DoS by crashing the server
  4. SSRF
  5. Prompt Injection, both System and User
  6. Full control over LLM prompts
  7. Server variable and data exfiltration And many many more such as altering the flow of a conversation, prompt exfiltration via LLM proxying etc.

These issues are self-targeted and do not persist to other users but do leave the server and business exposed. All issues are shown with the API but also work with the web embed.

Workarounds
  • overrideConfig should be disabled by default
  • overrideConfig should have an explicit allow list of variables that are allowed to be modified. This way the user opts-in to where modifications can be made.
  • vm2 and any forks of it should be removed as in the authors own words, "fixing the vulnerability seems impossible". The recommended replacement is https://www.npmjs.com/package/isolated-vm
NVD (es)

Flowise anterior a la versión 2.1.4 permite que la configuración sea inyectada en el Chainflow durante la ejecución a través de la opción overrideConfig, compatible tanto en la integración web de frontend como en la API de Predicción de backend. Debido a que esta característica está habilitada por defecto sin una lista de permitidos (allow-list) de variables autorizadas y se basa en vm2 para el sandboxing, un atacante puede abusar de ella para lograr ejecución remota de código y escape de sandbox, denegación de servicio al bloquear el servidor, falsificación de petición del lado del servidor, inyección de prompt, y exfiltración de datos y variables del servidor. Estos problemas son auto-dirigidos y no persisten para otros usuarios.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-58351 changed 2026-11-08CVE Terms of Use
GitHub Advisory DatabaseGHSA-5cph-wvm9-45gj changed 2026-09-14CC-BY-4.0
NVDCVE-2024-58351 changed 2026-10-27Public domain