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:
gateway.networking.k8s.io/gateway-name label to an injected workload pod (panic while generating the pod's inbound listeners), orGateway (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.
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.
PILOT_ENABLE_GATEWAY_API=true while leaving the status, deployment and gatewayclass sub-controllers disabled. This initializes the Gateway API controller and so avoids both crash paths, but it re-enables Gateway API processing, so it only suits operators who want to minimize the Gateway API surface rather than disable it entirely.ValidatingAdmissionPolicy, or Kyverno/Gatekeeper on older clusters). Blocking only one leaves the other path open:
gateway.networking.k8s.io/gateway-name label on workload pods. This covers both creating a pod with the label and patching it onto an existing pod. Exclude system namespaces from the binding, and remove it if Gateway API is later re-enabled.Gateway resources whose credentialName, credentialNames or caCertCredentialName names a namespace other than the Gateway's own. With Gateway API disabled such references are never honored anyway, so blocking them removes no working functionality.Gateway, so it is not sufficient on its own.Trigger 1: gateway-name pod label
PILOT_ENABLE_GATEWAY_API=false.gateway.networking.k8s.io/gateway-name=<any value> to one of the workload's pods.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)
PILOT_ENABLE_GATEWAY_API=false (default profile, which deploys istio-ingressgateway in istio-system).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.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.
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.
{
"cwe_ids": [
"CWE-476"
],
"github_reviewed": true,
"github_reviewed_at": "2026-12-04T22:54:05Z",
"nvd_published_at": null,
"severity": "HIGH"
}