CVE-2026-140094: Openshift-apiserver: openshift: unauthorized templateinstance spec.requester.groups privilege escalation

Published Nov 30, 2026
·
Updated

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 (e.g., 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. This flaw allows an attacker to achieve privilege escalation, potentially gaining full administrative control over the cluster.

Other sources

A flaw was found in OpenShift's TemplateInstance authorization mechanism. The OpenShift API server only validates the spec.requester.username field and fails to authorize the groups, UID, or extra fields provided in the request.

A low-privileged user with permissions to create TemplateInstances (granted by default to all authenticated users via the self-provisioner role) can exploit this by setting the username to their own identity while forging the groups field to include system:cluster-admins.

The template-instance-controller subsequently builds a user identity from these forged groups and uses its own high-privileged service account to create templated objects. By using template parameters to target system namespaces (e.g., openshift-kube-apiserver), an attacker can create a RoleBinding to grant themselves administrative access in that namespace, eventually pivoting to full cluster-admin privileges. This bypasses the security guarantees intended to prevent unprivileged users from escalating permissions via the template controller.

— Red Hat

Affected Software

1 affected component
Red Hat OpenShift API Server

Event History

Nov 30, 2026
Data Sourced
via Red Hat·08:58 PM
DescriptionSeverityAffected Software
Dec 1, 2026
CVE Published
via MITRE·01:39 AM
Data Sourced
via MITRE·01:39 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·02:18 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who can realistically exploit this flaw?

An authenticated low-privileged user who can create TemplateInstances can exploit it. The data indicates this permission is granted by default to authenticated users through the self-provisioner role.

2

What does an attacker need to submit to trigger the privilege escalation?

The attacker must create a TemplateInstance request using their own username while supplying forged requester group memberships, such as system:cluster-admins. The API server does not properly authorize the supplied groups, UID, or extra fields.

3

Why does supplying forged groups lead to elevated access?

The openshift-controller-manager trusts the unvalidated requester groups when processing the TemplateInstance. This can cause it to perform actions using elevated rights, potentially giving the attacker full cluster administrative control.

4

Are default OpenShift permissions implicated?

Yes. The described attack path relies on TemplateInstance creation permission, which the data states is available by default to all authenticated users through the self-provisioner role.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203