Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2026-50240

HIGH 8.8EPSS 38%

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

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.

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

Vulnerability facts

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 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
Fixed in
pipelines-as-code 0.42.4, pipelines-as-code 0.48.2, pipelines-as-code 0.50.1
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, login needed
CVSS
8.8 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 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
EPSS
0.52% chance of exploitation in 30 days (percentile 38, 2026-11-26)
CWE
CWE-862
Published
Modified

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

Package / productAffectedFixedSource
pipelines-as-code< 0.42.4; >= 0.43.0, < 0.48.2; >= 0.49.0, < 0.50.1—cvelist
Builds for Red Hat OpenShiftall versions—cvelist
Red Hat OpenShift Pipelinesall versions—cvelist
Red Hat OpenShift Pipelinesall versions—cvelist
Red Hat OpenShift Pipelinesall versions—cvelist
Red Hat OpenShift Pipelinesall versions—cvelist
Red Hat OpenShift Pipelinesall versions—cvelist
Red Hat OpenShift Pipelinesall versions—cvelist
Red Hat OpenShift Pipelinesall versions—cvelist
Red Hat OpenShift Pipelinesall versions—cvelist
Red Hat OpenShift Pipelines——cvelist
Red Hat OpenShift Pipelinesall versions—cvelist
Red Hat OpenShift Pipelines——cvelist
Red Hat OpenShift Pipelinesall versions—cvelist
Red Hat OpenShift Pipelines——cvelist
Red Hat OpenShift Pipelinesall versions—cvelist
Red Hat OpenShift Pipelines——cvelist
Red Hat OpenShift Pipelinesall versions—cvelist
Red Hat OpenShift Pipelinesall versions—cvelist
Red Hat OpenShift Pipelinesall versions—cvelist
Red Hat OpenShift Serverlessall versions—cvelist
Red Hat OpenShift Serverlessall versions—cvelist
Red Hat OpenShift Serverlessall versions—cvelist
Red Hat OpenShift Dev Spacesall versions—cvelist
Red Hat Web Terminalall versions—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

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.

References

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.

Sponsors