Red HatCVE-2026-50240
Red Hat, Inc.: CVE records (CNA): privilege escalation
Fix: upgrade to Red Hat or later (6 fixed versions below)
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 versions
| Package | Affected | Fixed in |
|---|---|---|
| Builds for Red Hat OpenShift Product | all versions | No fix yet |
| OpenShift Pipelines Product | all versions | No fix yet |
| all versions | No fix yet | |
| all versions | No fix yet | |
| all versions | No fix yet | |
| all versions | No fix yet | |
| all versions | No fix yet | |
| all versions | No fix yet | |
| all versions | No fix yet | |
| all versions | No fix yet | |
| all versions | No fix yet | |
| Red Hat, Inc.: CVE records (CNA) Product | < 0.42.4 | 0.42.4 |
| >= 0.43.0, < 0.48.2 | 0.48.2 | |
| >= 0.49.0, < 0.50.1 | 0.50.1 |
Details and references
- CVSS 3.1
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Severity from
- the vendor (its own CVE record or advisory)
- Weakness
- CWE-862
- www.cve.org/CVERecord?id=CVE-2026-50240
- nvd.nist.gov/vuln/detail/CVE-2026-50240
- access.redhat.com/security/cve/CVE-2026-50240
- bugzilla.redhat.com/show_bug.cgi?id=2484752
- github.com/openshift-pipelines/pipelines-as-code/commit/ac1ff2337fce1ffdf888f513c6202caa95853927
- github.com/tektoncd/pipelines-as-code/security/advisories/GHSA-8m5v-wh4r-5j96