Red Hat OpenShift Pipelines-as-Code: Privilege escalation (CVE-2026-50240)
A privilege escalation vulnerability in Red Hat OpenShift Pipelines-as-Code (PAC) allows low-privileged users to execute unauthorized PipelineRuns with elevated permissions via the Repository custom resource.
CVE search metadata
CVE search record: CVE-2026-50240. Severity: high. CVSS: 8.8. KEV: no. Product: OpenShift Pipelines-as-Code. Brief: Red Hat OpenShift Pipelines-as-Code: Privilege escalation (CVE-2026-50240). Brief link: https://feed.craftedsignal.io/briefs/2026-11-openshift-pac-privesc/
Triage facts
Revision 1- Applicability
- OpenShift Pipelines-as-Code
- Evidence
- Unknown
- Severity
- High
- Action
- Elevated
- Sources
- 1 public source
- Freshness
- Revision 1Nov 6, 23:27 UTC
- Vulnerabilities
- 1 CVE
- Source quality
- A1Likely
A vulnerability exists in OpenShift Pipelines-as-Code (PAC) where the platform fails to verify if a user creating a Repository custom resource has the required permissions to trigger PipelineRuns. An attacker with minimal Repository and Secret create/delete permissions can force PAC to execute arbitrary PipelineRuns using the auto-provisioned ServiceAccount. This ServiceAccount carries the ClusterRole/edit permission by default, leading to privilege escalation within the CI/CD namespace.
Impact
Successful exploitation allows for unauthorized read access to Secrets, modification or deletion of namespace resources, and potential supply chain injection by executing malicious pipeline logic under a high-privilege ServiceAccount.
Recommendation
- Inventory all namespaces where OpenShift Pipelines-as-Code is deployed and in use.
- Apply the vendor-provided patch for OpenShift Pipelines-as-Code to address the missing authorization check.
- Review RBAC policies for users with Repository and Secret creation permissions to ensure they are restricted from creating these resources in sensitive CI/CD namespaces until the patch is applied.
Immediate actions
Patch OpenShift Pipelines-as-Code to the latest version provided by Red Hat to resolve CVE-2026-50240.
Threat Hunt
Audit creation of Repository and PipelineRun resources within namespaces where users have restricted permissions.
Data: Kubernetes Audit Logs
Mitigations
Restrict RBAC for users who possess Repository and Secret create/delete permissions in namespaces containing CI/CD pipelines.
CVE-2026-50240