banner logoJoin us at RSAC™ 2026 Conference, March 23–March 26 | North Expo, Booth N-5863Join us at RSAC™ 2026, March 23–March 26Learn More
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI Security Portfolio
      Leading the Way in AI-Powered Security Solutions
    • 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
    • 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
      Digital Forensics, IRR & Breach Readiness
    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
    • 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-2026-0771

CVE-2026-0771: Langflow PythonFunction RCE Vulnerability

CVE-2026-0771 is a remote code execution vulnerability in Langflow's PythonFunction component that allows attackers to inject and execute arbitrary Python code. This article covers technical details, affected versions, and mitigation.

Published: January 30, 2026

CVE-2026-0771 Overview

CVE-2026-0771 is a code injection vulnerability affecting Langflow, a popular platform for building AI workflows. This vulnerability allows remote attackers to execute arbitrary code on affected installations by exploiting improper handling of Python function components within workflows. The attack vectors and exploitability will vary depending on the specific configuration of the product deployment.

The vulnerability exists within the handling of Python function components. Depending on product configuration, an attacker may be able to introduce custom Python code into a workflow, which is then executed by the application. An attacker can leverage this vulnerability to execute code in the context of the application, potentially leading to full system compromise.

Critical Impact

Remote code execution through malicious Python code injection in Langflow workflows, enabling attackers to execute arbitrary commands in the application context.

Affected Products

  • Langflow (specific affected versions not disclosed)

Discovery Timeline

  • January 23, 2026 - CVE-2026-0771 published to NVD
  • January 26, 2026 - Last updated in NVD database

Technical Details for CVE-2026-0771

Vulnerability Analysis

This vulnerability is classified as CWE-94 (Improper Control of Generation of Code, also known as Code Injection). The flaw allows attackers to inject and execute arbitrary Python code through the PythonFunction component handling mechanism in Langflow.

The vulnerability requires network access and authenticated access to the Langflow instance. User interaction is also required for successful exploitation. Despite these prerequisites, the potential impact is significant—successful exploitation grants attackers full control over confidentiality, integrity, and availability of the affected system.

The vulnerability was reported through the Zero Day Initiative program as ZDI-CAN-27497 and assigned the advisory identifier ZDI-26-037.

Root Cause

The root cause of CVE-2026-0771 lies in insufficient input validation and sanitization when processing Python function components within Langflow workflows. The application fails to properly restrict or sandbox the execution of user-supplied Python code, allowing malicious code to be executed with the privileges of the application process.

When users define or modify Python function components in workflows, the application does not adequately validate or isolate the code being executed, creating an avenue for code injection attacks.

Attack Vector

The attack vector for this vulnerability is network-based, requiring authenticated access to a Langflow installation. An attacker with valid credentials or access to the workflow builder functionality can craft malicious Python code within a PythonFunction component.

The exploitation process involves injecting arbitrary Python code into a workflow component. When the workflow containing the malicious component is executed, the injected code runs in the context of the Langflow application, potentially allowing the attacker to read sensitive data, modify system configurations, install backdoors, or pivot to other systems on the network.

The specific exploitation method involves crafting malicious input within Python function components that bypass any existing sanitization measures. For detailed technical analysis, refer to the Zero Day Initiative advisory ZDI-26-037.

Detection Methods for CVE-2026-0771

Indicators of Compromise

  • Unusual Python code patterns within Langflow workflow definitions, particularly in PythonFunction components
  • Unexpected outbound network connections originating from the Langflow application process
  • Anomalous system calls or child processes spawned by the Langflow service
  • Suspicious modifications to workflow configurations by unauthorized or unexpected users

Detection Strategies

  • Monitor Langflow application logs for unusual workflow modifications or execution patterns
  • Implement code review processes for any Python functions added to workflows
  • Deploy endpoint detection and response (EDR) solutions to identify suspicious process behavior from the Langflow service
  • Use web application firewalls (WAF) to detect and block potential code injection attempts in API requests

Monitoring Recommendations

  • Enable verbose logging for workflow creation and modification events
  • Monitor for unusual authentication patterns or access to workflow builder functionality
  • Implement real-time alerting for any processes spawned by the Langflow application
  • Review audit logs for unexpected changes to PythonFunction components

How to Mitigate CVE-2026-0771

Immediate Actions Required

  • Restrict access to Langflow workflow builder functionality to trusted users only
  • Implement network segmentation to isolate Langflow instances from critical systems
  • Review and audit all existing workflows for suspicious Python code in function components
  • Consider temporarily disabling PythonFunction component creation until patches are applied

Patch Information

Organizations should monitor the official Langflow project and the Zero Day Initiative advisory ZDI-26-037 for patch availability and updated remediation guidance. Apply security patches as soon as they become available from the vendor.

Workarounds

  • Implement strict access controls limiting who can create or modify workflows containing Python function components
  • Deploy application-level sandboxing to isolate code execution within workflows
  • Use network-level controls to restrict outbound connections from the Langflow application
  • Enable enhanced logging and monitoring for all workflow execution activities
bash
# Configuration example - Restrict Langflow access to trusted networks only
# Example iptables rules to limit access to Langflow service
iptables -A INPUT -p tcp --dport 7860 -s 10.0.0.0/8 -j ACCEPT
iptables -A INPUT -p tcp --dport 7860 -j DROP

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechLangflow

  • SeverityHIGH

  • CVSS Score7.1

  • EPSS Probability0.20%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.0/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-94
  • Technical References
  • Zero Day Initiative Advisory ZDI-26-037
  • Related CVEs
  • CVE-2026-27966: Langflow CSV Agent Node RCE Vulnerability

  • CVE-2026-0770: Langflow exec_globals RCE Vulnerability

  • CVE-2026-0769: Langflow eval_custom_component_code RCE Flaw

  • CVE-2026-0772: Langflow Deserialization RCE Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now 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
  • English
  • 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