NIST deprecates RSA-2048 from 2030. Find every one of them before attackers do.
🐹
🐹 Go
Not in CISA KEV
HIGH severity

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

HIGHFix: istio/istio@6db50ef

GHSA-vwc3-94w5-r373 is a high-severity (CVSS 7.7) NULL Pointer Dereference vulnerability in istio.io/istio. A fix is available for istio.io/istio — see the affected versions and patch details below.

Also known asCVE-2026-145372
Published
Updated
Affected
1 pkg
Patched
1 / 1
Exploits
None indexed
Exploitation data as of Dec 5, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

Real-World Exposure

1 pkg affected
🐹istio.io/istio

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects Go packages — download data is not available via public APIs for these ecosystems.

Description

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

  • 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.
  • Otherwise, both triggers must be blocked with admission policies (ValidatingAdmissionPolicy, or Kyverno/Gatekeeper on older clusters). Blocking only one leaves the other path open:
    • 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.
    • 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.
  • 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.

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.

Affected Packages

1 total 1 fixed
EcosystemPackageVulnerable rangeFix
🐹Goistio.io/istio≥ 0.0.0-20260112152740-3af7534ca9a9&&< 0.0.0-20261203004201-f36614deb0860.0.0-20261203004201-f36614deb086go get istio.io/istio@v0.0.0-20261203004201-f36614deb086

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for istio.io/istio, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update istio.io/istio to 0.0.0-20261203004201-f36614deb086 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-vwc3-94w5-r373 is resolved across your whole dependency graph.

  3. Workarounds

    Cap what an attacker can consume: apply request size, rate and timeout limits in front of the affected component, and run it with memory and CPU limits so exhaustion degrades one worker rather than the whole service.

Frequently Asked Questions

### 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
O3 Security · Impact-Aware SCA

Is GHSA-vwc3-94w5-r373 in your dependencies?

Find it across Go, including transitive dependencies.