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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.8
- **CVSS:** 8.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.52% (percentile 38, 2026-11-26)
- **CWE:** CWE-862
- **Published:** 2026-11-06T21:53:53.997Z
- **Modified:** 2026-11-10T09:17:22.533Z

## Who should check

- Anyone running pipelines-as-code \< 0.42.4; \>= 0.43.0, \< 0.48.2; \>= 0.49.0, \< 0.50.1
- Anyone running Builds for Red Hat OpenShift all versions
- Anyone running Red Hat OpenShift Pipelines all versions
- Anyone running Red Hat OpenShift Pipelines (versions: see the vendor advisory)
- Anyone running Red Hat OpenShift Serverless all versions
- Anyone running Red Hat OpenShift Dev Spaces all versions
- Anyone running Red Hat Web Terminal all versions

## 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 and fixed versions

- pipelines-as-code: \< 0.42.4; \>= 0.43.0, \< 0.48.2; \>= 0.49.0, \< 0.50.1 (cvelist)
- Builds for Red Hat OpenShift: all versions (cvelist)
- Red Hat OpenShift Pipelines: all versions (cvelist)
- Red Hat OpenShift Pipelines: all versions (cvelist)
- Red Hat OpenShift Pipelines: all versions (cvelist)
- Red Hat OpenShift Pipelines: all versions (cvelist)
- Red Hat OpenShift Pipelines: all versions (cvelist)
- Red Hat OpenShift Pipelines: all versions (cvelist)
- Red Hat OpenShift Pipelines: all versions (cvelist)
- Red Hat OpenShift Pipelines: all versions (cvelist)
- Red Hat OpenShift Pipelines: see vendor advisory (cvelist)
- Red Hat OpenShift Pipelines: all versions (cvelist)
- Red Hat OpenShift Pipelines: see vendor advisory (cvelist)
- Red Hat OpenShift Pipelines: all versions (cvelist)
- Red Hat OpenShift Pipelines: see vendor advisory (cvelist)
- Red Hat OpenShift Pipelines: all versions (cvelist)
- Red Hat OpenShift Pipelines: see vendor advisory (cvelist)
- Red Hat OpenShift Pipelines: all versions (cvelist)
- Red Hat OpenShift Pipelines: all versions (cvelist)
- Red Hat OpenShift Pipelines: all versions (cvelist)
- Red Hat OpenShift Serverless: all versions (cvelist)
- Red Hat OpenShift Serverless: all versions (cvelist)
- Red Hat OpenShift Serverless: all versions (cvelist)
- Red Hat OpenShift Dev Spaces: all versions (cvelist)
- Red Hat Web Terminal: all versions (cvelist)

## Mitigation

- Upgrade pipelines-as-code to 0.50.1 or later.
- 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.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-50240. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-50240.md
Affected: pipelines-as-code < 0.42.4; >= 0.43.0, < 0.48.2; >= 0.49.0, < 0.50.1; Builds for Red Hat OpenShift all versions; Red Hat OpenShift Pipelines all versions; Red Hat OpenShift Pipelines all versions; Red Hat OpenShift Pipelines all versions; Red Hat OpenShift Pipelines all versions; Red Hat OpenShift …
Fixed in: pipelines-as-code 0.42.4, pipelines-as-code 0.48.2, pipelines-as-code 0.50.1

Steps:
1. Search this machine and project for pipelines-as-code, Builds for Red Hat OpenShift, Red Hat OpenShift Pipelines, Red Hat OpenShift Serverless, Red Hat OpenShift Dev Spaces, Red Hat Web Terminal: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-50240 being exploited?

There is no confirmed exploitation: CVE-2026-50240 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.52% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-50240?

High: CVSS 8.8 (v3.1, scored by CNA). Remote, login needed.

### Which versions are affected by CVE-2026-50240?

pipelines-as-code \< 0.42.4; \>= 0.43.0, \< 0.48.2; \>= 0.49.0, \< 0.50.1; Builds for Red Hat OpenShift all versions; Red Hat OpenShift Pipelines all versions; Red Hat OpenShift Pipelines all versions; Red Hat OpenShift Pipelines all versions; Red Hat OpenShift Pipelines all versions; Red Hat OpenShift Pipelines all versions; Red Hat OpenShift Pipelines all versions; Red Hat OpenShift Pipelines all versions; Red Hat OpenShift Pipelines all versions; Red Hat OpenShift Pipelines; Red Hat OpenShift Pipelines all versions; Red Hat OpenShift Pipelines; Red Hat OpenShift Pipelines all versions; Red Hat OpenShift Pipelines; Red Hat OpenShift Pipelines all versions; Red Hat OpenShift Pipelines; Red Hat OpenShift Pipelines all versions; Red Hat OpenShift Pipelines all versions; Red Hat OpenShift Pipelines all versions; Red Hat OpenShift Serverless all versions; Red Hat OpenShift Serverless all versions; Red Hat OpenShift Serverless all versions; Red Hat OpenShift Dev Spaces all versions; Red Hat Web Terminal all versions.

### Is there a fix for CVE-2026-50240?

Yes. Fixed in pipelines-as-code 0.42.4, pipelines-as-code 0.48.2, pipelines-as-code 0.50.1. Upgrade pipelines-as-code to 0.50.1 or later. 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.

### How do I check if I'm affected by CVE-2026-50240?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/tektoncd/pipelines-as-code/security/advisories/GHSA-8m5v-wh4r-5j96>
- patch: <https://github.com/openshift-pipelines/pipelines-as-code/commit/ac1ff2337fce1ffdf888f513c6202caa95853927>
- other: <https://access.redhat.com/security/cve/CVE-2026-50240>
- other: <https://bugzilla.redhat.com/show_bug.cgi?id=2484752>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-50240>

HTML: <https://flawdb.com/CVE-2026-50240> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-50240>
