OpenShift: a template request can hand an ordinary user cluster-admin
A flaw in OpenShift's TemplateInstance handling scores 9.9: any user who can create templates can forge admin group membership and take over the cluster. No fix yet.

Affects
- Red Hat OpenShift
Tracked as
CVE-2026-140094Red Hat OpenShift Container Platform 4 and 5 · CVSS 9.9
A flaw in Red Hat OpenShift Container Platform lets an ordinary user become a cluster administrator. The bug, CVE-2026-140094, scores 9.9 — the highest of this week’s disclosures — and it needs nothing more than the standard permission to create templates. The record became public on 1 December 2026, and Red Hat still lists every affected release as awaiting a fix.
Forged groups, trusted blindly
OpenShift templates let users spin up a set of resources from a blueprint. Creating one goes through a TemplateInstance object, which carries a field naming the groups the requester belongs to. The authorisation checks on that field are incomplete: they do not properly validate the group memberships a request states.
An attacker with ordinary template-creation rights — the kind that comes with the default self-provisioner role — can submit a TemplateInstance request that names administrative groups it does not belong to, such as system:cluster-admins. The OpenShift controller manager then trusts those groups when it carries out the request, and the attacker’s actions run with elevated rights. From there it is a short step to full administrative control of the cluster: reading secrets, changing workloads, and reaching every namespace.
The flaw affects OpenShift Container Platform 4 and 5. It is the highest-scoring OpenShift flaw of the current round, and it stands apart from the separate oauth-proxy bypass disclosed the same week.
What to do while the fix is pending
Red Hat has published no mitigation and no fixed build yet, so the defence is to shrink who can reach the vulnerable path and to look for signs it was already used.
Restrict and audit now
Tighten template creation
Review who holds the self-provisioner role and template creation rights. Take those rights away from anyone who does not need them, and keep them off service accounts.
Audit recent TemplateInstance objects
Look back through TemplateInstance requests for group names that do not match the requester’s real memberships, especially system:cluster-admins and other privileged groups.
Watch for the errata
Red Hat has not shipped a fixed openshift-apiserver build yet. Apply it as soon as the errata lands, and re-check the audit after patching.
Because the flaw needs only a low-privilege account, the audit matters as much as the restriction: any compromised developer or service account with template rights could already have used it. Treat unexpected admin group memberships in TemplateInstance history as an incident, not a curiosity.
Red Hat’s CVE page carries the full description and the list of affected releases.
Sources
- CVE-2026-140094Red Hat
- CVE-2026-140094 DetailNVD


