Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach exposed Langflow MCP endpoint
-
DeliveryInject PS4/SHELLOPTS/BASHOPTS env vars
-
ExploitTrigger MCP stdio subprocess launch
-
ExecutionBash xtrace expands malicious PS4
-
ImpactExecute arbitrary OS commands on host
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK
2 techniques across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that the target Langflow OSS instance (1.0.0-1.10.1) use the MCP stdio launcher to spawn an external MCP server subprocess, and that an attacker can influence the environment variables passed to that launch-specifically injecting SHELLOPTS, BASHOPTS, and/or PS4, which the DANGEROUS_ENV_VARS blocklist does not filter. The technique depends on a Bash subprocess that honors these variables (Bash with xtrace/PS4 semantics), so non-Bash or environment-sanitized launch paths would not be affected. Per the CVSS vector (AV:N/AC:L/PR:N/UI:N), no authentication or user interaction is required for network-reachable instances, so the primary limiting factors are whether the MCP stdio path is enabled/reachable and whether the underlying shell is Bash rather than any per-user privilege requirement. |
| Impact | The signals are largely consistent and point to a genuine high priority. The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H = 9.8) indicates fully remote, unauthenticated, low-complexity exploitation with total impact to confidentiality, integrity, and availability, and the description independently confirms 'unauthenticated remote code execution,' so the vector and narrative align. Command-injection-to-RCE bugs of this class are typically highly automatable and technically high-impact, which under an SSVC framing would push toward act/attend rather than defer. That said, exploitation is not entirely condition-free: it depends on the target actually using the MCP stdio launcher path and on a Bash-based subprocess honoring the injected variables, so real-world reach depends on deployment. No EPSS score was provided, and there is no CISA KEV listing or public POC in the supplied data-meaning no evidence of active exploitation yet, but the low complexity and public patch (which can be diffed) make weaponization plausible. Treat as high-urgency patching despite the absence of confirmed in-the-wild activity. |
| Exploit ScenarioDerived | An attacker who can reach a Langflow OSS instance and influence an MCP stdio server launch supplies malicious PS4 and SHELLOPTS/BASHOPTS environment values that the launcher passes to a Bash subprocess. When Bash runs with xtrace enabled, it expands the attacker-controlled PS4 trace prompt, executing the embedded command substitution and yielding arbitrary OS command execution on the host. No public exploit code is identified at the time of analysis, but the low attack complexity and network vector make reliable exploitation straightforward once the injection path is reachable. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 30, 2026
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.
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.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
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:*:*:*:*:*:*:*:*.
Know when Langflow Oss gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
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
DescriptionCVE.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.
Executive ViewAI
IBM Langflow OSS versions 1.0.0 through 1.10.1 contain a critical vulnerability (CVE-2026-12940) enabling unauthenticated attackers to execute arbitrary commands and gain complete control of affected systems without any user interaction. Organizations using this AI/ML platform risk immediate system compromise and potential data breach. While no public exploit identified at time of analysis, the vulnerability's ease of exploitation requires urgent remediation.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
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-
Unauthenticated remote code execution in IBM Langflow OSS 1.0.0 through 1.12.2 lets any attacker who can reach the servi
Remote code execution in IBM Langflow OSS 1.0.0 through 1.11.1 allows a network-accessible authenticated attacker with l
IBM Langflow OSS 1.0.0 through 1.12.8 allows unauthenticated remote attackers to bypass security restrictions through im
Unauthenticated remote code execution in IBM Langflow OSS versions 1.0.0 through 1.9.3 allows attackers to fully comprom
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
Path traversal in IBM Langflow OSS 1.0.0-1.10.3 exposes arbitrary server filesystem files via a crafted MCP `resources/r
Arbitrary Python code execution in IBM Langflow OSS 1.0.0 through 1.10.0 (Langflow versions up to 1.9.2) allows authenti
EUVD-2026-51240
GHSA-gx45-8jc3-gqqr
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB