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.1, 1.3.3, 1.6.1, 1.9.2, and 1.10.2, the Tekton Pipelines git resolver is vulnerable to path traversal via the `pathInRepo` parameter. A tenant with permission to create `ResolutionRequests` (e.g. by creating `TaskRuns` or `PipelineRuns` that use the git resolver) can read arbitrary files from the resolver pod's filesystem, including ServiceAccount tokens. The file contents are returned base64-encoded in `resolutionrequest.status.data`. Versions 1.0.1, 1.3.3, 1.6.1, 1.9.2, and 1.10.2 contain a patch.
Problem types
CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Product status
>= 1.1.0, < 1.3.3
>= 1.4.0, < 1.6.1
>= 1.7.0, < 1.9.2
>= 1.10.0, < 1.10.2
References
github.com/...peline/security/advisories/GHSA-j5q5-j9gm-2w5c
github.com/...ommit/10fa538f9a2b6d01c75138f1ed7ba3da0e34687c
github.com/tektoncd/pipeline/commit/318006c4e3a5
github.com/...ommit/3ca7bc6e6dd1d97f80b84f78370d91edaf023cbd
github.com/...ommit/961388fcf3374bc7656d28ab58ca84987e0a75ae
github.com/...ommit/b1fee65b88aa969069c14c120045e97c37d9ee5e
github.com/...ommit/cdb4e1e97a4f3170f9bc2cbfff83a6c8107bc3db
github.com/...ommit/ec7755031a183b345cf9e64bea0e0505c1b9cb78