Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/tektoncd/pipeline
  4. ›
  5. CVE-2026-40938

CVE-2026-40938: Tekton Pipeline: Git Resolver Unsanitized Revision Parameter Enables git Argument Injection Leading to RCE

April 21, 2026 (updated May 21, 2026)

The git resolver’s revision parameter is passed directly as a positional argument to git fetch without any validation that it does not begin with a - character. Because git parses flags from mixed positional arguments, an attacker can inject arbitrary git fetch flags such as --upload-pack=<binary>. Combined with the validateRepoURL function explicitly permitting URLs that begin with / (local filesystem paths), a tenant who can submit ResolutionRequest objects can chain these two behaviors to execute an arbitrary binary on the resolver pod. The tekton-pipelines-resolvers ServiceAccount holds cluster-wide get/list/watch on all Secrets, so code execution on the resolver pod enables full cluster-wide secret exfiltration.

References

  • github.com/advisories/GHSA-94jr-7pqp-xhcq
  • github.com/tektoncd/pipeline/releases/tag/v1.11.1
  • github.com/tektoncd/pipeline/security/advisories/GHSA-94jr-7pqp-xhcq
  • nvd.nist.gov/vuln/detail/CVE-2026-40938

Code Behaviors & Features

Detect and mitigate CVE-2026-40938 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 1.0.0 before 1.0.2, all versions starting from 1.2.0 before 1.3.4, all versions starting from 1.4.0 before 1.6.2, all versions starting from 1.7.0 before 1.9.3, all versions starting from 1.10.0 before 1.11.1

Fixed versions

  • 1.0.2
  • 1.3.4
  • 1.6.2
  • 1.9.3
  • 1.11.1

Solution

Upgrade to versions 1.0.2, 1.3.4, 1.6.2, 1.9.3, 1.11.1 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-88: Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')

Source file

go/github.com/tektoncd/pipeline/CVE-2026-40938.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 24 Jun 2026 00:18:46 +0000.