{
  "id": "CVE-2026-50240",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-50240",
  "published_at": "2026-11-06T21:53:53.997Z",
  "title": "Pipelines-as-code: openshift-pipelines-operator-rh: pipelines-as-code: repository users can trigger namespace edit-equivalent execution via auto-provisioned pipeline serviceaccount",
  "vendor": "Red Hat",
  "product": "Builds for Red Hat OpenShift",
  "cvss": {
    "score": 8.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cwe": "CWE-862",
  "cvss_by_source": {
    "cna": 8.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "",
        "product": "",
        "ranges": [
          "\u003c 0.42.4",
          "\u003e= 0.43.0, \u003c 0.48.2",
          "\u003e= 0.49.0, \u003c 0.50.1"
        ],
        "fixed_in": [
          "0.42.4",
          "0.48.2",
          "0.50.1"
        ]
      }
    ],
    "upgrade": [
      "Upgrade the affected product to 0.42.4 or 0.48.2 or 0.50.1 or later."
    ],
    "workarounds": [
      "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."
    ],
    "references": [
      {
        "kind": "Patch",
        "url": "https://github.com/openshift-pipelines/pipelines-as-code/commit/ac1ff2337fce1ffdf888f513c6202caa95853927"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/tektoncd/pipelines-as-code/security/advisories/GHSA-8m5v-wh4r-5j96"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
