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-2026-40938

CVE-2026-40938: Tekton Pipelines Git Resolver RCE Flaw

CVE-2026-40938 is a remote code execution vulnerability in Tekton Pipelines that enables attackers to execute arbitrary code and exfiltrate cluster-wide secrets. This article covers technical details, affected versions, and patches.

Published: April 23, 2026

CVE-2026-40938 Overview

CVE-2026-40938 is a command injection vulnerability in Tekton Pipelines, a Kubernetes-native CI/CD framework. The vulnerability exists in the git resolver component where the revision parameter is passed directly as a positional argument to git fetch without validation that it does not begin with a - character. This allows attackers to inject arbitrary git fetch flags, which when combined with the ability to use local filesystem paths as repository URLs, enables arbitrary code execution on the resolver pod with access to cluster-wide secrets.

Critical Impact

A tenant with the ability to submit ResolutionRequest objects can achieve arbitrary code execution on the resolver pod and exfiltrate all cluster-wide secrets due to the tekton-pipelines-resolvers ServiceAccount's broad permissions.

Affected Products

  • Tekton Pipelines versions 1.0.0 to 1.10.x
  • Tekton Pipelines git resolver component
  • Kubernetes clusters running affected Tekton Pipelines versions

Discovery Timeline

  • 2026-04-21 - CVE CVE-2026-40938 published to NVD
  • 2026-04-22 - Last updated in NVD database

Technical Details for CVE-2026-40938

Vulnerability Analysis

This vulnerability falls under CWE-88 (Improper Neutralization of Argument Delimiters in a Command). The git resolver in Tekton Pipelines fails to sanitize the revision parameter before passing it to the underlying git fetch command. Because git's command-line parser processes flags from mixed positional arguments, an attacker-controlled revision value beginning with - is interpreted as a flag rather than a branch or commit reference.

The attack chain requires two conditions working together: first, the ability to inject arbitrary flags via the unsanitized revision parameter, and second, the validateRepoURL function's explicit allowance of URLs beginning with / (local filesystem paths). By combining these behaviors, an attacker can craft a malicious ResolutionRequest that executes arbitrary binaries through the --upload-pack=<binary> flag injection.

The impact is amplified by the elevated privileges of the tekton-pipelines-resolvers ServiceAccount, which holds cluster-wide get/list/watch permissions on all Secrets. Successful exploitation grants attackers the ability to exfiltrate sensitive credentials, API keys, and other secrets across the entire Kubernetes cluster.

Root Cause

The root cause is insufficient input validation in the git resolver's handling of the revision parameter. The parameter value is directly interpolated into the git fetch command without checking for leading dash characters that would cause the value to be interpreted as a command-line flag. This represents an argument injection vulnerability where user-controlled input crosses a trust boundary into a shell command context.

Attack Vector

The attack requires network access and low privileges (the ability to submit ResolutionRequest objects to the cluster). An attacker crafts a malicious ResolutionRequest with a revision parameter containing injected git flags such as --upload-pack=/path/to/malicious/binary. By specifying a local filesystem path as the repository URL (permitted by the validateRepoURL function), the attacker forces the git resolver to execute the specified binary during the fetch operation. This provides initial code execution, which can then be leveraged to access secrets via the ServiceAccount's elevated permissions.

The vulnerability mechanism involves injecting flags through the git fetch command's argument parsing. When the revision parameter begins with a dash character, git interprets it as a flag rather than a revision reference. The --upload-pack flag allows specification of an arbitrary executable to run. See the GitHub Security Advisory GHSA-94jr-7pqp-xhcq for technical details.

Detection Methods for CVE-2026-40938

Indicators of Compromise

  • ResolutionRequest objects with revision parameters beginning with - character
  • Unusual process execution from the tekton-pipelines-resolvers pod
  • Unexpected secret access patterns from the tekton-pipelines-resolvers ServiceAccount
  • Git fetch operations with suspicious flags such as --upload-pack

Detection Strategies

  • Monitor Kubernetes audit logs for ResolutionRequest creation events with suspicious revision values
  • Implement admission controllers to validate and reject ResolutionRequest objects with revision parameters starting with -
  • Deploy runtime security monitoring to detect unexpected binary execution within resolver pods
  • Enable and analyze git command execution logs for flag injection patterns

Monitoring Recommendations

  • Configure alerting on abnormal secret access patterns from CI/CD service accounts
  • Establish baseline behavior for tekton-pipelines-resolvers pod and alert on deviations
  • Monitor network egress from resolver pods for potential data exfiltration
  • Review Kubernetes RBAC audit logs for privilege escalation attempts

How to Mitigate CVE-2026-40938

Immediate Actions Required

  • Upgrade Tekton Pipelines to version 1.11.1 or later immediately
  • Audit existing ResolutionRequest objects for suspicious revision parameter values
  • Review cluster secrets for potential compromise if exploitation is suspected
  • Restrict permissions on who can create ResolutionRequest objects using RBAC policies

Patch Information

The vulnerability is fixed in Tekton Pipelines version 1.11.1. The patch adds validation to ensure the revision parameter cannot begin with a dash character, preventing flag injection attacks. Organizations should upgrade to the fixed version as soon as possible. The release is available at the GitHub Release v1.11.1.

Workarounds

  • Implement Kubernetes admission webhooks to validate and reject ResolutionRequest objects with revision parameters starting with -
  • Use network policies to restrict resolver pod egress as a defense-in-depth measure
  • Consider reducing the permissions of the tekton-pipelines-resolvers ServiceAccount if cluster-wide secret access is not required
  • Temporarily disable the git resolver if it is not actively used until patching is complete
bash
# Upgrade Tekton Pipelines to patched version
kubectl apply --filename https://storage.googleapis.com/tekton-releases/pipeline/previous/v1.11.1/release.yaml

# Verify the updated version is deployed
kubectl get deployment tekton-pipelines-controller -n tekton-pipelines -o jsonpath='{.spec.template.spec.containers[0].image}'

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechTekton Pipelines

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.07%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-88
  • Technical References
  • GitHub Release v1.11.1

  • GitHub Security Advisory GHSA-94jr-7pqp-xhcq
  • Related CVEs
  • CVE-2026-40923: Tekton Pipelines Path Traversal Flaw

  • CVE-2026-40161: Tekton Pipelines Information Disclosure

  • CVE-2026-33211: Tekton Pipelines Path Traversal Flaw

  • CVE-2026-33022: Tekton Pipelines DOS 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