Pipelines-as-code: openshift-pipelines-operator-rh: pipelines-as-code: repository users can trigger namespace edit-equivalent execution via auto-provisioned pipeline serviceaccount
Summary
| CVE | CVE-2026-50240 |
|---|---|
| State | PUBLISHED |
| Assigner | redhat |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-11-06 22:17:58 UTC |
| Updated | 2026-11-10 09:17:22 UTC |
| 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. |
Risk And Classification
Primary CVSS: v3.1 8.8 HIGH from [email protected]
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS: 0.003700000 probability, percentile 0.311930000 (date 2026-11-09)
Problem Types: CWE-862 | CWE-862 Missing Authorization
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Secondary | 8.8 | HIGH | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| 3.1 | CNA | CVSS | 8.8 | HIGH | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
CVSS v3.1 Breakdown
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Red Hat | Builds For Red Hat OpenShift | Not specified | Not specified |
| CNA | Red Hat | OpenShift Pipelines | Not specified | Not specified |
| CNA | Red Hat | OpenShift Pipelines | Not specified | Not specified |
| CNA | Red Hat | OpenShift Pipelines | Not specified | Not specified |
| CNA | Red Hat | OpenShift Pipelines | Not specified | Not specified |
| CNA | Red Hat | OpenShift Pipelines | Not specified | Not specified |
| CNA | Red Hat | OpenShift Pipelines | Not specified | Not specified |
| CNA | Red Hat | OpenShift Pipelines | Not specified | Not specified |
| CNA | Red Hat | OpenShift Pipelines | Not specified | Not specified |
| CNA | Red Hat | OpenShift Pipelines | Not specified | Not specified |
| CNA | Red Hat | OpenShift Pipelines | Not specified | Not specified |
| CNA | Red Hat | OpenShift Pipelines | Not specified | Not specified |
| CNA | Red Hat | OpenShift Pipelines | Not specified | Not specified |
| CNA | Red Hat | OpenShift Pipelines | Not specified | Not specified |
| CNA | Red Hat | OpenShift Pipelines | Not specified | Not specified |
| CNA | Red Hat | OpenShift Pipelines | Not specified | Not specified |
| CNA | Red Hat | OpenShift Pipelines | Not specified | Not specified |
| CNA | Red Hat | OpenShift Pipelines | Not specified | Not specified |
| CNA | Red Hat | OpenShift Pipelines | Not specified | Not specified |
| CNA | Red Hat | OpenShift Serverless | Not specified | Not specified |
| CNA | Red Hat | OpenShift Serverless | Not specified | Not specified |
| CNA | Red Hat | OpenShift Serverless | Not specified | Not specified |
| CNA | Red Hat | Red Hat OpenShift Dev Spaces | Not specified | Not specified |
| CNA | Red Hat | Red Hat Web Terminal | Not specified | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| github.com/tektoncd/pipelines-as-code/security/advisories/GHSA-8m5v-wh4r... | [email protected] | github.com | |
| access.redhat.com/security/cve/CVE-2026-50240 | [email protected] | access.redhat.com | |
| github.com/openshift-pipelines/pipelines-as-code/commit/ac1ff2337fce1ffd... | [email protected] | github.com | |
| bugzilla.redhat.com/show_bug.cgi | [email protected] | bugzilla.redhat.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
Vendor Comments And Credit
Discovery Credit
CNA: Red Hat would like to thank Christopher Lusk (North Echo Security Research) for reporting this issue. (en)
Additional Advisory Data
| Source | Time | Event |
|---|---|---|
| CNA | 2026-05-12T00:00:00.000Z | Reported to Red Hat. |
| CNA | 2026-08-27T00:00:00.000Z | Made public. |
Workarounds
CNA: Set legacyPipelineRbac to false in the TektonConfig custom resource. This prevents the OpenShift Pipelines operator from auto-provisioning the openshift-pipelines-edit RoleBinding that grants the pipeline ServiceAccount ClusterRole/edit in every namespace. Warning: this may break existing pipelines that rely on the pipeline ServiceAccount having edit permissions. Simply deleting the openshift-pipelines-edit RoleBinding is NOT sufficient — the operator reconciliation loop will re-create it unless legacyPipelineRbac is set to false.