Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Description confirms unauthenticated remote RCE via env-var injection, so AV:N/AC:L/PR:N/UI:N with full C/I/A impact from arbitrary command execution.
Primary rating from Vendor (ibm).
CVSS VectorVendor: ibm
Lifecycle Timeline
2DescriptionCVE.org
IBM Langflow OSS 1.0.0 through 1.10.1 are vulnerable to unauthenticated remote code execution via environment variable injection in the MCP (Model Context Protocol) stdio launcher. The vulnerability exists in src/lfx/src/lfx/base/mcp/util.py where the DANGEROUS_ENV_VARS blocklist fails to include SHELLOPTS , BASHOPTS , and PS4 environment variables.
AnalysisAI
Unauthenticated remote code execution in IBM Langflow OSS 1.0.0 through 1.10.1 allows remote attackers to run arbitrary OS commands by injecting shell-control environment variables into the MCP (Model Context Protocol) stdio launcher. The DANGEROUS_ENV_VARS blocklist in src/lfx/src/lfx/base/mcp/util.py omits SHELLOPTS, BASHOPTS, and PS4, letting an attacker abuse Bash's xtrace behavior to execute commands when a stdio-based MCP server subprocess is spawned. Rated CVSS 9.8 with a network, no-privilege, no-interaction vector; a vendor patch is available, but no public exploit code or CISA KEV listing has been identified at the time of analysis.
Technical ContextAI
Langflow OSS is an open-source, low-code Python platform for visually building LLM/agent workflows; this flaw lives in its MCP integration layer, which can launch external Model Context Protocol servers over stdio by spawning child processes with a caller-influenced environment. To reduce risk, the code maintains a DANGEROUS_ENV_VARS blocklist intended to strip variables that could alter subprocess behavior, but it fails to cover SHELLOPTS, BASHOPTS, and PS4. These are Bash-specific controls: SHELLOPTS/BASHOPTS can enable shell options such as xtrace (set -x) at startup, and PS4 defines the trace prompt string that Bash expands-including command substitutions-each time a traced command runs. Passing PS4 together with xtrace-enabling options into a Bash subprocess therefore causes attacker-supplied command substitution to execute, matching the CWE-78 (Improper Neutralization of Special Elements used in an OS Command / OS Command Injection) root-cause class. The affected component is identified by CPE cpe:2.3:a:ibm:langflow_oss:*:*:*:*:*:*:*:*.
RemediationAI
Upgrade to the fixed IBM Langflow OSS release identified in the vendor advisory at https://www.ibm.com/support/pages/node/7279995 (patch available per vendor advisory; an exact fixed version number is not specified in the provided data and must be taken from that page). Until patched, restrict who can reach and configure MCP integrations: avoid using stdio-based MCP servers, and if the platform is network-exposed, place it behind authentication and network controls so untrusted users cannot trigger MCP server launches. As a targeted compensating control, sanitize the subprocess environment for MCP stdio launches to explicitly strip SHELLOPTS, BASHOPTS, and PS4 in addition to the existing DANGEROUS_ENV_VARS entries, or force child processes to run with a minimal/allowlisted environment; note that over-stripping environment variables could break legitimate MCP servers that rely on specific env configuration, so validate integrations after applying. Where feasible, run MCP subprocesses under a non-Bash or hardened non-interactive shell configuration to neutralize PS4/xtrace abuse.
More in Langflow Oss
View allUnauthenticated remote code execution in IBM Langflow OSS versions 1.0.0 through 1.10.0 lets any network-reachable attac
Authenticated command injection in IBM Langflow OSS 1.0.0 through 1.11.1 lets any logged-in flow user escalate to arbitr
Code injection in IBM Langflow OSS versions 1.0.0 through 1.10.0 lets an authenticated user execute arbitrary operating-
Remote code execution in IBM Langflow OSS 1.0.0 through 1.11.1 allows a network-accessible authenticated attacker with l
Authentication bypass in IBM Langflow OSS 1.0.0 through 1.10.0 lets an unauthenticated remote attacker retrieve a long-l
Remote code execution in IBM Langflow OSS versions 1.0.0 through 1.11.5 allows an unauthenticated remote attacker to run
Remote OS command execution in IBM Langflow OSS (versions 1.0.0 through 1.11.5) lets remote attackers run arbitrary oper
Unauthenticated remote code execution in IBM Langflow OSS versions 1.0.0 through 1.9.3 allows attackers to fully comprom
Arbitrary Python code execution in IBM Langflow OSS 1.0.0 through 1.10.0 (Langflow versions up to 1.9.2) allows authenti
Remote code execution in IBM Langflow OSS 1.0.0 through 1.10.0 allows attackers to run arbitrary code by planting a mali
Authenticated remote code execution in IBM Langflow OSS 1.0.0 through 1.10.0 lets any logged-in user run arbitrary Pytho
Arbitrary file write in IBM Langflow OSS 1.0.0 through 1.10.0 lets an attacker who controls an external HTTP server plan
Same weakness CWE-78 – OS Command Injection
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-51240
GHSA-gx45-8jc3-gqqr