CVE-2026-40938

Tekton Pipelines project provides k8s-style resources for declaring CI/CD-style pipelines. Starting in version 1.0.0 and prior to versions 1.0.2, 1.3.4, 1.6.2, 1.9.3, and 1.11.1, 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. Versions 1.0.2, 1.3.4, 1.6.2, 1.9.3, and 1.11.1 fix the issue.
Configurations

Configuration 1 (hide)

cpe:2.3:a:linuxfoundation:tekton_pipelines:*:*:*:*:*:go:*:*

History

30 Jun 2026, 03:19

Type Values Removed Values Added
References
  • () https://access.redhat.com/errata/RHSA-2026:17546 -
  • () https://access.redhat.com/errata/RHSA-2026:24359 -
  • () https://access.redhat.com/errata/RHSA-2026:24484 -
  • () https://access.redhat.com/errata/RHSA-2026:26519 -
  • () https://access.redhat.com/errata/RHSA-2026:26538 -
  • () https://access.redhat.com/security/cve/CVE-2026-40938 -
  • () https://bugzilla.redhat.com/show_bug.cgi?id=2460292 -
  • () https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40938.json -

21 May 2026, 23:16

Type Values Removed Values Added
Summary (en) Tekton Pipelines project provides k8s-style resources for declaring CI/CD-style pipelines. From 1.0.0 to before 1.11.0, 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. This vulnerability is fixed in 1.11.1. (en) Tekton Pipelines project provides k8s-style resources for declaring CI/CD-style pipelines. Starting in version 1.0.0 and prior to versions 1.0.2, 1.3.4, 1.6.2, 1.9.3, and 1.11.1, 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. Versions 1.0.2, 1.3.4, 1.6.2, 1.9.3, and 1.11.1 fix the issue.

27 Apr 2026, 18:05

Type Values Removed Values Added
References () https://github.com/tektoncd/pipeline/releases/tag/v1.11.1 - () https://github.com/tektoncd/pipeline/releases/tag/v1.11.1 - Release Notes
References () https://github.com/tektoncd/pipeline/security/advisories/GHSA-94jr-7pqp-xhcq - () https://github.com/tektoncd/pipeline/security/advisories/GHSA-94jr-7pqp-xhcq - Exploit, Vendor Advisory
First Time Linuxfoundation
Linuxfoundation tekton Pipelines
CPE cpe:2.3:a:linuxfoundation:tekton_pipelines:*:*:*:*:*:go:*:*

22 Apr 2026, 19:17

Type Values Removed Values Added
References () https://github.com/tektoncd/pipeline/security/advisories/GHSA-94jr-7pqp-xhcq - () https://github.com/tektoncd/pipeline/security/advisories/GHSA-94jr-7pqp-xhcq -

21 Apr 2026, 21:16

Type Values Removed Values Added
New CVE

Information

Published : 2026-04-21 21:16

Updated : 2026-07-20 12:19


NVD link : CVE-2026-40938

Mitre link : CVE-2026-40938

CVE.ORG link : CVE-2026-40938


JSON object : View

Products Affected

linuxfoundation

  • tekton_pipelines
CWE
CWE-88

Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')