{"cve":"CVE-2026-40938","nvd":{"published":"2026-04-21T21:16:46.283","modified":"2026-10-26T21:10:00.170","status":"Modified","description":"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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","score":8.5},"cwes":["CWE-88"],"references":["https://github.com/tektoncd/pipeline/releases/tag/v1.11.1","https://github.com/tektoncd/pipeline/security/advisories/GHSA-94jr-7pqp-xhcq","https://access.redhat.com/errata/RHSA-2026:17546","https://access.redhat.com/errata/RHSA-2026:24359","https://access.redhat.com/errata/RHSA-2026:24484"],"products":["linuxfoundation:tekton_pipelines"],"source":"nvd","synced_at":"2026-10-26T21:38:48.864438205+00:00"},"epss":{"cve":"CVE-2026-40938","score":0.00788,"percentile":0.55914,"date":"2026-10-26"},"kev":null,"osv":[{"id":"GHSA-94jr-7pqp-xhcq","url":"https://osv.dev/vulnerability/GHSA-94jr-7pqp-xhcq","summary":"Tekton Pipeline: Git Resolver Unsanitized Revision Parameter Enables git Argument Injection Leading to RCE","modified":"2026-09-10T03:51:01.307015843Z","packages":[{"ecosystem":"Go","name":"github.com/tektoncd/pipeline","purl":"pkg:golang/github.com/tektoncd/pipeline","ranges":[">=1.10.0 <1.11.1"],"fixed":["1.11.1"]},{"ecosystem":"Go","name":"github.com/tektoncd/pipeline","purl":"pkg:golang/github.com/tektoncd/pipeline","ranges":[">=1.7.0 <1.9.3"],"fixed":["1.9.3"]},{"ecosystem":"Go","name":"github.com/tektoncd/pipeline","purl":"pkg:golang/github.com/tektoncd/pipeline","ranges":[">=1.4.0 <1.6.2"],"fixed":["1.6.2"]},{"ecosystem":"Go","name":"github.com/tektoncd/pipeline","purl":"pkg:golang/github.com/tektoncd/pipeline","ranges":[">=1.2.0 <1.3.4"],"fixed":["1.3.4"]},{"ecosystem":"Go","name":"github.com/tektoncd/pipeline","purl":"pkg:golang/github.com/tektoncd/pipeline","ranges":[">=1.0.0 <1.0.2"],"fixed":["1.0.2"]}]},{"id":"GO-2026-5272","url":"https://osv.dev/vulnerability/GO-2026-5272","summary":"Tekton Pipelines git resolver revision parameter argument injection in github.com/tektoncd/pipeline","modified":"2026-07-23T19:15:16.386073325Z","packages":[{"ecosystem":"Go","name":"github.com/tektoncd/pipeline","purl":"pkg:golang/github.com/tektoncd/pipeline","ranges":[">=1.0.0 <1.0.2",">=1.1.0 <1.3.4",">=1.4.0 <1.6.2",">=1.7.0 <1.9.3",">=1.10.0 <1.11.1"],"fixed":["1.0.2","1.3.4","1.6.2","1.9.3","1.11.1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}