high

CVE-2026-145372

Go · istio.io/istio

Summary

istiod crash-loop (DoS) via the gateway-name pod label when Gateway API is disabled

Severity
high
CVSS
7.7
EPSS
0.7% (p53)
CWE
CWE-476
Also known as
GHSA-vwc3-94w5-r373
Published
2026-12-04
Updated
2026-12-04

Advisory details

Summary

When Kubernetes Gateway API support is disabled (PILOT_ENABLE_GATEWAY_API=false), istiod can be made to panic with a nil pointer dereference through either of two paths:

  1. adding the gateway.networking.k8s.io/gateway-name label to an injected workload pod (panic while generating the pod's inbound listeners), or
  2. creating an Istio Gateway (networking.istio.io) whose TLS credentialName/credentialNames (or a kubernetes-gateway:// caCertCredentialName) references a Secret in another namespace (panic while merging gateway servers for the gateway proxy).

Both can be triggered with namespace-scoped permissions alone, and the resulting crash-loop is self-sustaining: it continues after the attacker loses access, until the label or the Gateway resource is removed.

Details

The GatewayAPIController is initialized only when PILOT_ENABLE_GATEWAY_API=true (pilot/pkg/bootstrap/configcontroller.go); with the flag off it stays nil, and so does PushContext.GatewayAPIController. Two code paths call methods on it without a nil check.

gateway-name pod label. In the common sidecar inbound HTTP filter chain — not a Gateway-API-specific path — buildHTTPConnectionManager (pilot/pkg/networking/core/listener_builder.go) checks whether the proxy carries the gateway.networking.k8s.io/gateway-name label and, if so, calls lb.push.GatewayAPIController.HasInferencePool(...) to decide whether to attach the InferencePool ExtProc filter. The call is not guarded against a nil controller, so with Gateway API disabled and the label present it is a nil method call and istiod panics.

The label is an ordinary, attacker-settable pod label — it is not restricted to Gateway-API-managed workloads. Any pod that actually joins the mesh and connects to the vulnerable istiod triggers the panic when it requests listeners. After each istiod restart the labeled proxy reconnects and requests LDS again, so the crash repeats.

Cross-namespace credentialName. When merging the servers of an Istio Gateway for a gateway proxy whose verified identity matches the Gateway's namespace, mergeGateways (pilot/pkg/model/gateway.go) accepts same-namespace credential references directly. For a reference to another namespace it asks PushContext.SecretAllowed (pilot/pkg/model/push_context.go) whether a reference grant permits it. SecretAllowed delegates to GatewayAPIController.SecretAllowed(...) without a nil check, so with Gateway API disabled istiod panics. This applies to the credentialName/credentialNames forms <ns>/<name>, kubernetes://<ns>/<name> and kubernetes-gateway://<ns>/<name>, and to kubernetes-gateway:// caCertCredentialName. Istio 1.26 and earlier checked for a nil controller here; the check was lost in 1.27.0. The panic recurs whenever configuration is generated for the gateway proxy, including after each istiod restart.

The fix covers both paths. It skips the InferencePool ExtProc lookup when the Gateway API controller is not initialized: with Gateway API disabled no inference pools can exist, so the lookup is unnecessary. It also makes SecretAllowed fail closed when the controller is not initialized. Reference grants are only implemented by the Gateway API controller, so with it disabled no cross-namespace secret reference is treated as explicitly allowed, which restores the pre-1.27 behavior.

Fixes are available in 1.32.X, 1.31.X and 1.30.X.

Workaround

Proof of Concept

Trigger 1: gateway-name pod label

  1. Install Istio with PILOT_ENABLE_GATEWAY_API=false.
  2. Create a namespace with sidecar injection enabled and deploy an injected workload.
  3. Add the label gateway.networking.k8s.io/gateway-name=<any value> to one of the workload's pods.
  4. The labeled proxy requests listeners, istiod panics with a nil pointer dereference, and istiod enters CrashLoopBackOff. It keeps crashing until the label is removed (or the flag is enabled).

Expected: the label has no effect and istiod keeps serving. Observed: istiod crash-loops mesh-wide.

Trigger 2: cross-namespace credentialName (verified live on Istio 1.32.0, kind)

  1. Install Istio with PILOT_ENABLE_GATEWAY_API=false (default profile, which deploys istio-ingressgateway in istio-system).
  2. Create an Istio Gateway in the same namespace as a gateway proxy (for example in istio-system with selector istio: ingressgateway), with an HTTPS server whose tls.credentialName points at another namespace, for example other-ns/foo.
  3. istiod panics with a nil pointer dereference in PushContext.SecretAllowed within seconds and enters CrashLoopBackOff. The loop is self-sustaining — each restart ends when the gateway proxy reconnects — and continues until the Gateway is removed or corrected, after which istiod recovers.

Expected: the cross-namespace reference is rejected (as in Istio 1.26 and earlier) and istiod keeps serving. Observed: istiod crash-loops mesh-wide.

Impact

Denial of service against the istiod control plane. A user with only namespace-scoped permissions can crash istiod for the whole mesh, either by creating or labeling pods in a mesh namespace, or by creating an Istio Gateway in a namespace that runs a gateway proxy. Either way the attack crosses the namespace-to-control-plane trust boundary. While istiod is down, configuration changes (including security-policy updates) stop propagating, certificate issuance stalls, and the sidecar injection and validation webhooks fail. The crash-loop is self-sustaining and survives the attacker losing access. Requires PILOT_ENABLE_GATEWAY_API=false, a documented and supported configuration. No direct confidentiality or integrity impact.

References

Related advisories

Is your project exposed to this? Stateward checks every dependency on every pull request and flags it only if your code actually reaches it.

Check my repo

Summarize with AI

ChatGPTClaudePerplexity

Sources: CISA KEV (public domain), OSV.dev & GitHub Advisory Database (CC-BY-4.0), FIRST EPSS, NVD/CWE (public domain). Served live from the Stateward advisory database.