Bug 2587603 (CVE-2026-140094)

Summary: CVE-2026-140094 openshift-apiserver: OpenShift: unauthorized TemplateInstance spec.requester.groups privilege escalation
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security DevOps Team <prodsec-dev>
Status: NEW --- QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: akhatavk, aos-team-art-private, asdas, dfreiber, dpaolell, drow, jburrell, jdelft, jupierce, lgarciaa, mbiarnes, ppalepu, ppostler, prdhamdh, sghai, sidsharm, suppawar, vkumar, vlaad
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
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.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description OSIDB Bzimport 2026-11-30 20:58:00 UTC
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.