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-2025-54415

CVE-2025-54415: Apache Airflow dag-factory RCE Vulnerability

CVE-2025-54415 is a remote code execution vulnerability in dag-factory for Apache Airflow that allows attackers to execute arbitrary code in GitHub Actions runners. This article covers technical details, affected versions, and mitigation.

Published: April 1, 2026

CVE-2025-54415 Overview

A critical command injection vulnerability has been identified in dag-factory, a library for Apache Airflow® that enables declarative DAG (Directed Acyclic Graph) construction via configuration files. The vulnerability exists in the cicd.yml workflow within the astronomer/dag-factory GitHub repository. When triggered by pull_request_target events, the workflow is susceptible to exploitation, allowing attackers to execute arbitrary code within the GitHub Actions runner environment.

This misconfiguration enables malicious actors to establish reverse shells, exfiltrate sensitive secrets including the highly-privileged GITHUB_TOKEN, and ultimately gain full control over the repository. The vulnerability represents a significant supply chain risk as compromised repositories can be leveraged to distribute malicious code to downstream users.

Critical Impact

Attackers can achieve arbitrary code execution in the GitHub Actions runner, exfiltrate sensitive secrets including GITHUB_TOKEN, and gain full control over the dag-factory repository, potentially compromising the entire software supply chain.

Affected Products

  • dag-factory versions 0.23.0a8 and below
  • astronomer/dag-factory GitHub repository CI/CD workflows

Discovery Timeline

  • 2025-07-26 - CVE-2025-54415 published to NVD
  • 2025-07-29 - Last updated in NVD database

Technical Details for CVE-2025-54415

Vulnerability Analysis

This vulnerability falls under CWE-78 (Improper Neutralization of Special Elements used in an OS Command), commonly known as OS Command Injection. The flaw resides in the GitHub Actions workflow configuration file cicd.yml within the dag-factory repository.

The pull_request_target trigger in GitHub Actions runs in the context of the base repository rather than the fork, providing access to repository secrets and write permissions. When improperly configured, this trigger can allow code from untrusted pull requests to be executed with elevated privileges.

An attacker can exploit this vulnerability by submitting a malicious pull request that manipulates the workflow execution. Since the workflow runs with access to the repository's GITHUB_TOKEN and potentially other secrets, successful exploitation grants the attacker significant control over the repository infrastructure.

Root Cause

The root cause stems from insecure GitHub Actions workflow configuration. The pull_request_target trigger was designed to allow workflows to have write access to the target repository, but when combined with checkouts of untrusted code from the pull request head or execution of commands derived from pull request content, it creates an injection vector.

The workflow failed to properly sanitize or isolate execution of code from external contributors, allowing malicious payloads submitted via pull requests to execute within the trusted runner environment with access to sensitive secrets.

Attack Vector

The attack leverages the network-accessible nature of GitHub's pull request functionality. An attacker can:

  1. Fork the dag-factory repository
  2. Modify workflow-related files or code that gets executed during CI/CD
  3. Submit a pull request to the upstream repository
  4. The pull_request_target workflow executes with access to repository secrets
  5. Malicious code executes, potentially establishing a reverse shell or exfiltrating the GITHUB_TOKEN

With the compromised GITHUB_TOKEN, attackers can push malicious commits, create releases, modify repository settings, or access other secrets stored in the repository.

The vulnerability does not require any user interaction beyond the normal pull request review process, and exploitation can occur before maintainers have an opportunity to review the malicious code.

Detection Methods for CVE-2025-54415

Indicators of Compromise

  • Unexpected or unauthorized commits in the dag-factory repository history
  • Suspicious GitHub Actions workflow runs, particularly those initiated by external pull requests
  • Unusual network connections from GitHub Actions runners (reverse shell indicators)
  • Unexpected changes to repository secrets or permissions
  • New or modified workflow files with obfuscated or suspicious commands

Detection Strategies

  • Monitor GitHub Actions audit logs for workflow runs triggered by pull_request_target events from external contributors
  • Review GitHub Actions runner logs for unusual command executions or network connections
  • Implement repository rulesets to require approval for workflow runs from first-time contributors
  • Enable GitHub's secret scanning and push protection features
  • Configure alerts for changes to workflow files in the .github/workflows/ directory

Monitoring Recommendations

  • Enable GitHub Advanced Security features including code scanning and secret scanning
  • Configure SIEM integration with GitHub audit logs to detect anomalous CI/CD activity
  • Set up notifications for any modifications to workflow configuration files
  • Regularly audit repository access permissions and review recent workflow executions
  • Monitor for unauthorized releases or package publications

How to Mitigate CVE-2025-54415

Immediate Actions Required

  • Upgrade dag-factory to version 0.23.0a9 or later immediately
  • Review recent pull requests and workflow runs for signs of exploitation
  • Rotate any secrets that may have been exposed, including the GITHUB_TOKEN
  • Audit repository commit history for unauthorized changes
  • Enable required approvals for workflow runs from external contributors

Patch Information

The vulnerability has been fixed in dag-factory version 0.23.0a9. The fix is documented in GitHub Security Advisory GHSA-g5hx-xv45-9whg. The specific fix was implemented in commit 751c0e5.

Additional context is available in Pull Request #460 and Pull Request #466.

Organizations using dag-factory should immediately update to the patched version and review their GitHub Actions workflow configurations for similar vulnerabilities.

Workarounds

  • Restrict workflow permissions using the permissions key to grant only necessary access
  • Configure pull_request_target workflows to avoid checking out or executing untrusted code from pull request heads
  • Enable GitHub's "Require approval for first-time contributors" setting for Actions
  • Use environment protection rules to require manual approval for sensitive workflow jobs
  • Consider using pull_request trigger instead of pull_request_target where elevated permissions are not required
bash
# Example: Review and update dag-factory version
pip install --upgrade dag-factory>=0.23.0a9

# Verify installed version
pip show dag-factory | grep Version

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechDag Factory

  • SeverityCRITICAL

  • CVSS Score9.1

  • EPSS Probability0.15%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:U/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-78
  • Technical References
  • GitHub Commit Changes

  • GitHub Pull Request #460

  • GitHub Pull Request #466

  • GitHub Security Advisory GHSA-g5hx-xv45-9whg
  • Latest CVEs
  • CVE-2025-70797: LimeSurvey XSS Vulnerability

  • CVE-2025-30650: Juniper Junos OS Auth Bypass Vulnerability

  • CVE-2026-35471: Goshs Path Traversal Vulnerability

  • CVE-2026-35393: Goshs Path Traversal Vulnerability
Default Legacy - Prefooter | 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