{"id":"CVE-2026-56274","published":"2026-06-23T12:13:00Z","modified":"2026-06-24T11:17:02Z","title":"Flowise - Remote Code Execution via MCP Security Bypass in validateCommandFlags and validateArgsForLocalFileAccess","vendor":"Flowise","product":"Flowise","tier":"tail","description":{"text":"Flowise before 3.1.2 contains multiple OS command injection vulnerabilities in the Custom MCP Server feature due to incomplete command-flag validation and a regex bypass in local file access restrictions. An attacker with a Flowise account of any role, or API access with view/update permissions for chatflows, can configure a malicious MCP server to bypass the validateCommandFlags blocklist (for example, 'docker build' is not blocked, and 'npx --yes' is not blocked while only '-y' is) and the validateArgsForLocalFileAccess checks, resulting in execution of arbitrary commands on the Flowise host.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.9,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.07521,"percentile":0.94634,"provenance":"source"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"references":[{"url":"https://github.com/FlowiseAI/Flowise/security/advisories/GHSA-m99r-2hxc-cp3q","tags":["vendor-advisory"]},{"url":"https://www.vulncheck.com/advisories/flowise-remote-code-execution-via-mcp-security-bypass-in-validatecommandflags-and-validateargsforlocalfileaccess","tags":["third-party-advisory"]}],"priority":{"score":30.9,"factors":[{"name":"EPSS percentile","points":18.93},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":6.93}]},"exploitSources":{"metasploit":[{"name":"Flowise MCP Server Remote Code Execution","module":"exploit/multi/http/flowise_mcp_rce","type":"exploit","disclosureDate":"2026-06-23","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/flowise_mcp_rce.rb"}],"first":{"date":"2026-06-23","source":"Metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/flowise_mcp_rce.rb"},"provenance":"source"},"vendorSlug":"flowise","affectedVersions":[{"vendor":"Flowise","product":"Flowise","versions":["< 3.1.2"]},{"vendor":"Flowise","product":"Flowise Components","versions":["< 3.1.2"]}],"fixedVersions":[{"vendor":"Flowise","product":"Flowise","versions":["3.1.2"]},{"vendor":"Flowise","product":"Flowise Components","versions":["3.1.2"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-06-23T13:05:16.597724Z","from":"CISA ADP","provenance":"source"},"summary":{"text":"Flowise before 3.1.2 contains OS command injection flaws in its Custom MCP Server feature, caused by incomplete command-flag validation and a regex bypass in the local file access restrictions. An attacker with any Flowise account role, or API access with view/update permissions for chatflows, can configure a malicious MCP server that evades the command and file-access checks, enabling arbitrary command execution on the Flowise host over the network with low complexity and no user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T00:18:00Z"},"euvd":{"id":"EUVD-2026-38434","exploited":false,"provenance":"source"}}