CVE-2023-37264

Tekton Pipelines project provides k8s-style resources for declaring CI/CD-style pipelines. Starting in version 0.35.0, pipelines do not validate child UIDs, which means that a user that has access to create TaskRuns can create their own Tasks that the Pipelines controller will accept as the child Task. While the software stores and validates the PipelineRun's (api version, kind, name, uid) in the child Run's OwnerReference, it only store (api version, kind, name) in the ChildStatusReference. This means that if a client had access to create TaskRuns on a cluster, they could create a child TaskRun for a pipeline with the same name + owner reference, and the Pipeline controller picks it up as if it was the original TaskRun. This is problematic since it can let users modify the config of Pipelines at runtime, which violates SLSA L2 Service Generated / Non-falsifiable requirements. This issue can be used to trick the Pipeline controller into associating unrelated Runs to the Pipeline, feeding its data through the rest of the Pipeline. This requires access to create TaskRuns, so impact may vary depending on one Tekton setup. If users already have unrestricted access to create any Task/PipelineRun, this does not grant any additional capabilities. As of time of publication, there are no known patches for this issue.
Configurations

Configuration 1 (hide)

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

History

18 Jul 2023, 17:55

Type Values Removed Values Added
References (MISC) https://github.com/tektoncd/pipeline/blob/2d38f5fa840291395178422d34b36b1bc739e2a2/pkg/reconciler/pipelinerun/pipelinerun.go#L1358-L1372 - (MISC) https://github.com/tektoncd/pipeline/blob/2d38f5fa840291395178422d34b36b1bc739e2a2/pkg/reconciler/pipelinerun/pipelinerun.go#L1358-L1372 - Product
References (MISC) https://pkg.go.dev/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1#ChildStatusReference - (MISC) https://pkg.go.dev/github.com/tektoncd/pipeline/pkg/apis/pipeline/v1beta1#ChildStatusReference - Product
References (MISC) https://github.com/tektoncd/pipeline/security/advisories/GHSA-w2h3-vvvq-3m53 - (MISC) https://github.com/tektoncd/pipeline/security/advisories/GHSA-w2h3-vvvq-3m53 - Exploit
First Time Linuxfoundation
Linuxfoundation tekton Pipelines
CPE cpe:2.3:a:linuxfoundation:tekton_pipelines:*:*:*:*:*:go:*:*
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 4.3

07 Jul 2023, 17:36

Type Values Removed Values Added
New CVE

Information

Published : 2023-07-07 17:15

Updated : 2024-02-28 20:13


NVD link : CVE-2023-37264

Mitre link : CVE-2023-37264

CVE.ORG link : CVE-2023-37264


JSON object : View

Products Affected

linuxfoundation

  • tekton_pipelines
CWE
CWE-345

Insufficient Verification of Data Authenticity