A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2024-37014

CVE-2024-37014: Langflow RCE Vulnerability

CVE-2024-37014 is a remote code execution vulnerability in Langflow that allows attackers to execute arbitrary Python scripts via the custom component API endpoint. This article covers the technical details, affected versions, and mitigation.

Published: May 26, 2026

CVE-2024-37014 Overview

CVE-2024-37014 is a remote code execution vulnerability affecting Langflow through version 0.6.19. The flaw resides in the POST /api/v1/custom_component endpoint, which accepts Python scripts from callers and executes them on the server. Any untrusted user able to reach this endpoint can run arbitrary Python code in the context of the Langflow process.

Langflow is a widely deployed visual builder for LangChain workflows used to prototype large language model (LLM) applications. The vulnerability is tracked under CWE-94: Improper Control of Generation of Code. The EPSS score is 5.96% at the 90.7th percentile, indicating elevated exploitation likelihood.

Critical Impact

Unauthenticated attackers with network access to a Langflow instance can execute arbitrary Python code on the host, leading to full system compromise.

Affected Products

  • Langflow versions up to and including 0.6.19
  • Self-hosted Langflow deployments exposing the REST API
  • Containerized Langflow instances reachable over the network

Discovery Timeline

  • 2024-06-10 - CVE-2024-37014 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2024-37014

Vulnerability Analysis

Langflow exposes a custom component feature that allows users to define reusable Python building blocks for LLM pipelines. The POST /api/v1/custom_component endpoint accepts a Python script in the request body and evaluates it server-side to extract component metadata such as inputs, outputs, and field definitions.

The endpoint performs no authentication enforcement in default deployments and no sandboxing of the submitted Python code. As a result, anyone who can reach the API can submit arbitrary Python and have it executed by the Langflow process. The classification as [CWE-94] reflects the direct execution of attacker-controlled code.

Successful exploitation yields code execution under the operating system account running Langflow. Attackers can read environment variables containing API keys for OpenAI, Anthropic, vector databases, and cloud services, pivot into adjacent systems, or stage further payloads. See the GitHub Issue Discussion for upstream details.

Root Cause

The root cause is unsafe dynamic evaluation of user-supplied source code. The custom component loader compiles and executes the submitted script to introspect its class definition, instead of parsing it statically or executing it inside an isolated interpreter. Missing authentication on the endpoint compounds the design flaw.

Attack Vector

Exploitation is performed over the network with a single HTTP POST request. The attacker sends a JSON body containing a Python payload to /api/v1/custom_component. The payload can be a minimal class definition whose module-level statements perform actions such as spawning a reverse shell, writing files, or exfiltrating secrets through outbound HTTP requests. No user interaction or prior authentication is required when the instance is deployed with default settings.

No verified public proof-of-concept code is referenced in the NVD entry. Technical context is available in the upstream GitHub Issue Discussion.

Detection Methods for CVE-2024-37014

Indicators of Compromise

  • HTTP POST requests to /api/v1/custom_component from unexpected source IP addresses or external networks
  • Langflow process spawning child processes such as sh, bash, python, curl, or wget
  • Outbound network connections initiated by the Langflow container or service to unknown hosts
  • New or modified files in the Langflow working directory or user home directory that were not introduced by deployment automation

Detection Strategies

  • Inspect web server and reverse proxy logs for POST requests to /api/v1/custom_component, correlating source IP, request size, and authentication state
  • Alert on process lineage where the Langflow Python interpreter spawns shell utilities or network clients
  • Monitor for unexpected outbound connections from hosts running Langflow, particularly to non-LLM-provider destinations

Monitoring Recommendations

  • Enable verbose API access logging on Langflow and any fronting proxy, retaining request paths and source addresses
  • Forward Langflow application and host telemetry to a centralized analytics platform for behavioral correlation
  • Baseline normal Langflow child-process and network behavior, then alert on deviations such as new outbound destinations or interactive shells

How to Mitigate CVE-2024-37014

Immediate Actions Required

  • Upgrade Langflow to a fixed release beyond 0.6.19 as published by the maintainers
  • Remove direct exposure of the Langflow API from the public internet and place it behind an authenticating reverse proxy
  • Rotate any API keys, tokens, and credentials accessible from the Langflow host, since these may have been exposed
  • Audit historical access logs for prior POST requests to /api/v1/custom_component

Patch Information

The NVD record identifies Langflow versions up to 0.6.19 as vulnerable. Refer to the Langflow GitHub repository and the linked GitHub Issue Discussion for the fixed version and release notes. Apply the upgrade across all self-hosted and containerized deployments.

Workarounds

  • Restrict network access to the Langflow API using firewall rules, security groups, or service mesh policies so that only trusted internal clients can reach it
  • Place Langflow behind an authenticating gateway that enforces strong identity controls on every request
  • Run Langflow as a non-privileged user inside an isolated container with read-only file systems and egress filtering to limit blast radius if exploited
bash
# Example: restrict Langflow API access to an internal CIDR with iptables
iptables -A INPUT -p tcp --dport 7860 -s 10.0.0.0/8 -j ACCEPT
iptables -A INPUT -p tcp --dport 7860 -j DROP

# Example: block the vulnerable endpoint at an nginx reverse proxy
# location = /api/v1/custom_component {
#     deny all;
#     return 403;
# }

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechLangflow

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability5.96%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • NVD-CWE-noinfo

  • CWE-94
  • Technical References
  • GitHub Issue Discussion
  • Related CVEs
  • CVE-2026-33873: Langflow Agentic Assistant RCE Vulnerability

  • CVE-2026-33017: Langflow Langflow RCE Vulnerability

  • CVE-2026-33309: Langflow Arbitrary File Write RCE Flaw

  • CVE-2026-33475: Langflow GitHub Actions RCE Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English