The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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
    • 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-2026-33309

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

CVE-2026-33309 is a critical arbitrary file write vulnerability in Langflow versions 1.2.0 to 1.8.1 that enables remote code execution. This article covers the technical details, affected versions, impact, and mitigation.

Published: March 27, 2026

CVE-2026-33309 Overview

CVE-2026-33309 is a critical Path Traversal vulnerability affecting Langflow, a popular tool for building and deploying AI-powered agents and workflows. This vulnerability represents a bypass of the patch for CVE-2025-68478 (External Control of File Name), exposing a root architectural issue within the LocalStorageService component that remained unresolved.

The vulnerability stems from the underlying storage layer lacking boundary containment checks, causing the system to rely entirely on the HTTP-layer ValidatedFileName dependency. This defense-in-depth failure leaves the POST /api/v2/files/ endpoint vulnerable to Arbitrary File Write. The multipart upload filename bypasses the path-parameter guard, allowing authenticated attackers to write files anywhere on the host system, ultimately leading to Remote Code Execution (RCE).

Critical Impact

Authenticated attackers can achieve arbitrary file write and remote code execution on systems running vulnerable Langflow versions by exploiting the POST /api/v2/files/ endpoint through path traversal in multipart upload filenames.

Affected Products

  • Langflow versions 1.2.0 through 1.8.1
  • Systems with exposed Langflow API endpoints
  • AI workflow deployments using vulnerable Langflow installations

Discovery Timeline

  • 2026-03-24 - CVE-2026-33309 published to NVD
  • 2026-03-24 - Last updated in NVD database

Technical Details for CVE-2026-33309

Vulnerability Analysis

This vulnerability is classified as CWE-22 (Improper Limitation of a Pathname to a Restricted Directory - Path Traversal). The flaw exists because the original patch for CVE-2025-68478 only addressed the symptom at the HTTP validation layer without resolving the fundamental architectural weakness in the LocalStorageService.

The LocalStorageService component fails to perform proper boundary containment checks on file paths, meaning any bypass of the front-end validation allows attackers to write files to arbitrary locations on the filesystem. Since the security model depended solely on the ValidatedFileName dependency at the HTTP layer, the multipart upload mechanism provides an alternative attack surface that circumvents this protection entirely.

When exploited, authenticated users can craft malicious filenames in multipart form data that traverse directory boundaries, enabling file writes to sensitive system locations. This can be leveraged to achieve Remote Code Execution by overwriting configuration files, injecting malicious scripts into web-accessible directories, or manipulating application logic files.

Root Cause

The root cause is an incomplete defense-in-depth implementation in Langflow's file handling architecture. The LocalStorageService accepts file paths from upstream components without performing independent path validation or containment checks. The reliance on a single validation point (ValidatedFileName at the HTTP layer) created a single point of failure. When the multipart upload handler passed filenames directly to the storage service, the path-parameter guard was effectively bypassed, exposing the underlying path traversal vulnerability.

Attack Vector

The attack requires network access and authentication to the Langflow API. An authenticated attacker can exploit this vulnerability by:

  1. Crafting a malicious HTTP POST request to the /api/v2/files/ endpoint
  2. Including a multipart form upload with a specially crafted filename containing path traversal sequences (e.g., ../../../etc/cron.d/malicious)
  3. The malicious filename bypasses the path-parameter validation guard
  4. The LocalStorageService writes the uploaded content to the attacker-specified location
  5. Depending on the target path, this enables RCE through cron jobs, SSH keys, web shells, or other persistence mechanisms

The vulnerability exploits the disconnect between the HTTP-layer validation and the storage service's trust assumptions. For detailed technical information, see the GitHub Security Advisory.

Detection Methods for CVE-2026-33309

Indicators of Compromise

  • Unusual file creation or modification in system directories outside the Langflow data directory
  • Web server logs showing POST requests to /api/v2/files/ with filenames containing ../ or encoded path traversal sequences
  • New files appearing in sensitive locations such as /etc/cron.d/, ~/.ssh/, or web root directories
  • Unexpected cron jobs or scheduled tasks on systems running Langflow

Detection Strategies

  • Monitor HTTP access logs for requests to /api/v2/files/ containing path traversal patterns such as ../, ..%2f, or ..%252f
  • Implement file integrity monitoring (FIM) on critical system directories to detect unauthorized file writes
  • Deploy web application firewall (WAF) rules to block multipart requests with suspicious filename patterns
  • Review Langflow application logs for file upload events with paths outside expected directories

Monitoring Recommendations

  • Enable verbose logging for the Langflow API to capture complete request details including multipart filenames
  • Configure SIEM rules to alert on path traversal patterns in file upload endpoints
  • Establish baseline file activity monitoring on Langflow server hosts to detect anomalous file system operations
  • Monitor for process execution from unexpected locations that may indicate successful RCE

How to Mitigate CVE-2026-33309

Immediate Actions Required

  • Upgrade Langflow to version 1.9.0 or later immediately
  • Audit systems running vulnerable versions for signs of compromise, particularly unexpected files in system directories
  • Restrict network access to Langflow API endpoints to trusted networks only
  • Review and rotate credentials for any accounts with access to the vulnerable endpoint

Patch Information

The vulnerability has been addressed in Langflow version 1.9.0, which contains an updated fix that properly implements boundary containment checks at the storage layer. Organizations should upgrade to this version as soon as possible. The fix is documented in the GitHub Security Advisory.

Workarounds

  • If immediate patching is not possible, implement a reverse proxy or WAF rule to block requests to /api/v2/files/ containing path traversal sequences in any part of the request
  • Restrict filesystem permissions for the Langflow service account to limit the impact of arbitrary file writes
  • Consider running Langflow in a containerized environment with strict volume mounts to contain potential file write damage
  • Temporarily disable file upload functionality if it is not critical to operations until the patch can be applied
bash
# Example: Restrict Langflow service account permissions
# Create dedicated user with limited filesystem access
useradd -r -s /bin/false langflow-service
chown -R langflow-service:langflow-service /opt/langflow/data
chmod 750 /opt/langflow/data

# Run Langflow with restricted permissions
sudo -u langflow-service langflow run --host 127.0.0.1 --port 7860

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.9

  • EPSS Probability0.07%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-22
  • Vendor Resources
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-33017: Langflow Langflow RCE Vulnerability

  • CVE-2026-33475: Langflow GitHub Actions RCE Vulnerability

  • CVE-2026-27966: Langflow CSV Agent Node RCE Vulnerability

  • CVE-2026-0770: Langflow exec_globals 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
  • 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