Go · istio.io/istio
Istio: istiod crash (DoS) via istio.io/debug XDS request with a malformed resource name
Any workload with a mesh identity can crash istiod with a single istio.io/debug XDS request whose resource name fails URL parsing, and istiod crash-loops while the request is repeated.
istiod serves debug information over XDS on port 15012 (type istio.io/debug, used by istioctl x internal-debug). In parseAndValidateDebugRequest (pilot/pkg/xds/debuggen.go) the resource name is passed to url.Parse and the error is ignored, so a name that fails to parse (for example %zz, http://[::1, or one containing a control character) leaves the parsed URL nil and the next field access panics. The panic is not recovered on the XDS stream and the istiod process exits. The crash happens before the namespace allowlist check, so the caller only needs a valid mesh identity: a workload certificate or a service account token with audience istio-ca, which any user who can create a pod can obtain.
Fixes are available in 1.30.8 and 1.31.4
Workarounds: none in configuration. Restrict who can create pods and service account tokens; restarting istiod recovers it until the request is repeated.
Install Istio (default or minimal profile).
From a context with a mesh identity, run:
istioctl x internal-debug '%zz'
istiod panics with a nil pointer dereference and restarts. Repeating the request keeps it in CrashLoopBackOff.
Denial of service against the istiod control plane for the whole mesh: no config or endpoint updates, no certificates for new workloads, and failing admission webhooks. If the outage lasts beyond the workload certificate lifetime, mTLS between workloads starts to fail. Any user who can create a pod in any namespace can trigger it on a default install.
Is your project exposed to this? Stateward checks every dependency on every pull request and flags it only if your code actually reaches it.
Check my repoSources: CISA KEV (public domain), OSV.dev & GitHub Advisory Database (CC-BY-4.0), FIRST EPSS, NVD/CWE (public domain). Served live from the Stateward advisory database.