KubernetesSecurityCloudIONOS

IONOS Kubernetes Flaw: Admin Kubeconfig in Every Worker VM

By the Sec & Cloud editorial teamPublished on 3 min read

IONOS Kubernetes Flaw: Admin Kubeconfig in Every Worker VM

An admin kubeconfig, delivered into every worker VM of the cluster. That's what researcher Henrik Gerdes found in IONOS Cloud's managed Kubernetes offering. The flaw is now fixed, but it highlights a problem that applies to every managed Kubernetes: what your provider actually puts inside your VMs.

A discovery that started as a routine audit

Henrik Gerdes was dissecting the node join process across several managed Kubernetes offerings. His method: launch a debug pod on his IONOS cluster and read the cloud-init scripts executed when VMs boot.

First surprise: IONOS doesn't use a metadata service. Unlike other clouds, cloud-init user-data isn't served from a 169.254.169.254-style endpoint — it is injected directly into the VM's filesystem in nocloud mode.

Second surprise: one of the files generated from that user-data contains a complete kubeconfig.

admin, plain and simple

The verification doesn't take long. Running kubectl auth can-i with that kubeconfig returns the worst possible answer: the identity is admin.

In practice, a cluster administrator credential could be dumped from any worker VM. Anyone who compromised a single node — a vulnerable application, a container escape, a stolen SSH credential — gained full access to the cluster: read every secret, deploy workloads on other nodes, pivot to everything the cluster touches.

This is the exact opposite of sound bootstrap hygiene. The moment a node joins a cluster is critical precisely because credentials are exchanged — which is why Kubernetes ships short-lived bootstrap tokens, systematic rotation, and least privilege on the kubelet side. A permanent, static admin credential injected into every node image breaks every one of those rules.

A responsible disclosure, done right

Two details soften the flaw's impact. First, the kubeconfig file itself no longer existed at the time of the investigation — it was the content left readable in the user-data.txt file that betrayed the method. Second, the researcher followed the responsible disclosure process: IONOS was notified, fixed the issue, and the full write-up was published on September 18, 2026.

No known exploitation so far. But the window during which this behavior was live is a useful reminder: a cluster's attack surface isn't limited to its exposed APIs.

What it means for your managed Kubernetes

The lesson goes well beyond IONOS. If you run managed Kubernetes, three checks are worth performing:

  1. Look at what runs during your nodes' bootstrap. A debug pod with host filesystem access is enough to read the cloud-init scripts, exactly as Gerdes did. What you find there should look like an ephemeral token, not a complete kubeconfig.
  2. Check whether a metadata service exists and how it's configured. Its absence changes the threat model: user-data ends up in the VM's filesystem, within reach of any local process.
  3. Apply least privilege to the kubelet. The credential a node uses to talk to the control plane should be limited to what that node needs, with rotation.

Managed offerings reduce operational burden, not responsibility. Verifying what the provider puts in your VMs remains yours.

Sources