{"id":"CVE-2026-40938","published":"2026-04-21T20:45:24Z","modified":"2026-09-07T12:04:45Z","title":"Tekton Pipelines: Git Resolver Unsanitized Revision Parameter Enables git Argument Injection Leading to RCE","vendor":"tektoncd","product":"pipeline","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00802,"percentile":0.57546,"provenance":"source"},"cwes":[{"id":"CWE-88","name":"Improper Neutralization of Argument Delimiters in a Command"}],"references":[{"url":"https://github.com/tektoncd/pipeline/security/advisories/GHSA-94jr-7pqp-xhcq","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/tektoncd/pipeline/releases/tag/v1.11.1","tags":["x_refsource_MISC"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-40938","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2460292","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40938.json","tags":["x_sadp-csaf-vex"]},{"url":"https://access.redhat.com/errata/RHSA-2026:24359","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:17546","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:26538","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:26519","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:24484","tags":["vendor-advisory","x_refsource_REDHAT"]}],"priority":{"score":16.8,"factors":[{"name":"EPSS percentile","points":11.51},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"tektoncd","affectedVersions":[{"vendor":"tektoncd","product":"pipeline","versions":[">= 1.0.0, < 1.0.2",">= 1.2.0, < 1.3.4",">= 1.4.0, < 1.6.2",">= 1.7.0, < 1.9.3",">= 1.10.0, < 1.11.1"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-04-22T18:31:54.871943Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/tektoncd/pipeline","vulnerableRanges":[">=1.10.0, <1.11.1",">=1.7.0, <1.9.3",">=1.4.0, <1.6.2",">=1.2.0, <1.3.4",">=1.0.0, <1.0.2",">=1.1.0, <1.3.4"],"patched":["1.11.1","1.9.3","1.6.2","1.3.4","1.0.2"],"from":["GHSA-94jr-7pqp-xhcq","GO-2026-5272"],"provenance":"source"}],"summary":{"text":"The Git resolver in Tekton Pipelines passes the user-supplied revision parameter straight to git fetch as a positional argument without rejecting values that begin with a dash, so git flags can be injected, and the resolver's URL validation also accepts local filesystem paths beginning with a slash. An attacker who can submit ResolutionRequest objects, which requires only low-privilege tenant access and no user interaction, can chain these to run an arbitrary binary on the resolver pod, whose service account can read all Secrets cluster-wide.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:03:31Z"},"euvd":{"id":"EUVD-2026-24491","exploited":false,"provenance":"source"}}