Home/ Blog/ Security news/ Article
Blog · Security news

A rogue member cluster can run code as root on Red Hat's cross-cluster gateway (CVE-2026-66786)

CVE-2026-66786 (CVSS 9.1): in cert-auth mode a malicious member cluster can inject IPsec config into Red Hat Submariner and run code as root on the gateway.

Central gateway node linking Kubernetes clusters as one rogue cluster injects tainted configuration

The multicluster trust model just sprang a leak. Red Hat published CVE-2026-66786, a critical flaw in Submariner, the add-on that stitches separate Kubernetes clusters into one flat network so their pods and services can talk directly. Red Hat scores it 9.1 and marks it critical. In certificate-authentication mode, a single malicious or compromised member cluster can inject its own IPsec settings into the connection the gateway builds, and turn that configuration injection into commands that run as root on the gateway node. No fixed build is listed yet, so the defense today is to change how Submariner authenticates and to stop treating peer clusters as trusted.

CVE-2026-66786 at a glance
9.1
CVSS base score
Critical, code injection
root
privilege gained
on the gateway node
none
code fix listed
mitigation only for now
Source: Red Hat CVE record for CVE-2026-66786 (CVSS 9.1) and Red Hat Bugzilla 2507531.

What the flaw actually does

Submariner runs a gateway on each cluster and builds encrypted tunnels between them. When it runs in certificate-authentication mode, it assembles the tunnel configuration by formatting free-form strings from a Custom Resource straight into an ipsec.conf file, with no validation of what those strings contain. Per Red Hat's bug report, the connection stanza is built with fmt.Sprintf from two attacker-influenced fields, CableName and Subnets, that a peer cluster publishes.

Because those fields can carry newline characters, a peer cluster can break out of the value it is supposed to occupy and add its own configuration directives. One of the directives an IPsec daemon accepts is leftupdown, a hook script the daemon executes when a connection changes state. Point that hook at a shell and the injected configuration becomes an injected command. The gateway's IPsec process runs as root, so the command runs as root on the gateway node. Red Hat classifies the root cause as CWE-94, code injection, and scores the vector with a changed scope, meaning the damage reaches past the flawed component into the node around it. We are not publishing the payload; the mechanism is enough to understand the exposure and to detect it.

The real precondition: a member cluster you no longer control

The 9.1 headline needs a caveat that changes how you prioritize it. This is not an unauthenticated internet flaw. The CVSS vector requires high privileges, and Red Hat frames exploitation as needing two conditions that are not the default: certificate-authentication IPsec must be turned on, and the attacker must already control a cluster in the mesh, either as an insider with cluster-admin on a member cluster or by having compromised one. Red Hat rates the practical severity as moderate for that reason.

That is still a real and uncomfortable threat model. A Submariner mesh exists precisely so that clusters trust each other at the network layer. This flaw says that trust is transitive to root: compromise the least-defended cluster in the mesh, or place a malicious cluster into it, and you can escalate to root on the gateway that every other cluster depends on. For anyone running clusters across teams, business units, or tenants with uneven security postures, the weakest cluster becomes everyone's problem.

One of three Submariner flaws disclosed together

CVE-2026-66786 did not arrive alone. Red Hat published a set of Submariner findings the same day, and its bug report credits them to an AI static-analysis audit rather than a human researcher, a sign of where infrastructure bug discovery is heading. The three that share this component are worth reading together, because the fix for one steers you toward another.

DetailCVE-2026-66786CVE-2026-66783CVE-2026-66781
What an attacker getsRuns code as root on the gateway nodeDeploys a chosen image to run code with elevated privileges across the clusterReads the shared IPsec key and passively decrypts inter-cluster traffic
PreconditionControls a member cluster; cert-auth mode onCluster-admin or rights to edit the Submariner resourcePermission to read the Submariner resource
CVSS base score9.14.45.4
Source: Red Hat CVE records for CVE-2026-66786, CVE-2026-66783, and CVE-2026-66781.

The mitigation has a catch

