Back to articles

When namespace write access crosses namespaces: an RBAC check for CVE-2026-2270

CVE-2026-2270 lets a user with namespace-scoped write access to StatefulSets and ControllerRevisions create a pod in another namespace. The built-in edit and admin roles don't grant that pair, but wildcard roles do. Here is how to check your controller manager version, list who holds the permissions, and what to do if you can't patch yet.

Namespace-scoped RBAC rests on one assumption: a Role in namespace A grants nothing in namespace B. CVE-2026-2270 breaks that assumption for one specific pair of permissions. A user who can write both StatefulSets and ControllerRevisions in their own namespace can get the StatefulSet controller to create a pod in a different one.

The fix is a patch release of kube-controller-manager. The more useful question is who holds that pair of permissions today: it tells you how exposed you were and whether anything beyond the upgrade needs doing.

Who this is for: platform and security engineers running multi-tenant or multi-team clusters.

What you walk away with: the confirmed facts from the official advisory, commands to check your controller manager version, a method to list every subject that holds the vulnerable permission pair, and options if you can't patch yet.

This article extends the one-hour RBAC audit. The vulnerability was not reproduced. Step 2's queries and step 3's admission policy were run on GKE 1.36.4 on 17 November 2026; the rest is written from the advisory and the Kubernetes documentation.

What the advisory says

The official advisory was published on 14 September 2026. The facts below are taken from it and from the official CVE feed.

Field Value
Component kube-controller-manager (StatefulSet controller)
Rating Medium, 5.9 (CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:N)
Affected v1.37.0; v1.36.4 and earlier; v1.35.8 and earlier; v1.34.11 and earlier
Fixed v1.37.1, v1.36.5, v1.35.9, v1.34.12

The advisory describes a confused deputy attack. The StatefulSet controller stores the history of a StatefulSet in ControllerRevision objects and restores from them. A user with namespace-scoped write permissions on both StatefulSet and ControllerRevision objects can use that restore path to make the controller create a pod in another namespace. The advisory states that the attacker has "full control over the resulting pod's metadata and specification, including namespace selection".

The controller is the deputy. It holds pod-creation rights everywhere, and it acted on data the attacker controlled. The fixed versions, in the advisory's words, "ensure that only the spec field in StatefulSets will be restored from ControllerRevisions".

Why it is rated Medium

Two things hold the score down.

The privileges required are high. The vector says PR:H. The attacker already needs write access to two resource types in at least one namespace.

The pod doesn't survive by default. The advisory notes that the cross-namespace pod "will be immediately deleted by the garbage collector unless the attacker is able to construct a valid StatefulSet OwnerReference", which "would require referencing the UID of an existing StatefulSet in the victim's namespace". That is the AC:H in the vector.

Don't read the second point as a strong barrier. A UID is not a secret. It is in the metadata of the object and visible to anyone who can read StatefulSets in the target namespace. Clusters that give every engineer the view ClusterRole cluster-wide hand that UID out. The advisory does not discuss how an attacker would obtain it, so treat this paragraph as reasoning from how the API works, not as a statement from the Kubernetes security team.

A pod with an attacker-chosen spec in a namespace the attacker has no rights in is serious where it lands. It can mount that namespace's Secrets and run under its ServiceAccounts. Whether Pod Security admission in the target namespace limits what the pod may do is not covered by the advisory.

Step 1: check the version that matters

The vulnerable component is kube-controller-manager. kubectl version reports the API server, which is usually the same patch release but is not what the advisory is about.

On clusters where the controller manager runs as a static pod (kubeadm and similar):

kubectl get pods -n kube-system -l component=kube-controller-manager \
  -o jsonpath='{range .items[*]}{.spec.nodeName}{"\t"}{.spec.containers[0].image}{"\n"}{end}'

Check every control plane node. A half-finished upgrade leaves one instance on the old version, and the old one may be the leader.

On a managed service the command returns nothing. Use the control plane version your provider reports, and read the provider's security bulletin for this CVE. Providers ship their own builds and may backport the fix to a version number that looks vulnerable, or not have rolled it out yet on a number that looks fixed.

Your minor Fixed from Note
1.37 1.37.1 Only 1.37.0 is affected
1.36 1.36.5
1.35 1.35.9
1.34 1.34.12 1.34 reached end of life on 27 October 2026
1.33 and older No fix listed See below

All four fixed releases are dated 15 September 2026 on the Kubernetes releases page.

