{"id":"CVE-2026-145372","aliases":["EUVD-2026-144862","GHSA-vwc3-94w5-r373"],"status":"published","title":"istiod crash-loop (DoS) via the gateway-name pod label when Gateway API is disabled","description":"Istio is an open platform to connect, manage, and secure microservices. From 1.30.0 until 1.30.9, 1.31.5, and 1.32.1, when Kubernetes Gateway API support is disabled (PILOT_ENABLE_GATEWAY_API=false), istiod calls methods on an uninitialized Gateway API controller without a nil check, causing a nil pointer dereference panic through two paths. Adding the gateway.networking.k8s.io/gateway-name label to an injected workload pod crashes istiod when that proxy's inbound listeners are generated. Separately, an Istio Gateway whose TLS credentialName, credentialNames, or kubernetes-gateway:// caCertCredentialName references a Secret in another namespace crashes istiod when the servers are merged for a gateway proxy whose verified identity namespace matches the Gateway's namespace. Either path requires only namespace-scoped permissions and causes a mesh-wide istiod crash loop that continues after the attacker loses access, until the label or Gateway is removed. While istiod is unavailable, configuration and security-policy updates stop propagating, certificate issuance stalls, and the sidecar injection and validation webhooks fail. This issue is fixed in versions 1.30.9, 1.31.5, and 1.32.1.","severity":{"version":"3.1","score":7.7,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:H","level":"high","assessor":"cna","from":"cve"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-476"],"published":"2026-12-04T22:00:35Z","modified":"2026-12-05T00:00:20Z","fixes":[{"ecosystem":"Go","package":"istio.io/istio","fixed_in":["0.0.0-20261203004201-f36614deb086"],"sources":["ghsa"]}],"affected":[{"source":"ghsa","ecosystem":"Go","package":"istio.io/istio","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.0.0-20260112152740-3af7534ca9a9"},{"fixed":"0.0.0-20261203004201-f36614deb086"}]}]}],"products":[{"vendor":"istio","product":"istio"}],"references":[{"url":"https://github.com/istio/istio/security/advisories/GHSA-vwc3-94w5-r373","tags":["x_refsource_CONFIRM","advisory"]},{"url":"https://github.com/istio/istio/commit/6db50ef5c57f93e0d4bbae9012fe0be2b94308c3","tags":["x_refsource_MISC","fix"]},{"url":"https://github.com/istio/istio/commit/8356c6fd86d082b23564d906a394041cb08eb847","tags":["x_refsource_MISC","fix"]},{"url":"https://github.com/istio/istio/commit/c57599b1da59a608da1c602d24a96140e02363b3","tags":["x_refsource_MISC","fix"]},{"url":"https://github.com/istio/istio/releases/tag/1.30.9","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/istio/istio/releases/tag/1.31.5","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/istio/istio/releases/tag/1.32.1","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/istio/istio/commit/f36614deb086fb523922ed1a69ccfd2066e72bf7"},{"url":"https://github.com/advisories/GHSA-vwc3-94w5-r373"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/145xxx/CVE-2026-145372.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-145372","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2026-145372","title":"istiod crash-loop (DoS) via the gateway-name pod label when Gateway API is disabled","description":"Istio is an open platform to connect, manage, and secure microservices. From 1.30.0 until 1.30.9, 1.31.5, and 1.32.1, when Kubernetes Gateway API support is disabled (PILOT_ENABLE_GATEWAY_API=false), istiod calls methods on an uninitialized Gateway API controller without a nil check, causing a nil pointer dereference panic through two paths. Adding the gateway.networking.k8s.io/gateway-name label to an injected workload pod crashes istiod when that proxy's inbound listeners are generated. Separately, an Istio Gateway whose TLS credentialName, credentialNames, or kubernetes-gateway:// caCertCredentialName references a Secret in another namespace crashes istiod when the servers are merged for a gateway proxy whose verified identity namespace matches the Gateway's namespace. Either path requires only namespace-scoped permissions and causes a mesh-wide istiod crash loop that continues after the attacker loses access, until the label or Gateway is removed. While istiod is unavailable, configuration and security-policy updates stop propagating, certificate issuance stalls, and the sidecar injection and validation webhooks fail. This issue is fixed in versions 1.30.9, 1.31.5, and 1.32.1.","status":"published","published":"2026-12-04T22:00:35.301Z","modified":"2026-12-04T22:00:35.301Z","cvss":[{"version":"3.1","score":7.7,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:H","level":"high","assessor":"cna"}],"cwes":["CWE-476"],"updated_at":"2026-12-04T22:11:50.746659Z"}],"euvd":[{"id":"EUVD-2026-144862","description":"Istio is an open platform to connect, manage, and secure microservices. From 1.30.0 until 1.30.9, 1.31.5, and 1.32.1, when Kubernetes Gateway API support is disabled (PILOT_ENABLE_GATEWAY_API=false), istiod calls methods on an uninitialized Gateway API controller without a nil check, causing a nil pointer dereference panic through two paths. Adding the gateway.networking.k8s.io/gateway-name label to an injected workload pod crashes istiod when that proxy's inbound listeners are generated. Separately, an Istio Gateway whose TLS credentialName, credentialNames, or kubernetes-gateway:// caCertCredentialName references a Secret in another namespace crashes istiod when the servers are merged for a gateway proxy whose verified identity namespace matches the Gateway's namespace. Either path requires only namespace-scoped permissions and causes a mesh-wide istiod crash loop that continues after the attacker loses access, until the label or Gateway is removed. While istiod is unavailable, configuration and security-policy updates stop propagating, certificate issuance stalls, and the sidecar injection and validation webhooks fail. This issue is fixed in versions 1.30.9, 1.31.5, and 1.32.1.","status":"published","published":"2026-12-04T22:00:35Z","modified":"2026-12-04T22:00:35Z","cvss":[{"version":"3.1","score":7.7,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-12-04T23:43:11.593246Z"}],"ghsa":[{"id":"GHSA-vwc3-94w5-r373","title":"istiod crash-loop (DoS) via the gateway-name pod label when Gateway API is disabled","description":"### Summary\n\nWhen 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:\n\n1. adding the `gateway.networking.k8s.io/gateway-name` label to an injected workload pod (panic while generating the pod's inbound listeners), or\n2. 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).\n\nBoth 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.\n\n### Details\n\nThe `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.\n\n**`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.\n\nThe 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.\n\n**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 `\u003cns\u003e/\u003cname\u003e`, `kubernetes://\u003cns\u003e/\u003cname\u003e` and `kubernetes-gateway://\u003cns\u003e/\u003cname\u003e`, 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.\n\nThe 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.\n\nFixes are available in 1.32.X, 1.31.X and 1.30.X.\n\n### Workaround\n\n- Interim posture, if acceptable: set `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.\n- Otherwise, both triggers must be blocked with admission policies (`ValidatingAdmissionPolicy`, or Kyverno/Gatekeeper on older clusters). Blocking only one leaves the other path open:\n  - Block the `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.\n  - Reject Istio `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.\n- Tightening RBAC narrows the attacker pool, but it cannot restrict a specific label key or the contents of a `Gateway`, so it is not sufficient on its own.\n\n### Proof of Concept\n\n**Trigger 1: `gateway-name` pod label**\n\n1. Install Istio with `PILOT_ENABLE_GATEWAY_API=false`.\n2. Create a namespace with sidecar injection enabled and deploy an injected workload.\n3. Add the label `gateway.networking.k8s.io/gateway-name=\u003cany value\u003e` to one of the workload's pods.\n4. 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).\n\n**Expected:** the label has no effect and istiod keeps serving.\n**Observed:** istiod crash-loops mesh-wide.\n\n**Trigger 2: cross-namespace `credentialName`** (verified live on Istio 1.32.0, kind)\n\n1. Install Istio with `PILOT_ENABLE_GATEWAY_API=false` (default profile, which deploys `istio-ingressgateway` in `istio-system`).\n2. 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`.\n3. 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.\n\n**Expected:** the cross-namespace reference is rejected (as in Istio 1.26 and earlier) and istiod keeps serving.\n**Observed:** istiod crash-loops mesh-wide.\n\n### Impact\n\nDenial 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.","status":"published","published":"2026-12-04T22:54:05Z","modified":"2026-12-04T22:54:06Z","cvss":[{"version":"3.1","score":7.7,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-476"],"updated_at":"2026-12-04T22:59:48.349285Z"}],"nvd":[{"id":"CVE-2026-145372","description":"Istio is an open platform to connect, manage, and secure microservices. From 1.30.0 until 1.30.9, 1.31.5, and 1.32.1, when Kubernetes Gateway API support is disabled (PILOT_ENABLE_GATEWAY_API=false), istiod calls methods on an uninitialized Gateway API controller without a nil check, causing a nil pointer dereference panic through two paths. Adding the gateway.networking.k8s.io/gateway-name label to an injected workload pod crashes istiod when that proxy's inbound listeners are generated. Separately, an Istio Gateway whose TLS credentialName, credentialNames, or kubernetes-gateway:// caCertCredentialName references a Secret in another namespace crashes istiod when the servers are merged for a gateway proxy whose verified identity namespace matches the Gateway's namespace. Either path requires only namespace-scoped permissions and causes a mesh-wide istiod crash loop that continues after the attacker loses access, until the label or Gateway is removed. While istiod is unavailable, configuration and security-policy updates stop propagating, certificate issuance stalls, and the sidecar injection and validation webhooks fail. This issue is fixed in versions 1.30.9, 1.31.5, and 1.32.1.","status":"published","published":"2026-12-04T22:18:19.377Z","modified":"2026-12-04T22:18:19.377Z","cvss":[{"version":"3.1","score":7.7,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:H","level":"high","assessor":"secondary"}],"cwes":["CWE-476"],"updated_at":"2026-12-04T22:19:01.32028Z"}],"osv":[{"id":"CVE-2026-145372","title":"istiod crash-loop (DoS) via the gateway-name pod label when Gateway API is disabled","description":"Istio is an open platform to connect, manage, and secure microservices. From 1.30.0 until 1.30.9, 1.31.5, and 1.32.1, when Kubernetes Gateway API support is disabled (PILOT_ENABLE_GATEWAY_API=false), istiod calls methods on an uninitialized Gateway API controller without a nil check, causing a nil pointer dereference panic through two paths. Adding the gateway.networking.k8s.io/gateway-name label to an injected workload pod crashes istiod when that proxy's inbound listeners are generated. Separately, an Istio Gateway whose TLS credentialName, credentialNames, or kubernetes-gateway:// caCertCredentialName references a Secret in another namespace crashes istiod when the servers are merged for a gateway proxy whose verified identity namespace matches the Gateway's namespace. Either path requires only namespace-scoped permissions and causes a mesh-wide istiod crash loop that continues after the attacker loses access, until the label or Gateway is removed. While istiod is unavailable, configuration and security-policy updates stop propagating, certificate issuance stalls, and the sidecar injection and validation webhooks fail. This issue is fixed in versions 1.30.9, 1.31.5, and 1.32.1.","status":"published","published":"2026-12-04T22:00:35.301Z","modified":"2026-12-05T00:00:20.023653209Z","cvss":[{"version":"3.1","score":7.7,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-476"],"updated_at":"2026-12-05T00:05:02.293245Z"}]}}
