# Istio: istiod crash (DoS) on an xDS NACK for an unsubscribed resource type

Unauthenticated xDS NACK naming an unsubscribed resource type makes istiod dereference a nil WatchedResource and crash, DoS-ing the control plane.

- Payout: Research
- Severity: high
- Program: Istio
- Found by: ryu11235
- Disclosed: 2026-12-04
- CVE: CVE-2026-145368
- Write-up quality: 7/10
- Original: https://github.com/advisories/GHSA-r567-vfff-9c27
- Library page: https://bugbountylibrary.com/r/ghsa%3AGHSA-r567-vfff-9c27
- Tags: area:cloud domain:cloud domain:infra impact:dos kind:research platform:ghsa sev:high tech:grpc tech:kubernetes technique:source-review vuln:dos

**Target:** istiod xDS server (ADS state-of-the-world and delta, ports 15010/15012)
**Root cause:** The UpdateWatchedResource closure in ShouldRespond (pkg/xds/server.go) and shouldRespondDelta (pilot/pkg/xds/delta.go) records error_detail against the stream's WatchedResource without checking it exists; Proxy.UpdateWatchedResource passes nil for a type never subscribed, and the closure dereferences it.
**Steps:**
1. Install an affected Istio version with default settings.
2. From a client reaching istiod's xDS port (e.g. `kubectl -n istio-system port-forward`), open an ADS stream.
3. Send a single discovery request with `error_detail` set and a `type_url` the stream never subscribed to (e.g. the `Cluster` type).
4. istiod panics with a nil pointer dereference; pod RESTARTS increases.
5. Repeat the request to keep istiod in CrashLoopBackOff.
**How found:** Code review of the NACK handling path: noticed the UpdateWatchedResource closures in ShouldRespond and shouldRespondDelta assume a WatchedResource exists for the type_url, and that Proxy.UpdateWatchedResource can supply nil for an unsubscribed type.
**Exploitation:** Any client that can reach plaintext port 15010 (no auth, XDS_AUTH_PLAINTEXT defaults false) or any workload with a valid mesh identity on mTLS port 15012 opens an ADS stream and sends one NACK for an unwatched type_url; no gRPC interceptor recovers the panic on the stream path, so the whole istiod process exits. Repeating keeps it down.
**Escalation:** In multi-cluster or multi-primary deployments a single request takes down the shared control plane for every served cluster; while down, config/security-policy propagation, cert issuance, and sidecar injection/validation webhooks fail mesh-wide.
**Insight:** Error-reporting paths (NACK/error_detail handlers) often assume the errored resource was previously registered; fuzz type_url values the stream never subscribed to, and check whether panic recovery exists on streaming gRPC handlers versus unary interceptors.

