⚠️

سلب مسئولیت و اخلاق حرفه‌ای

این مطالب صرفاً برای اهداف آموزشی، پژوهشی و افزایش آگاهی امنیتی ارائه شده‌اند. هرگونه استفاده غیرمجاز، غیرقانونی یا سوءاستفاده از اطلاعات، ابزارها و روش‌های مطرح‌شده، کاملاً بر عهده مخاطب است. نویسنده و منتشرکننده هیچ مسئولیتی در قبال خسارات، آسیب‌ها یا پیامدهای ناشی از استفاده نادرست از این مطالب نخواهند داشت.

CVE-2026-140094: OpenShift TemplateInstance Group Forging Flaw Enables Cluster-Admin Privilege Escalation | Alireza Bolbolabadi - Red Team Security
LOADING

CVE-2026-140094: OpenShift TemplateInstance Group Forging Flaw Enables Cluster-Admin Privilege Escalation

Executive summary

CVE-2026-140094 is a privilege-escalation defect in the OpenShift API server's TemplateInstance handling. The root problem is not that the attacker already holds an administrative role, but that the attacker can claim one: group membership fields carried in a TemplateInstance request are not validated against the authenticated requester's actual group bindings, and the downstream openshift-controller-manager treats the asserted groups as authoritative. A user who can merely create templates — a permission routinely handed to ordinary developers through the default self-provisioner role — can therefore set the requested groups to system:cluster-admins and have controller-side work performed under that identity.

The CVSS base score attached to the record is 9.9, reflecting a network-reachable, low-complexity, low-privilege-requirement attack with full administrative impact. No exploitation is currently recorded and the CVE is not listed in the CISA KEV catalog, but those are reconnaissance indicators rather than mitigation: the described mechanism is exploitable at will by any qualifying authenticated account.

What the vulnerability is

The TemplateInstance API accepts a request body that may include group membership fields. Those fields are passed through without checking whether the requesting identity actually belongs to the asserted groups. The flow breaks down as a two-stage trust failure:

  1. openshift-apiserver accepts the TemplateInstance request without validating the asserted group list against the authenticated user's real group memberships.

  1. openshift-controller-manager consumes the request and acts on it, assuming the API server already sanitized the identity data.

Because the second component honours the asserted groups, the effective privilege of the operation equals whatever the forged group grants. In the worst case described by the advisory, that is cluster-wide administrative control.

This distinguishes the flaw from a routine RBAC misconfiguration. The attacker does not need to be a member of the target group; the escalation comes from asserting membership, not from holding it. Any authenticated principal with template creation permission is a viable starting point.

Affected systems

  • openshift-apiserver — the OpenShift API server, where the missing authorization validation on caller-supplied group fields originates.

  • openshift-controller-manager — the trusting consumer side of the flow, which performs template-related work under the asserted identity.

The supplied advisory material does not enumerate affected version numbers, does not reference specific OpenShift release streams, and does not name a patched build, advisory, or remediation commit. Any statement about which releases contain or fix the defect would go beyond the available evidence. Patch status should therefore be treated as unknown until the vendor record for CVE-2026-140094 is consulted directly.

Root cause

The root cause is a missing server-side authorization check on caller-controlled group and identity fields in the TemplateInstance path. The API server forwards user-supplied group data downstream instead of deriving group membership from the authenticated request context — for instance, from the requester's own group bindings — while the controller-manager assumes the API server performed that derivation. The two components share an implicit contract, and neither enforces it.

That missing enforcement is what makes the issue exploitable end-to-end rather than a single-component weakness: a validation gap in one component combined with an unverified trust assumption in the other.

Attack vector and prerequisites

| Factor | Requirement |

|---|---|

| Network | The request is submitted to the cluster API over the network (AV:N). |

| Authentication | Required — the attacker must be an authenticated user. |

| Authorization | Required but low-barrier; standard template creation permissions such as the default self-provisioner role are sufficient. |

