{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "fixed": "0.42.4"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "introduced": "0.43.0"
                  },
                  {
                    "fixed": "0.48.2"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "introduced": "0.49.0"
                  },
                  {
                    "fixed": "0.50.1"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "fixed": "ac1ff2337fce1ffdf888f513c6202caa95853927"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "bbb3f0e97923de9c0ddb3f70e84866502b8599d6"
            },
            {
              "introduced": "eff5928d5b1c3a816e2b0f61f2e53a1af6109161"
            },
            {
              "fixed": "481e8a8042b1be59e5cd27cc099a2b15d0a51145"
            },
            {
              "introduced": "1433ee8668857940524d58b6c8510d4d8552d7b8"
            },
            {
              "fixed": "095f1851c539cc1fc31de9928c91ca60cbcd757c"
            },
            {
              "fixed": "ac1ff2337fce1ffdf888f513c6202caa95853927"
            }
          ],
          "repo": "https://github.com/tektoncd/pipelines-as-code",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-8m5v-wh4r-5j96"
  ],
  "database_specific": {
    "cna_assigner": "redhat",
    "cwe_ids": [
      "CWE-862"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/50xxx/CVE-2026-50240.json"
  },
  "details": "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.",
  "id": "CVE-2026-50240",
  "modified": "2026-11-12T02:30:59.965373997Z",
  "published": "2026-11-06T21:53:53.997Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://access.redhat.com/downloads/content/package-browser/"
    },
    {
      "type": "ADVISORY",
      "url": "https://access.redhat.com/security/cve/CVE-2026-50240"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/50xxx/CVE-2026-50240.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/tektoncd/pipelines-as-code/security/advisories/GHSA-8m5v-wh4r-5j96"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-50240"
    },
    {
      "type": "REPORT",
      "url": "https://bugzilla.redhat.com/show_bug.cgi?id=2484752"
    },
    {
      "type": "FIX",
      "url": "https://github.com/openshift-pipelines/pipelines-as-code/commit/ac1ff2337fce1ffdf888f513c6202caa95853927"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/tektoncd/pipelines-as-code"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Pipelines-as-code: openshift-pipelines-operator-rh: pipelines-as-code: repository users can trigger namespace edit-equivalent execution via auto-provisioned pipeline serviceaccount"
}