Home/Research/Post

GHSA-vwc3-94w5-r373: istiod crash-loop (DoS) via the gateway-name pod label when Gateway API is disabled

  • Severity: HIGH
  • CVE: CVE-2026-145372
  • Ecosystems: go
  • Packages: istio.io/istio

### 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 i…

Source: GitHub Security Advisories · 2026-12-04