REDHAT-BUG-2460292: High severity Tekton Tekton Pipelines (tekton-pipelines-resolvers) vulnerability
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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 1.11.1 - Compensating control
Restrict access for the tekton-pipelines-resolvers ServiceAccount so it does not have cluster-wide get/list/watch permissions on all Secrets; ensure it is limited to only the specific Secrets required for resolution (to prevent secret exfiltration if code execution occurs on the resolver pod).
Event History
Frequently Asked Questions
What is the severity of REDHAT-BUG-2460292?
The severity of REDHAT-BUG-2460292 is high, rated at 7.
What is the risk associated with REDHAT-BUG-2460292?
The risk associated with REDHAT-BUG-2460292 is rated at 33.
How do I fix REDHAT-BUG-2460292?
To fix REDHAT-BUG-2460292, update Tekton Pipelines to version 1.11.0 or later.
What vulnerability does REDHAT-BUG-2460292 describe?
REDHAT-BUG-2460292 describes a vulnerability where the git resolver's revision parameter is passed to git fetch without proper validation.
Which versions of Tekton Pipelines are affected by REDHAT-BUG-2460292?
Tekton Pipelines from version 1.0.0 to before version 1.11.0 are affected by REDHAT-BUG-2460292.