Langflow Authenticated RCE via A2A JSON-RPC Execution-Gate Bypass (CVE-2026-107327)
Published: 2026-11-25 • Researcher: Richard Howe (rmhowe425) - PoC; IBM (vendor advisory / CNA)
- Severity
- Critical
- CVE
- CVE-2026-107327
- Category
- web
- Affected product
- IBM Langflow OSS (Langflow AI agent/workflow builder)
- Affected versions
- 1.0.0 through 1.12.4 (fixed in 1.12.5; NVD range >=1.0.0 <1.12.5)
- Disclosed
- 2026-11-25
- Patch status
- Patched
Tags
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-107327
- https://www.cve.org/CVERecord?id=CVE-2026-107327
- https://www.ibm.com/support/pages/node/7293016
- https://github.com/rmhowe425/POC-CVE-2026-107327
- https://github.com/langflow-ai/langflow/pull/15530
- https://docs.langflow.org/release-notes
- https://pypi.org/project/langflow/1.12.5/
- https://vuldb.com/vuln/428496
Archive entry
intelseclab/poc-archiveOn this page
Metadata
| Field | Value |
|---|---|
| Date Added | 2026-11-25 |
| Last Updated | 2026-10-26 |
| Author / Researcher | Richard Howe (rmhowe425) - PoC; IBM (vendor advisory / CNA) |
| CVE / Advisory | CVE-2026-107327 |
| Category | web |
| Severity | Critical |
| CVSS Score | 9.9 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H) |
| Status | Weaponized |
| Tags | RCE, authenticated, Langflow, AI-agent, A2A, JSON-RPC, authorization-bypass, CWE-862, PythonREPL, custom-component, code-execution-policy |
| Related | N/A |
Affected Target
| Field | Value |
|---|---|
| Software / System | IBM Langflow OSS (Langflow AI agent/workflow builder) |
| Versions Affected | 1.0.0 through 1.12.4 (fixed in 1.12.5; NVD range >=1.0.0 <1.12.5) |
| Language / Platform | Python (FastAPI backend); Linux, macOS, Windows; Docker or pip install |
| Authentication Required | Yes - a valid Langflow account plus an owner-scoped API key |
| Network Access Required | Yes - HTTP(S) to the Langflow API (default port 7860) |
Summary
CVE-2026-107327 is a missing-authorization flaw in IBM Langflow OSS 1.0.0 through 1.12.4 that lets a remote authenticated attacker execute arbitrary code on the server. The authenticated A2A execution path calls the shared workflow executor directly instead of going through the REST execution gates, so the caller-aware component policy is never applied. Any user with a valid Langflow account and API key can therefore run code-executing components, such as the code interpreter or a custom component, even when operators have explicitly blocked them with the Langflow environment controls for interpreter components and admin-only custom components. The public PoC authenticates, creates a flow containing a custom component that calls os dot system, and fires it through the A2A JSON-RPC message send endpoint.
Vulnerability Details
Root Cause
Langflow routes REST flow executions through a policy layer that validates the caller, the flow settings and the enabled components. Per the PoC analysis, the authenticated A2A handler (_run_flow in a2a.py) instead calls execute_sync_workflow_with_timeout() directly, bypassing _apply_execution_gates() (workflow.py:295). As a result validate_flow_for_current_settings(), check_code_execution_components_and_raise() and validate_catalog_policy_for_flow() are never invoked for that path, so administrator-set code-execution restrictions silently do not apply. IBM classifies this as CWE-862 Missing Authorization; the practical consequence is that a low-privileged authenticated user reaches a privileged code-execution primitive.
Attack Vector
The attacker needs an account and its API key. The PoC logs in via POST /api/v1/login, creates an API key via POST /api/v1/api_key/, creates a folder with auth_settings auth_type=apikey (which forces the authenticated A2A branch), uploads an agent flow with a2a_enabled=true containing a CustomComponent whose build() method runs an arbitrary OS command, then calls POST /api/v1/a2a/{flow_id}/jsonrpc with method message/send and the owner-scoped x-api-key header. The flow executes server-side during the JSON-RPC request, and the PoC deletes the flow and folder afterwards to remove its own artifacts. The target must have LANGFLOW_A2A_ENABLED=true, which is a non-default exposure that the PoC reports as 404/405 when disabled.
Impact
Arbitrary operating-system command execution in the Langflow server process context (the service user, root in many Docker deployments). The attacker can read application secrets, database and provider credentials, Langflow-stored API keys, mounted files and any reachable internal service, and can establish persistence. Because the PoC’s design intent is to defeat an explicit administrator control, deployments that believe they have disabled code execution may still be fully compromised.
Environment / Lab Setup
OS: Ubuntu 22.04 LTS (Docker or pip deployment)
Target: Langflow OSS 1.0.0 - 1.12.4, e.g. 1.11.1 (PoC was tested against this version)
LANGFLOW_A2A_ENABLED=true
LANGFLOW_BLOCK_CODE_INTERPRETER_COMPONENTS=true # the control being bypassed
Attacker: Python 3 with the requests library, network access to port 7860
Tools: python3, requests, curl (optional)Setup Steps
| |
Proof of Concept
Step-by-Step Reproduction
- Authenticate and obtain an API key - the PoC logs in with the low-privileged account and creates an owner-scoped key:Shell script
1 2curl -s -X POST http://127.0.0.1:7860/api/v1/login \ -d 'username=user&password=user' | python3 -c 'import sys,json;print(json.load(sys.stdin)["access_token"])' - Create an apikey-auth folder and a malicious flow - the folder forces the authenticated A2A code path, and the flow carries a CustomComponent that calls os.system with the supplied command:Shell script
1 2python poc.py --url http://127.0.0.1:7860 --username user --password 'user' \ -c "echo 'pwned' > /tmp/pwned.txt" - Trigger the bypass - the PoC posts message/send to /api/v1/a2a/{flow_id}/jsonrpc with the x-api-key header; the component builds server-side despite the operator policy.
- Verify code execution - check the file the command wrote inside the Langflow container or host.Shell script
1docker exec langflow cat /tmp/pwned.txt - Cleanup - the PoC deletes the flow and folder in a finally block; confirm both are gone from the UI/API.
Exploit Code
See
exploit.pyin this folder (copied from the upstream poc.py).
| |
Expected Output
| |
On the target, the command artifact confirms execution (upstream screenshots show /tmp/pwned.txt in the Docker filesystem). If A2A is off, the PoC reports NOT VULNERABLE with HTTP 404 or 405; a rejected key reports HTTP 401.
Detection & Indicators of Compromise
- POST requests to /api/v1/a2a/{flow_id}/jsonrpc with method message/send from accounts that should not be running flows.
- New flows of type agent created with a2a_enabled=true and a CustomComponent whose code calls os.system, subprocess, eval or exec.
- Folders created with auth_settings auth_type=apikey shortly before an A2A run (the PoC uses this to force the authenticated branch).
- A burst of /api/v1/api_key/ creations followed by immediate flow upload, A2A invocation, and deletion of the flow and folder.
- Unexpected child processes spawned by the Langflow server process (sh, bash, curl, wget), outbound callbacks from the Langflow host, and new files under /tmp.
- Upstream screenshots show /tmp/pwned.txt written inside the Docker container.
SIEM / IDS rule (example):
| |
Remediation
| Action | Detail |
|---|---|
| Patch | Upgrade Langflow OSS to 1.12.5 or later (IBM bulletin); back up and test flows first. |
| Workaround | Set LANGFLOW_A2A_ENABLED=false where the A2A endpoint is not required, and/or LANGFLOW_CUSTOM_COMPONENT_ADMIN_ONLY=true so no non-admin user may execute custom components; restart the service after config changes. |
| Config Hardening | Treat component code execution as privileged: restrict and audit who can create flows and API keys, keep custom components off for non-admins, cap the Langflow API behind an authenticated reverse proxy with allow-listed egress, and monitor A2A runs against the execution-policy audit trail. |
References
- CVE-2026-107327 - NVD
- CVE-2026-107327 - CVE.org record
- IBM Security Bulletin - Langflow OSS is affected by multiple vulnerabilities
- Source PoC - rmhowe425/POC-CVE-2026-107327
- Langflow fix - fix(a2a): enforce authenticated execution policy (PR #15530)
- Langflow release notes / upgrade guide
- Langflow 1.12.5 on PyPI
- VulDB entry 428496
Notes
Auto-ingested from https://github.com/rmhowe425/POC-CVE-2026-107327 on 2026-11-25.
Review verdict: ingested as a Weaponized PoC. The repository is a single self-contained Python exploit client (poc.py, about 370 lines) that performs a complete authenticated exploitation chain and demonstrates real command execution; it is not a detector, scanner or audit tool, and there is no lab/CI wrapper or defensive content. It was archived as exploit.py with the original header comments preserved plus a research-only disclaimer.
Limitations: (1) it requires a valid account, a fresh owner-scoped API key, and LANGFLOW_A2A_ENABLED=true, so it only applies to deployments exposing A2A; (2) the author reports testing against Langflow 1.11.1 only, while the affected range is 1.0.0-1.12.4; (3) it creates and then deletes a flow and folder, so exploitation leaves API and audit-log artifacts; (4) the payload is a single os.system call interpolated as a string, so quoting in the command argument must be handled by the operator.
License status: the upstream repository has no LICENSE file, so the code is archived with attribution for authorized security research only. The upstream README contains no exploit code beyond usage instructions; it is kept as upstream-README.md. Existing archive entries for other Langflow CVEs are not duplicated here (Related: N/A). The exploit was not executed against any live target during ingestion.
| |