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-2026-40861

CVE-2026-40861: Apache Airflow Path Traversal Vulnerability

CVE-2026-40861 is a path traversal flaw in Apache Airflow that allows attackers to read or overwrite arbitrary files via symlinks or malicious task IDs. This article covers technical details, affected versions, and mitigations.

Published: June 4, 2026

CVE-2026-40861 Overview

CVE-2026-40861 is a path traversal and symlink vulnerability in Apache Airflow's FileTaskHandler component. A DAG author can abuse two attack paths against deployments where the worker log folder is shared with the API server. In the read-path attack, the author creates a symbolic link under the task's log directory that points to an arbitrary file readable by the API server process, such as /etc/passwd or airflow.cfg. In the write-path attack, the author supplies a task_id containing .. sequences that are accepted by the Task SDK's KEY_REGEX. In both cases, the resolved log path escapes the configured base_log_folder, leaking or overwriting arbitrary files. The flaw is tracked under CWE-59 (Improper Link Resolution Before File Access).

Critical Impact

Authenticated DAG authors can read sensitive files like airflow.cfg or overwrite arbitrary files accessible to the API server process when worker and API server share a log volume.

Affected Products

  • Apache Airflow versions prior to 3.2.2
  • Deployments where the worker log folder is shared with the API server
  • Components: FileTaskHandler and Task SDK KEY_REGEX validation

Discovery Timeline

  • 2026-06-01 - CVE-2026-40861 published to NVD
  • 2026-06-02 - Last updated in NVD database

Technical Details for CVE-2026-40861

Vulnerability Analysis

The vulnerability resides in how Apache Airflow's FileTaskHandler constructs and resolves log file paths. The handler builds paths by combining the configured base_log_folder with attacker-influenced components such as task_id and on-disk directory entries. The code does not validate that the resolved path remains within base_log_folder and does not reject symbolic links. When the worker and API server share the same log volume, paths created or staged by a worker are later opened by the API server, granting the attacker reach into the API server's filesystem context.

Root Cause

Two input validation gaps drive the issue. First, the Task SDK's KEY_REGEX permits task_id values that contain .. sequences, enabling directory traversal during write operations. Second, the FileTaskHandler follows symbolic links inside the worker-controlled log directory without performing a canonical-path check against base_log_folder. The combination allows file reads outside the intended directory and writes to attacker-chosen locations.

Attack Vector

Exploitation requires DAG authoring privileges, which qualifies as low-privilege authenticated access over the network. In the read-path scenario, the DAG author plants a symlink inside the task log directory pointing to a sensitive file, then triggers the API server to render task logs, returning the linked file contents. In the write-path scenario, the author defines a task with a task_id containing .. segments, causing FileTaskHandler to write log content to a path outside base_log_folder. Impact is confined to deployments where the worker and API server share a log volume.

Detection Methods for CVE-2026-40861

Indicators of Compromise

  • Symbolic links present under task log directories that resolve outside of base_log_folder
  • DAG definitions or task metadata containing task_id values with .. sequences
  • API server log render requests returning content from files such as /etc/passwd or airflow.cfg
  • Unexpected file modifications on the API server filesystem with timestamps correlated to task execution

Detection Strategies

  • Audit the base_log_folder tree for symbolic links and flag any whose targets fall outside the configured directory
  • Inspect Airflow metadata and DAG source for task_id values containing .., /, or other traversal characters
  • Correlate API server file access events with worker task execution to surface anomalous file reads triggered by log rendering

Monitoring Recommendations

  • Enable filesystem auditing (auditd or equivalent) on the shared log volume and alert on symlink creation events
  • Log and review all DAG submissions, focusing on author identity and structural fields like task_id
  • Monitor API server process file opens for paths outside base_log_folder

How to Mitigate CVE-2026-40861

Immediate Actions Required

  • Upgrade apache-airflow to version 3.2.2 or later across all worker and API server nodes
  • Inventory all DAG authors and review recent DAGs for symlinks or suspicious task_id values
  • Restrict DAG authoring privileges to trusted users until the upgrade is complete

Patch Information

Apache Airflow 3.2.2 contains the fix. The patch tightens KEY_REGEX in the Task SDK to reject .. sequences and adds canonical-path validation in FileTaskHandler so resolved log paths must remain within base_log_folder. Patch details are available in the Apache Airflow GitHub Pull Request #65325 and the Apache Mailing List Thread.

Workarounds

  • Deploy the worker and API server with separate log volumes so worker-controlled paths cannot reach the API server filesystem
  • Mount the API server's view of the log directory read-only where operationally feasible
  • Disable or scrub symbolic links in base_log_folder on a scheduled basis until patched
  • Enforce DAG review and code signing workflows to catch malicious task_id definitions before deployment

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

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechApache Airflow

  • SeverityMEDIUM

  • CVSS Score6.5

  • EPSS Probability0.09%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-59
  • Technical References
  • Open Wall OSS Security Post
  • Vendor Resources
  • GitHub Pull Request

  • Apache Mailing List Thread
  • Related CVEs
  • CVE-2026-42359: Apache Airflow RCE Vulnerability

  • CVE-2026-45360: Apache Airflow RCE Vulnerability

  • CVE-2026-48726: Apache Airflow Auth Bypass Vulnerability

  • CVE-2026-49267: Apache Airflow Information Disclosure Flaw
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