Red Hat's stated mitigation for CVE-2026-66786 is to stop using certificate authentication and switch the tunnels to a pre-shared key, by setting IPSecCertAuthMode to false in the SubmarinerConfig resource and redeploying the gateway pods. That closes the vulnerable code path. It also moves you onto the mode that a sibling finding, CVE-2026-66781, flags for storing that pre-shared key in cleartext inside the Submariner resource, where anyone who can read the resource can lift it and decrypt traffic between clusters. The two mitigations pull against each other. Pick the one whose failure mode you can contain: a cleartext key you can protect with tight read access on the resource is easier to manage than a root shell on your gateway. Then treat both as temporary until the errata lands.

What to do before an errata lands

Track Red Hat's CVE page for the fixed build and apply it as soon as it reaches your channel. Until then, the controls are about the trust boundary, not the code:

  • Disable certificate-authentication IPsec mode where you can accept the tradeoff above, per Red Hat's guidance, and protect the pre-shared key with tight read access on the Submariner resource so the sibling flaw does not bite.

  • Scope who can create clusters and publish connection settings. The attack rides on CableName and Subnets values a peer cluster supplies. Review the roles and service accounts that can join a cluster to the mesh or edit those fields, and cut the list to the minimum.

  • Treat the least-defended cluster as the attack surface. Unify the security posture across the mesh, because this flaw makes the weakest member a path to root on the shared gateway. A cluster you would not trust with production is a cluster you should not join to the same Submariner mesh.

  • Watch the gateway for the signal. An IPsec configuration that suddenly carries a leftupdown hook, or a gateway node spawning shells or child processes from its IPsec daemon, is the behavior to alert on. Baseline the gateway's connection config and process tree, and treat any drift as suspect.

A managed detection service earns its keep here by watching that gateway behavior for you and mapping it to the technique at play, so an injected hook or an unexpected root process surfaces as an alert rather than a line in a log nobody reads.

The pattern: the management plane keeps being the soft center

This is the same seam we keep flagging: the machinery that ties clusters together is where the sharpest edges live. In August we covered an annotate-to-admin escalation and an unauthenticated proxy flaw in Red Hat's cluster-management stack, and in July a missing certificate check let an outsider join an OpenShift cluster's private tunnel. Each one lives in the layer that connects clusters rather than inside any single cluster. As more teams centralize fleet management and mesh their clusters together for convenience, that connective tissue becomes the highest-value target on the network. Model it as if the weakest cluster in the mesh is already hostile, because for CVE-2026-66786, that is all an attacker needs.

Topics

Frequently asked questions

What is CVE-2026-66786?

CVE-2026-66786 is a critical code-injection flaw (CVSS 9.1) in Submariner, the add-on that links Kubernetes clusters. In certificate-auth mode it builds the IPsec configuration from unvalidated resource fields, so a malicious member cluster can inject directives and run commands as root on the gateway node.

Is CVE-2026-66786 being exploited?

As of publication there is no public proof-of-concept, no listing in CISA's Known Exploited Vulnerabilities catalog, and no report of exploitation in the wild. Red Hat published the CVE on September 2, 2026, and credits the finding to an AI static-analysis audit reported privately on July 27.

Who is affected by CVE-2026-66786?

Operators running Submariner in certificate-authentication IPsec mode are affected. Exploitation needs an attacker who already controls a cluster in the mesh, as an insider with cluster-admin on a member cluster or through a compromised cluster, so meshes that span teams or tenants with uneven security carry the most risk.

Is there a fix for CVE-2026-66786?

No fixed build is listed yet. Red Hat's mitigation is to disable certificate-authentication IPsec by setting IPSecCertAuthMode to false in the SubmarinerConfig resource and redeploying the gateway pods. Track Red Hat's CVE page for the errata and apply it when it reaches your channel.

Why is a CVSS 9.1 flaw rated moderate by Red Hat?

The CVSS score reflects the root-level impact, but exploitation requires two non-default conditions: certificate-auth mode must be enabled, and the attacker must already control a cluster in the mesh. Red Hat rates the practical severity as moderate for that reason, though the impact if reached is full root on the gateway.

How do I detect exploitation of CVE-2026-66786?

Baseline the gateway's IPsec connection configuration and its process tree. Alert on any connection that suddenly carries a leftupdown hook script, and on the IPsec daemon spawning shells or unexpected child processes. Also review which roles and service accounts can join clusters to the mesh or edit connection fields.

Ready to meet the Guardians?

Deploys fast - agentless for monitoring and cloud, a lightweight agent for deep endpoint security. Just Suriq, standing watch.