Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-2025-54416

CVE-2025-54416: tj-actions/branch-names RCE Vulnerability

CVE-2025-54416 is a remote code execution vulnerability in tj-actions/branch-names GitHub Action that enables arbitrary command execution through malicious branch names. This article covers technical details, affected versions, and mitigation.

Published: April 8, 2026

CVE-2025-54416 Overview

CVE-2025-54416 is a critical command injection vulnerability discovered in the tj-actions/branch-names GitHub Action, a widely-used workflow component that retrieves branch or tag names with support for all GitHub events. In versions 8.2.1 and below, a fundamental flaw in input sanitization enables arbitrary command execution in downstream workflows. The vulnerability stems from inconsistent input sanitization and unescaped output, allowing malicious actors to exploit specially crafted branch names or tags to execute arbitrary commands within CI/CD pipelines.

Critical Impact

This vulnerability enables attackers to execute arbitrary commands in downstream workflows by crafting malicious branch or tag names, potentially compromising CI/CD pipelines, exposing secrets, and enabling supply chain attacks.

Affected Products

  • tj-actions/branch-names versions 8.2.1 and below
  • GitHub Actions workflows consuming tj-actions/branch-names outputs
  • CI/CD pipelines using vulnerable versions of the action

Discovery Timeline

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

Technical Details for CVE-2025-54416

Vulnerability Analysis

This command injection vulnerability (CWE-77) exists in the tj-actions/branch-names GitHub Action due to a critical gap between internal sanitization mechanisms and the handling of action outputs. While the action implements some internal sanitization, the outputs passed to consuming workflows remain vulnerable to injection attacks. This creates a dangerous scenario where downstream workflows implicitly trust the action's outputs and use them in shell commands or workflow expressions without additional validation.

The attack surface is particularly concerning in the GitHub Actions context because branch and tag names are often user-controlled inputs in open-source repositories. An attacker with repository write access or the ability to create pull requests from forks could craft a branch name containing shell metacharacters or command substitution syntax that gets executed when the consuming workflow processes the unsanitized output.

Root Cause

The root cause is inconsistent input sanitization combined with unescaped output handling. The tj-actions/branch-names action retrieves branch or tag names from GitHub event contexts and provides them as outputs for downstream workflows. While internal processing may apply some sanitization, the final outputs exposed to consuming workflows do not properly escape or neutralize shell-significant characters. This allows specially crafted branch names containing shell metacharacters (such as backticks, $() command substitution, semicolons, or pipe characters) to be interpreted as commands when used in shell contexts.

Attack Vector

The attack vector is network-based and requires low privileges to execute. An attacker can exploit this vulnerability by:

  1. Creating a branch or tag with a malicious name containing shell injection payloads
  2. Triggering a workflow that uses the vulnerable tj-actions/branch-names action
  3. The action outputs the unsanitized branch name to consuming workflows
  4. Downstream workflows that use the output in shell commands or run steps execute the injected commands

The vulnerability allows for changed scope, meaning a successful exploit in one workflow can impact resources and secrets accessible to other workflows or the broader CI/CD environment. This includes potential access to repository secrets, deployment credentials, and the ability to modify build artifacts.

The malicious branch name could contain payloads that exfiltrate environment variables and secrets, modify source code or build outputs, establish persistence through workflow modifications, or pivot to connected systems using compromised credentials. Organizations using this action in automated pipelines for deployments are at heightened risk of supply chain compromise.

Detection Methods for CVE-2025-54416

Indicators of Compromise

  • Unexpected workflow runs triggered by branches with unusual naming patterns containing shell metacharacters
  • Repository secrets or environment variables appearing in workflow logs or external locations
  • Anomalous outbound network connections from GitHub Actions runners
  • Unexpected modifications to workflow files or repository contents following branch creation events

Detection Strategies

  • Audit GitHub Actions workflows for usage of tj-actions/branch-names at versions 8.2.1 or below
  • Monitor repository activity for branch or tag names containing suspicious characters such as backticks, $(), semicolons, or pipe symbols
  • Review workflow run logs for unexpected command execution patterns or error messages indicating injection attempts
  • Implement GitHub Advanced Security code scanning to detect vulnerable action versions in workflow files

Monitoring Recommendations

  • Enable GitHub audit logs and monitor for unusual workflow execution patterns
  • Configure alerts for new branches or tags with names matching shell injection patterns
  • Monitor for workflow runs that access secrets unexpectedly or exhibit anomalous behavior
  • Implement workflow run monitoring to detect unusual execution times or resource usage indicative of malicious activity

How to Mitigate CVE-2025-54416

Immediate Actions Required

  • Upgrade tj-actions/branch-names to version 9.0.0 or later immediately across all repositories
  • Audit all workflow files that consume outputs from tj-actions/branch-names for proper input validation
  • Review recent workflow runs for any signs of exploitation, particularly those triggered by unusually named branches
  • Rotate any secrets that may have been exposed in workflows using the vulnerable action version

Patch Information

The vulnerability has been addressed in tj-actions/branch-names version 9.0.0. The fix implements proper output escaping and sanitization to prevent command injection through crafted branch or tag names. The security patch is available through the GitHub Release v9.0.0. Technical details of the fix can be reviewed in the associated commit. Additional context and security guidance is available in the GitHub Security Advisory GHSA-gq52-6phf-x2r6.

Workarounds

  • Pin the action to a specific commit hash of version 9.0.0 or later to prevent unintended version changes
  • Implement additional input validation in consuming workflows by sanitizing any outputs before use in shell commands
  • Use GitHub's built-in environment variable escaping mechanisms when passing branch names to shell contexts
  • Consider implementing branch name policies that reject names containing shell metacharacters at the repository level
bash
# Update action reference in workflow files
# Replace vulnerable versions:
# uses: tj-actions/branch-names@v8.2.1
# With the patched version:
# uses: tj-actions/branch-names@v9.0.0
# Or pin to the specific secure commit:
# uses: tj-actions/branch-names@e497ceb8ccd43fd9573cf2e375216625bc411d1f

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechTj Actions

  • SeverityCRITICAL

  • CVSS Score9.1

  • EPSS Probability0.13%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:L
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-77
  • Technical References
  • GitHub Commit Note

  • GitHub Release v9.0.0

  • GitHub Security Advisory GHSA-gq52-6phf-x2r6
  • Latest CVEs
  • CVE-2025-49454: TinySalt Path Traversal Vulnerability

  • CVE-2025-48261: MultiVendorX Information Disclosure Flaw

  • CVE-2025-32119: CardGate WooCommerce SQL Injection Flaw

  • CVE-2025-26879: s2Member Plugin Reflected XSS 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