Act nowDisclosed

Advisory · CVE-2026-140094

OpenShift TemplateInstance flaw lets any self-provisioner become cluster admin

Incomplete authorization checks in OpenShift's TemplateInstance mechanism let an authenticated user with standard template creation permissions submit forged administrative group memberships, and the controller-manager trusts them, granting full cluster administrative control. Scored CVSS 3.1 9.9. Affects OpenShift Container Platform 4 and 5; no fixed release was listed at the time of writing.

Vendor
Red Hat
Product
OpenShift
Identifier / CWE
CVE-2026-140094
CWE-842
Action timing
Immediate
ELI5

Explain it like I’m five

OpenShift lets ordinary users spin up ready-made project templates. When a user asks for a template, they can also claim to belong to any group they like, including the cluster admins, and the part of OpenShift that builds the template believes them without checking. A regular user walks in the front door and walks out as the boss of the whole cluster.

SIMPLIFIED_ATTACK_PATH05 STEPS
  1. 01Authenticated low-privilege user

    The attacker holds an authenticated account with standard template creation permissions, such as the default self-provisioner role.

  2. 02Forged groups submitted

    The attacker submits a TemplateInstance request containing forged administrative groups, such as system:cluster-admins.

  3. 03Groups never validated

    Incomplete authorization checks in the TemplateInstance instantiation mechanism allow the request to specify arbitrary group memberships without proper validation.

  4. 04Controller-manager trusts them

    The openshift-controller-manager trusts the unvalidated groups when processing the request and performs actions with elevated rights.

  5. 05Full cluster control

    The attacker achieves privilege escalation, potentially gaining full administrative control over the cluster.

What happened

A flaw was found in openshift-apiserver. Incomplete authorization checks in the TemplateInstance instantiation mechanism allow requests to specify arbitrary group memberships without proper validation. An authenticated attacker with standard template creation permissions, such as the default self-provisioner role, can exploit this flaw by submitting a TemplateInstance request containing forged administrative groups (for example system:cluster-admins). Because the openshift-controller-manager trusts these unvalidated groups when processing the request, the attacker can cause the system to perform actions with elevated rights, achieving privilege escalation and potentially gaining full administrative control over the cluster.

Red Hat rates the flaw CVSS 3.1 9.9. In default OpenShift deployments, standard user accounts have authorization to instantiate templates, so any authenticated user with basic self-provisioning capabilities can achieve complete cluster-level administrative takeover. The resulting privilege escalation completely circumvents role-based access control across all namespaces. Affected products are Red Hat OpenShift Container Platform 4 and 5. No fixed release was listed at the time of writing.

What to do

  1. Inventory OpenShift clusters and identify which authenticated users hold template instantiation permissions, including the default self-provisioner role.
  2. Restrict who can create TemplateInstance objects while unpatched, and consider removing template instantiation from broad roles until a fix is applied.
  3. Audit API server logs for TemplateInstance requests carrying administrative group memberships, especially system:cluster-admins, from accounts that should not hold them.
  4. Review cluster-admin bindings and recent administrative actions for changes made by accounts that only held self-provisioner rights.
  5. Watch for a fixed OpenShift release from Red Hat and apply it as soon as one is available.
  6. If a forged TemplateInstance request or an unexpected privilege grant is found, treat the cluster as compromised: investigate the account, revoke the grants, and review workloads and secrets for further access.

Management note

A 9.9 that needs nothing more than a normal user account is the worst kind of privilege escalation: the attacker is already inside, using a feature that is on by default. Restricting template instantiation is the lever available today, and the audit is not optional, because a successful exploit looks like a legitimate admin action.