| Complexity | Low — crafting a TemplateInstance request with forged group fields is sufficient; no memory corruption, race condition or exploit gadget is described. |

| Impact | Privilege escalation to full administrative control over the cluster. |

The population of potential attackers is therefore broader than the CVE identifier alone suggests. In many OpenShift deployments, self-provisioner-style roles are bound to ordinary authenticated users or project members, so the flaw is reachable by insiders and compromised low-privilege accounts alike.

Real-world exploitability

The technical shape of the defect is straightforwardly exploitable: a pure authorization-validation bypass through a documented, commonly granted API surface, with no dependence on unusual environmental conditions. The presence of the default self-provisioner role as a named exploitation path materially broadens the attacker set.

The intelligence record is explicit on two limiting facts — there is no recorded exploitation evidence, and the CVE is absent from the CISA KEV catalog. The correct characterization is a critical-severity, low-complexity flaw that is not known to be exploited in the wild as of the available data. Absence of known exploitation reflects reconnaissance status, not a reduction in risk.

A note on scoring: the accompanying risk assessment assigns a technical score of 40/100, which appears driven by metadata factors (no KEV entry, no exploitation evidence, unknown patch status) rather than by the intrinsic mechanics. Where a scoring model and the advisory description disagree, the advisory's technical description should govern prioritization.

Detection

  • Hunt for forged groups in template requests. Correlate TemplateInstance create activity in API server audit logs with the authenticated user's real group memberships, and alert on any request asserting privileged groups such as system:cluster-admins that the requester does not actually hold.

  • Follow the controller-side action sequence. A low-privilege template instantiation followed closely by an administrative action performed by the controller-manager is the strongest available exploitation indicator. Review controller-manager and template-processing audit events for actions taken under administrative identities.

  • Check for persistence. An attacker who exercised the flaw may have used the elevated identity beyond the original request; look for unexpected cluster-admin bindings, role bindings, or newly created privileged objects shortly after such template activity.

  • Verify scope. Enumerate memberships and bindings for cluster-admin and other sensitive groups to spot anything that should not exist.

Mitigation

No fixed version is identified in the material provided, so remediation should be driven by the vendor advisory for CVE-2026-140094 at https://nvd.nist.gov/vuln/detail/CVE-2026-140094.

Interim measures while the fix status is confirmed:

  • Review which ClusterRoles and bindings grant template instantiation and TemplateInstance create permissions, and identify every holder — paying particular attention to the self-provisioner role named in the advisory.

  • Narrow template creation and TemplateInstance write access to a tightly controlled set of trusted users or service accounts, removing broad grants to ordinary authenticated users or project members.

  • Where operationally tolerable, gate or strip the ability to assert group membership during template instantiation so that only identity-derived groups are honoured.

Expert insight

The interesting part of CVE-2026-140094 is architectural rather than cryptographic. The defect lives in the seam between two controllers: one that mints identity assertions and one that consumes them. Whenever a controller accepts identity attributes from a request payload and a second controller executes work under those attributes, there is an implicit contract that some component must validate the assertion against the authenticated principal. Here, no component does.

That pattern generalises beyond OpenShift. Any API where a caller can influence the subject under which a background controller operates — service-account impersonation, delegated group claims, tenant-scoped role hints — deserves the same question: is the asserted identity derived server-side from the authenticated context, or copied from the request body? If it is copied, the escalation path exists regardless of how carefully the RBAC rules are written. The presence of a self-provisioner role as a named exploitation route also underlines that the effective security boundary of an API is set by its most permissive common grant, not by its most restrictive one.

The lack of exploitation evidence and the absence from the KEV catalog should be read for what they are: the window before this becomes noisy in logs. The value of acting now is that a targeted log review can attribute historic requests to real group memberships, which is considerably easier to do before elevated identities have been persisted into new bindings and objects.

منابع

·
← اخبار