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

CVE-2026-26189: Trivy Action Command Injection Vulnerability

CVE-2026-26189 is a command injection vulnerability in aquasecurity/trivy-action that allows arbitrary code execution in GitHub Actions runners. This article covers technical details, affected versions, and mitigation steps.

Published: February 20, 2026

CVE-2026-26189 Overview

A command injection vulnerability has been identified in aquasecurity/trivy-action, a popular GitHub Action used to scan Docker container images for vulnerabilities using Trivy. The vulnerability exists in versions 0.31.0 through 0.33.1 due to improper handling of action inputs when exporting environment variables. The action writes export VAR=<input> lines to trivy_envs.txt based on user-supplied inputs and subsequently sources this file in entrypoint.sh. Because input values are written without appropriate shell escaping, attacker-controlled input containing shell metacharacters (e.g., $(...), backticks, or other command substitution syntax) may be evaluated during the sourcing process. This can result in arbitrary command execution within the GitHub Actions runner context.

Critical Impact

Attackers with access to user input in GitHub workflows can achieve arbitrary command execution within the GitHub Actions runner context by injecting shell metacharacters into Trivy Action inputs.

Affected Products

  • aquasecurity/trivy-action versions 0.31.0 through 0.33.1

Discovery Timeline

  • 2026-02-19 - CVE CVE-2026-26189 published to NVD
  • 2026-02-19 - Last updated in NVD database

Technical Details for CVE-2026-26189

Vulnerability Analysis

This command injection vulnerability (CWE-78) stems from a design flaw in how trivy-action handles user-provided inputs. The action takes various configuration inputs from the workflow YAML file and writes them to an environment file (trivy_envs.txt) using a simple export VAR=<input> pattern. This file is then sourced by the shell in entrypoint.sh to set up the runtime environment.

The core issue is the absence of proper shell escaping when writing user-controlled values to the environment file. When the shell sources this file, any embedded shell metacharacters—such as command substitution syntax like $(command) or backticks—are evaluated by the shell interpreter. This allows an attacker who can influence the action inputs (through pull requests, issue templates, or other workflow triggers that incorporate user data) to execute arbitrary commands in the context of the GitHub Actions runner.

The vulnerability requires that a consuming workflow passes attacker-controlled data into action inputs that are written to trivy_envs.txt. Workflows that only use static, developer-controlled values in their Trivy Action configurations are not affected.

Root Cause

The root cause is the lack of shell escaping when writing user-supplied input values to trivy_envs.txt. The action concatenates raw input values into shell export statements without sanitization, creating a classic command injection vector when the file is sourced.

Attack Vector

The attack vector is network-based but requires high privileges—specifically, the ability to influence workflow inputs. An attacker must be able to inject shell metacharacters into workflow inputs that get processed by the vulnerable Trivy Action versions. Common attack scenarios include:

  • Crafted pull request titles or branch names that flow into action inputs
  • Issue templates where user input is passed to the action
  • Workflow dispatch inputs from malicious actors with repository access

The patch in version 0.34.0 addresses this by implementing proper shell escaping or eliminating the vulnerable source ./trivy_envs.txt pattern entirely.

bash
#!/bin/bash
set -euo pipefail

# Read TRIVY_* envs from file, previously they were written to the GITHUB_ENV file but GitHub Actions automatically 
# injects those into subsequent job steps which means inputs from one trivy-action invocation were leaking over to 
# any subsequent invocation which led to unexpected/undesireable behaviour from a user perspective
# See #422 for more context around this
if [ -f ./trivy_envs.txt ]; then
  source ./trivy_envs.txt
fi

# Set artifact reference
scanType="${INPUT_SCAN_TYPE:-image}"
scanRef="${INPUT_SCAN_REF:-.}"

Source: GitHub Commit

Detection Methods for CVE-2026-26189

Indicators of Compromise

  • Unexpected command execution or process spawning during GitHub Actions workflow runs using Trivy Action
  • Unusual network connections or data exfiltration attempts from GitHub Actions runners
  • Workflow logs showing shell metacharacters being processed in environment variable assignments
  • Anomalous modifications to trivy_envs.txt file contents during action execution

Detection Strategies

  • Audit GitHub Actions workflow files for uses of aquasecurity/trivy-action@v0.31.0 through aquasecurity/trivy-action@v0.33.1
  • Review workflow configurations that pass dynamic or user-controlled data into Trivy Action inputs
  • Implement GitHub Actions workflow analysis to detect potentially dangerous input patterns containing shell metacharacters
  • Monitor repository activity for pull requests or issues attempting to inject command substitution syntax

Monitoring Recommendations

  • Enable comprehensive logging for GitHub Actions workflows to capture input values and execution traces
  • Implement alerts for workflows using vulnerable Trivy Action versions
  • Review Actions runner logs for signs of unexpected command execution or environment manipulation
  • Audit dependencies and pinned action versions across repositories using automated scanning tools

How to Mitigate CVE-2026-26189

Immediate Actions Required

  • Upgrade aquasecurity/trivy-action to version 0.34.0 or later immediately
  • Audit all workflows using Trivy Action to identify those passing user-controlled data into action inputs
  • Pin action versions explicitly using full commit SHA hashes rather than floating tags
  • Review recent workflow runs for any suspicious activity that may indicate exploitation attempts

Patch Information

The vulnerability is fixed in aquasecurity/trivy-action version 0.34.0. The fix properly escapes shell values or eliminates the vulnerable source ./trivy_envs.txt pattern. Organizations should update their workflow files to reference the patched version. For more details, see the GitHub Security Advisory.

Workarounds

  • Avoid passing attacker-controlled or user-supplied data into Trivy Action inputs until upgrade is complete
  • Validate and sanitize any external inputs before passing them to the action
  • Use static, hardcoded values for action inputs where possible
  • Implement workflow restrictions to limit who can trigger workflows that use the vulnerable action
bash
# Example: Pin to patched version using commit SHA for security
# In your GitHub Actions workflow file (.github/workflows/*.yml)
- uses: aquasecurity/trivy-action@bc61dc55704e2d5704760f3cdab0d09acf16e4ca
  with:
    image-ref: 'your-image:tag'
    # Use only static, developer-controlled values for inputs

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechTrivy Action

  • SeverityMEDIUM

  • CVSS Score5.9

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:N
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-78
  • Technical References
  • GitHub Commit Update

  • GitHub Commit Update

  • GitHub Security Advisory
  • Latest CVEs
  • CVE-2026-35467: Browser API Key Information Disclosure

  • CVE-2026-35466: cveInterface.js XSS Vulnerability

  • CVE-2026-30252: ZenShare Suite XSS Vulnerability

  • CVE-2026-30251: ZenShare Suite v17.0 XSS Vulnerability
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