Pipelines-as-code: openshift-pipelines-operator-rh: pipelines-as-code: repository users can trigger namespace edit-equivalent execution via auto-provisioned pipeline serviceaccount

Summary

CVECVE-2026-50240
StatePUBLISHED
Assignerredhat
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-11-06 22:17:58 UTC
Updated2026-11-10 09:17:22 UTC
DescriptionA 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


VersionSourceTypeScoreSeverityVector
3.1[email protected]Secondary8.8HIGHCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
3.1CNACVSS8.8HIGHCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

CVSS v3.1 Breakdown

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
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

ReferenceSourceLinkTags
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

SourceTimeEvent
CNA2026-05-12T00:00:00.000ZReported to Red Hat.
CNA2026-08-27T00:00:00.000ZMade 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.

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report