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.
Published: 2026-11-06
Score: 8.8 High
EPSS: n/a
KEV: No
Impact: Namespace‑scoped privilege escalation
Action: Apply Workaround
AI Analysis

Impact

The vulnerability in OpenShift Pipelines‑as‑Code arises because the operator does not verify that the user creating a Repository custom resource has permission to start PipelineRuns. A namespace user who can create and delete Repositories and Secrets can supply a malicious PipelineRun and have it executed under the auto‑provisioned pipeline ServiceAccount, which by default holds the ClusterRole/edit role. This grants the attacker the ability to read secrets, create or modify resources, delete objects, and potentially inject malicious code into continuous‑integration pipelines. The weakness is a classic missing authorization check (CWE‑862).

Affected Systems

This issue affects Red Hat OpenShift Pipelines, OpenShift Build, OpenShift Serverless, Red‑Hat OpenShift Dev Spaces and Red‑Hat Web Terminal. The vulnerability is present in all currently deployed versions of these components, however no specific version range is provided by the CNA. The operator that manages pipelines in OpenShift Pipelines‑as‑Code is the primary affected element.

Risk and Exploitability

The CVSS score of 8.8 indicates a high severity of exploitation. No EPSS data is supplied, so the statistical likelihood of exploitation cannot be quantified at this time. The vulnerability is not listed in the CISA KEV catalog, implying no known active exploitation at the moment. Based on the description, the attack vector is likely to be an authenticated user within a namespace who has permission to create Repositories or Secrets; they could then trigger arbitrary PipelineRuns that run with elevated ClusterRole/edit privileges. This makes the flaw a serious namespace‑scoped privilege escalation with potential supply‑chain side effects.

Generated by OpenCVE AI on November 6, 2026 at 23:23 UTC.

Remediation

Vendor Workaround

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.


OpenCVE Recommended Actions

  • Set the legacyPipelineRbac field to false in the TektonConfig custom resource, causing the operator to stop auto‑provisioning the openshift‑pipelines‑edit RoleBinding.
  • Restrict Repository and Secret create/delete permissions to only trusted accounts or roles so that users who can add repositories cannot run arbitrary PipelineRuns.
  • Remove existing openshift‑pipelines‑edit RoleBindings and audit the namespace to ensure the binding is not recreated, or implement monitoring to detect re‑creation.
  • Apply any future patch or update to newer operator versions once a fix is released.

Generated by OpenCVE AI on November 6, 2026 at 23:23 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 06 Nov 2026 22:00:00 +0000

Type Values Removed Values Added
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.
Title Pipelines-as-code: openshift-pipelines-operator-rh: pipelines-as-code: repository users can trigger namespace edit-equivalent execution via auto-provisioned pipeline serviceaccount
First Time appeared Redhat
Redhat openshift Builds
Redhat openshift Devspaces
Redhat openshift Pipelines
Redhat serverless
Redhat webterminal
Weaknesses CWE-862
CPEs cpe:/a:redhat:openshift_builds:1
cpe:/a:redhat:openshift_devspaces:3
cpe:/a:redhat:openshift_pipelines:1
cpe:/a:redhat:serverless:1
cpe:/a:redhat:webterminal:1
Vendors & Products Redhat
Redhat openshift Builds
Redhat openshift Devspaces
Redhat openshift Pipelines
Redhat serverless
Redhat webterminal
References
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}


Subscriptions

Redhat Openshift Builds Openshift Devspaces Openshift Pipelines Serverless Webterminal
cve-icon MITRE

Status: PUBLISHED

Assigner: redhat

Published:

Updated: 2026-11-06T21:53:53.997Z

Reserved: 2026-06-04T12:49:30.333Z

Link: CVE-2026-50240

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-11-06T22:17:58.757

Modified: 2026-11-06T22:17:58.917

Link: CVE-2026-50240

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-11-06T23:30:09Z

Weaknesses