Description
A flaw was found in OpenShift Pipelines-as-Code (PAC). PAC does not verify whether the creator of a Repository custom resource has permission to create PipelineRuns. A namespace user with only Repository and Secret create/delete permissions can cause PAC to execute attacker-controlled PipelineRuns as the auto-provisioned pipeline ServiceAccount, which carries ClusterRole/edit by default. This results in namespace-scoped privilege escalation, enabling Secret read, resource creation/modification/deletion, and potential supply chain injection in CI/CD namespaces.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | pipelines-as-code | < 0.42.4, 0.43.0 – < 0.48.2, 0.49.0 – < 0.50.1 | 0.42.4 |
| Red Hat | Builds for Red Hat OpenShift | — | — |
| Red Hat | OpenShift Pipelines | — | — |
| Red Hat | OpenShift Serverless | — | — |
| Red Hat | Red Hat OpenShift Dev Spaces | — | — |
| Red Hat | Red Hat Web Terminal | — | — |