The advisory lists no version older than 1.34 as affected. That is not evidence that older versions are safe. The project only assesses and patches supported releases, and 1.33 was already out of support when this was published. If you run 1.33 or older, assume you are affected and unpatched, and treat the RBAC check below as your main control until you upgrade. The upgrade article covers the path.

Step 2: find who holds the permission pair

Exploitation needs write access to both statefulsets and controllerrevisions in the apps API group, in the same namespace. StatefulSet write access is common. ControllerRevision write access is not, and that is where to look.

What the default roles grant

In the v1.37 bootstrap policy, ControllerRevisions appear in exactly one of the aggregated user-facing roles, and only for reading:

ClusterRole statefulsets controllerrevisions
view get, list, watch get, list, watch
edit read and write read only (inherited from view)
admin read and write read only (inherited from view)
cluster-admin everything everything

So a subject bound to an unmodified edit or admin role in a namespace cannot perform this attack. That holds only while the role is unmodified, and edit and admin are aggregated roles.

Where the permission usually comes from

List the roles

This lists every Role and ClusterRole whose rules grant a write verb on ControllerRevisions. Because the control plane's aggregation controller writes the merged rules into an aggregated ClusterRole, a widened edit or admin shows up here too.

kubectl get clusterroles,roles -A -o json | jq -r '
  def incl($v): (. // []) | any(. == $v or . == "*");
  .items[]
  | select(any(.rules[]?;
      (.apiGroups | incl("apps"))
      and (.resources | incl("controllerrevisions"))
      and ((.verbs // []) | any(. == "create" or . == "update" or . == "patch" or . == "*"))))
  | [.kind, (.metadata.namespace // "-"), .metadata.name] | @tsv'

The advisory says "write permissions" without naming verbs, so the query treats create, update and patch as in scope. Expect cluster-admin and the built-in system:controller: roles statefulset-controller, daemon-set-controller and generic-garbage-collector. The v1.37 bootstrap policy adds storage-version-migrator-controller, which GKE 1.36.4 did not have. Everything else needs an explanation.

To find out which rule widened an aggregated role, list the roles that feed it:

kubectl get clusterroles -l rbac.authorization.k8s.io/aggregate-to-edit=true
kubectl get clusterroles -l rbac.authorization.k8s.io/aggregate-to-admin=true

List the subjects

For each role from the first query, find its bindings. A ClusterRole can be bound cluster-wide through a ClusterRoleBinding or per namespace through a RoleBinding, so check both:

ROLE=tenant-admin   # a role name from the previous output

kubectl get clusterrolebindings,rolebindings -A -o json | jq -r --arg role "$ROLE" '
  .items[]
  | select(.roleRef.name == $role)
  | [.kind, (.metadata.namespace // "cluster-wide"), .metadata.name,
     ([.subjects[]? | "\(.kind):\(.namespace // "")/\(.name)"] | join(","))]
  | @tsv'

A Role and a ClusterRole can share a name. Check roleRef.kind in the binding if the result looks wrong.

Each subject then needs StatefulSet write access in the same namespace to complete the pair. A role broad enough to write ControllerRevisions almost always includes StatefulSets, so treat every hit as holding both until shown otherwise.

Confirm for a specific subject

The queries above read RBAC objects. They miss anything granted by another authoriser, such as a webhook or a cloud provider's IAM integration. kubectl auth can-i asks the API server and covers every authoriser:

kubectl auth can-i create controllerrevisions.apps -n team-a \
  --as=system:serviceaccount:team-a:deployer
kubectl auth can-i patch statefulsets.apps -n team-a \
  --as=system:serviceaccount:team-a:deployer

# Everything a subject can do in a namespace
kubectl auth can-i --list -n team-a --as=jane@example.com --as-group=team-a-devs

For a user, pass their groups with --as-group, or group-based bindings are not counted. Impersonation needs the impersonate permission.

can-i --list has a documented limit: it shows what the API server can enumerate, and the docs note the list may be incomplete with authorisers that cannot enumerate rules. Use the direct can-i <verb> <resource> form for the final answer.

Don't forget indirect holders

A subject without the permission can still obtain it if they hold:

The RBAC audit article has queries for these.

Step 3: decide what to do

Situation Action
On a fixed version Still run step 2. Remove ControllerRevision write access nobody needs.
Vulnerable, only cluster administrators and controllers hold the pair Patch in your normal cycle. Cluster administrators can already create pods anywhere.
Vulnerable, tenants or CI pipelines hold the pair Remove the permission now, patch as soon as you can.
Unsupported minor (1.33 or older) Remove the permission now and plan the upgrade. No fix is coming.

Remove the permission

This is the cleanest mitigation, because few humans or pipelines have a reason to write ControllerRevisions. The StatefulSet and DaemonSet controllers maintain them. Replace wildcard rules with an explicit list:

- apiGroups: ["apps"]
  resources: ["deployments", "statefulsets", "daemonsets", "replicasets"]
  verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
- apiGroups: ["apps"]
  resources: ["controllerrevisions"]
  verbs: ["get", "list", "watch"]

Keep read access. Rollout history for StatefulSets and DaemonSets is read from ControllerRevisions.

The trade-off: you are editing roles that people and pipelines depend on, and a wildcard hides what was really in use. Check the audit log for writes by those subjects before you narrow the rule, or expect a permission denied from something you didn't know about.

If you can't change the roles: block it at admission

Where the roles belong to a vendor chart or a team you can't move quickly, a ValidatingAdmissionPolicy can refuse ControllerRevision writes from anyone except the controllers. This stopgap was run on one cluster, GKE 1.36.4: under [Deny], StatefulSet and DaemonSet rollouts, updates, kubectl rollout undo, scaling and orphaning deletes kept working. It was not run on a self-managed control plane. It is not in the advisory, whose only stated mitigation is upgrading.

apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingAdmissionPolicy
metadata:
  name: controllerrevisions-controllers-only
spec:
  failurePolicy: Fail
  matchConstraints:
    resourceRules:
    - apiGroups: ["apps"]
      apiVersions: ["v1"]
      operations: ["CREATE", "UPDATE"]
      resources: ["controllerrevisions"]
  validations:
  - expression: >-
      request.userInfo.username in [
        'system:serviceaccount:kube-system:statefulset-controller',
        'system:serviceaccount:kube-system:daemon-set-controller',
        'system:serviceaccount:kube-system:generic-garbage-collector',
        'system:kube-controller-manager'
      ]
    message: "Only workload controllers may write ControllerRevisions (CVE-2026-2270 mitigation)."
---
apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingAdmissionPolicyBinding
metadata:
  name: controllerrevisions-controllers-only
spec:
  policyName: controllerrevisions-controllers-only
  validationActions: [Warn, Audit]

Read this before applying it:

The admission article covers rolling out a policy like this safely.

Step 4: look for past use

The advisory gives no detection guidance beyond asking anyone who finds evidence of exploitation to contact security@kubernetes.io. What follows is where the documented mechanism would leave traces, not a tested detection.

The attack requires a write to a ControllerRevision by someone other than a controller. If your audit policy records writes at Metadata level or above, that is searchable:

jq -c 'select(.objectRef.resource == "controllerrevisions"
              and (.verb == "create" or .verb == "update" or .verb == "patch")
              and (.user.username | startswith("system:serviceaccount:kube-system:") | not)
              and .user.username != "system:kube-controller-manager")
       | {ts: .requestReceivedTimestamp, user: .user.username, verb: .verb,
          ns: .objectRef.namespace, name: .objectRef.name}' /var/log/kubernetes/audit.log

Adjust the path and the excluded identities to your setup. On managed services the audit log lives in the provider's logging product and needs the equivalent filter there.

The pod itself is created by the StatefulSet controller, so the audit entry for it shows a controller identity and tells you little. The ControllerRevision write is the signal. Without audit logging, there is no reliable way to look back.

What this CVE says about RBAC in general

The built-in roles held up: edit and admin do not grant the pair. The exposure comes from roles that say * where they meant "Deployments and StatefulSets". A wildcard grants resources you have never heard of, including ones whose only intended writer is a controller, and it grants every resource a future release adds to that API group.

Confused deputy bugs in controllers recur, because controllers hold wide permissions and act on objects that less-privileged users write. An explicit resource list shrinks the set of objects a tenant can use as a lever.

Checklist

  1. Version: confirm kube-controller-manager is on 1.37.1, 1.36.5, 1.35.9 or 1.34.12, or later, on every control plane node.
  2. Roles: list every role granting write access to controllerrevisions.
  3. Subjects: resolve those roles to users, groups and ServiceAccounts, and confirm with kubectl auth can-i.
  4. Reduce: replace wildcards in the apps group with explicit resources.
  5. Stopgap: if roles can't change, add the admission policy in Warn mode first.
  6. Look back: search the audit log for non-controller writes to ControllerRevisions.