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

CVE-2026-34041: GitHub Actions Runner (act) RCE Vulnerability

CVE-2026-34041 is a remote code execution flaw in act, a tool for running GitHub Actions locally. Attackers can inject workflow commands to control environment variables and execution paths. This article covers technical details, affected versions, impact assessment, and mitigation strategies.

Published: April 2, 2026

CVE-2026-34041 Overview

CVE-2026-34041 is an environment injection vulnerability affecting act, a popular open-source project that enables local execution of GitHub Actions workflows. Prior to version 0.2.86, the application unconditionally processes deprecated ::set-env:: and ::add-path:: workflow commands that were disabled in the official GitHub Actions runner due to known environment injection risks.

When a workflow step echoes untrusted data to stdout, an attacker can inject these commands to set arbitrary environment variables or modify the PATH for all subsequent steps in the job. This can lead to arbitrary code execution, credential theft, or supply chain compromise in CI/CD pipelines.

Critical Impact

Attackers can inject malicious environment variables and PATH modifications through untrusted workflow data, potentially compromising the entire CI/CD pipeline and enabling arbitrary code execution.

Affected Products

  • nektos/act versions prior to 0.2.86
  • Local GitHub Actions runners using vulnerable act versions
  • CI/CD pipelines leveraging act for local workflow testing

Discovery Timeline

  • 2026-03-31 - CVE-2026-34041 published to NVD
  • 2026-04-02 - Last updated in NVD database

Technical Details for CVE-2026-34041

Vulnerability Analysis

This vulnerability falls under CWE-74 (Improper Neutralization of Special Elements in Output Used by a Downstream Component), commonly referred to as an injection vulnerability. The root issue stems from act's processing of deprecated GitHub Actions workflow commands that were intentionally disabled in the official runner due to security concerns.

GitHub Actions originally supported ::set-env:: and ::add-path:: commands that allowed workflows to dynamically set environment variables and modify the PATH. These commands were deprecated and disabled in November 2020 due to the inherent risk of environment injection when workflows process untrusted input. However, the act project continued to process these commands unconditionally.

The vulnerability can be exploited through network-accessible vectors when untrusted data flows through workflow steps. An attacker who can influence the data being echoed to stdout during workflow execution can craft malicious payloads that inject arbitrary environment variables or prepend malicious directories to the PATH, affecting all subsequent steps in the job.

Root Cause

The root cause is the unconditional processing of deprecated ::set-env:: and ::add-path:: workflow commands in act's command parsing logic. Unlike the official GitHub Actions runner, which disabled these commands due to security risks, act continued to honor them without validation or opt-in requirements. This design flaw allows malicious actors to manipulate the execution environment when untrusted data is echoed during workflow steps.

Attack Vector

The attack vector is network-based and requires some user interaction or specific conditions to trigger. An attacker can exploit this vulnerability by:

  1. Identifying a workflow that processes untrusted external data (e.g., pull request titles, issue comments, webhook payloads)
  2. Crafting malicious input containing the deprecated workflow commands
  3. Having this input echoed to stdout during workflow execution
  4. The injected commands then modify environment variables or PATH for subsequent steps

For example, if a workflow echoes user-controlled data without sanitization, an attacker could inject ::set-env name=SECRET::malicious_value or ::add-path::/attacker/controlled/path to compromise the execution environment.

The exploitation mechanism involves workflow command injection through stdout processing. When act parses the output of a workflow step, it interprets lines matching the ::command:: pattern and executes them. By injecting these patterns into the stdout stream, attackers can set arbitrary environment variables that persist across subsequent steps or prepend malicious directories to the PATH, enabling execution of attacker-controlled binaries. For detailed technical analysis, see the GitHub Security Advisory GHSA-xmgr-9pqc-h5vw.

Detection Methods for CVE-2026-34041

Indicators of Compromise

  • Presence of ::set-env:: or ::add-path:: patterns in workflow logs or stdout
  • Unexpected environment variable changes between workflow steps
  • Modified PATH variables pointing to non-standard directories
  • Execution of binaries from unexpected locations during workflow runs

Detection Strategies

  • Monitor workflow logs for deprecated command patterns (::set-env::, ::add-path::)
  • Implement log analysis rules to detect injection patterns in CI/CD pipeline outputs
  • Review workflow configurations that process external or untrusted data sources
  • Audit act version deployments to identify vulnerable instances below 0.2.86

Monitoring Recommendations

  • Enable verbose logging for act executions to capture all command processing
  • Implement alerting on environment variable modifications during workflow execution
  • Monitor for unusual PATH changes or binary executions in CI/CD environments
  • Review audit logs for workflows processing untrusted external inputs

How to Mitigate CVE-2026-34041

Immediate Actions Required

  • Upgrade act to version 0.2.86 or later immediately
  • Audit existing workflows that process untrusted external data
  • Review workflow logs for signs of exploitation or injection attempts
  • Implement input sanitization for any data echoed to stdout in workflows

Patch Information

The vulnerability has been patched in act version 0.2.86. The fix disables processing of the deprecated ::set-env:: and ::add-path:: workflow commands, aligning act's behavior with the official GitHub Actions runner security posture.

For detailed information about the patch, see the GitHub Commit Details and download the patched version from the GitHub Release v0.2.86.

Workarounds

  • Sanitize all untrusted input before echoing to stdout in workflow steps
  • Use environment files ($GITHUB_ENV, $GITHUB_PATH) instead of deprecated stdout commands
  • Implement strict input validation for workflows processing external data
  • Consider isolating act executions in sandboxed environments until patching is complete
bash
# Upgrade act to patched version
# Using go install
go install github.com/nektos/act@v0.2.86

# Using homebrew
brew upgrade act

# Verify installed version
act --version
# Should show: act version 0.2.86 or higher

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechAct

  • SeverityHIGH

  • CVSS Score7.7

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/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
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-74
  • Technical References
  • GitHub Commit Details

  • GitHub Release v0.2.86

  • GitHub Security Advisory GHSA-xmgr-9pqc-h5vw
  • Related CVEs
  • CVE-2026-34042: Act GitHub Actions Runner RCE 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