Skip to main content

Langflow OSS CVE-2026-12940

| EUVDEUVD-2026-51240 CRITICAL
OS Command Injection (CWE-78)
2026-07-30 ibm GHSA-gx45-8jc3-gqqr
9.8
CVSS 3.1 · Vendor: ibm
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach exposed Langflow MCP endpoint
  2. Delivery
    Inject PS4/SHELLOPTS/BASHOPTS env vars
  3. Exploit
    Trigger MCP stdio subprocess launch
  4. Execution
    Bash xtrace expands malicious PS4
  5. Impact
    Execute 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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity + public POC available.
Patch available 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Langflow OSS 1.0.0 ≤1.10.1

Affected Packages

euvd langflow_oss no fix

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

Vendor (ibm) PRIMARY 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 9.8 CRITICAL

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.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (ibm).

CVSS VectorVendor: ibm

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

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

Why It Matters

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.

Business Impact: Severe
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.5%
Top 61% exploitable
Prevalence
Medium
popular open-source LLM workflow builder, common but not ubiquitous
Exploit
POC
Public exploit code exists
Social Media
2
Sightings
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC Yes
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity + public POC available
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
Very High
Technical Impact
Total

Priority Score

69
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +49
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

CVE-2026-9198 CRITICAL POC
9.8 Jul 17

Unauthenticated remote code execution in IBM Langflow OSS versions 1.0.0 through 1.10.0 lets any network-reachable attac

CVE-2026-19295 CRITICAL POC
9.9 Aug 28

Authenticated command injection in IBM Langflow OSS 1.0.0 through 1.11.1 lets any logged-in flow user escalate to arbitr

CVE-2026-7873 CRITICAL POC
9.9 Jun 30

Code injection in IBM Langflow OSS versions 1.0.0 through 1.10.0 lets an authenticated user execute arbitrary operating-

CVE-2026-93674 CRITICAL POC
9.8 Oct 07

Unauthenticated remote code execution in IBM Langflow OSS 1.0.0 through 1.12.2 lets any attacker who can reach the servi

CVE-2026-18729 HIGH POC
8.8 Aug 28

Remote code execution in IBM Langflow OSS 1.0.0 through 1.11.1 allows a network-accessible authenticated attacker with l

CVE-2026-93680 CRITICAL POC
9.8 Oct 29

IBM Langflow OSS 1.0.0 through 1.12.8 allows unauthenticated remote attackers to bypass security restrictions through im

CVE-2026-10561 CRITICAL POC
10.0 Jun 22

Unauthenticated remote code execution in IBM Langflow OSS versions 1.0.0 through 1.9.3 allows attackers to fully comprom

CVE-2026-9103 CRITICAL POC
9.8 Jul 17

Authentication bypass in IBM Langflow OSS 1.0.0 through 1.10.0 lets an unauthenticated remote attacker retrieve a long-l

CVE-2026-81204 CRITICAL
9.8 Sep 10

Remote code execution in IBM Langflow OSS versions 1.0.0 through 1.11.5 allows an unauthenticated remote attacker to run

CVE-2026-79724 CRITICAL
9.8 Sep 10

Remote OS command execution in IBM Langflow OSS (versions 1.0.0 through 1.11.5) lets remote attackers run arbitrary oper

CVE-2026-7646 MEDIUM POC
6.5 Aug 05

Path traversal in IBM Langflow OSS 1.0.0-1.10.3 exposes arbitrary server filesystem files via a crafted MCP `resources/r

CVE-2026-9135 CRITICAL
9.9 Jul 17

Arbitrary Python code execution in IBM Langflow OSS 1.0.0 through 1.10.0 (Langflow versions up to 1.9.2) allows authenti

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy