Dec 5, 2026·9 min read·4 visits
An unsubscribed xDS NACK message triggers a nil pointer dereference in istiod's SotW and Delta ADS handlers, causing an unhandled Go panic and a mesh-wide control plane denial of service via unauthenticated port 15010 or mTLS port 15012.
CVE-2026-145368 (GHSA-r567-vfff-9c27) is a NULL pointer dereference vulnerability (CWE-476) in the Istio service mesh control plane daemon (istiod). When an xDS client transmits a configuration rejection (NACK) containing an error_detail field for a resource type URL to which the gRPC stream was never subscribed, istiod invokes an internal resource update closure with a nil WatchedResource pointer. Both State-of-the-World (SotW) and Delta Aggregated Discovery Service (ADS) implementations unconditionally dereference this pointer, triggering an unhandled Go runtime panic that terminates the istiod process.
Istio is an open-source service mesh platform that provides traffic management, policy enforcement, and telemetry collection across containerized microservices. The core control plane component, istiod (historically pilot-discovery), compiles high-level routing rules and cluster state into Envoy proxy configurations. It distributes these configurations dynamically to data plane sidecars and gateways over persistent bidirectional gRPC streams using the Envoy xDS (Discovery Service) protocol.
The xDS protocol operates in two distinct modes within istiod: State-of-the-World (SotW) Aggregated Discovery Service (StreamAggregatedResources) and Delta Aggregated Discovery Service (DeltaAggregatedResources). Both protocol implementations expose network listeners inside the Kubernetes cluster on TCP port 15010 for plaintext, unauthenticated gRPC connections and TCP port 15012 for mutual TLS (mTLS) connections authenticated via SPIFFE workload certificates.
CVE-2026-145368 (tracked as GHSA-r567-vfff-9c27) is a NULL Pointer Dereference (CWE-476) affecting istiod across Istio versions 1.30.0 through 1.30.8, 1.31.0 through 1.31.4, and 1.32.0. The flaw resides in the request validation handlers ShouldRespond (pkg/xds/server.go) and shouldRespondDelta (pilot/pkg/xds/delta.go), which process incoming DiscoveryRequest and DeltaDiscoveryRequest frames from connected proxies.
When a client sends an xDS negative acknowledgment (NACK)—indicated by a populated error_detail field—for a resource TypeUrl to which the active gRPC stream has never subscribed, the control plane passes a nil pointer into an update closure. Dereferencing this nil pointer triggers an unrecovered Go runtime panic inside the stream processing goroutine, immediately terminating the entire istiod binary and causing a control-plane-wide denial of service.
In the xDS protocol, an Envoy proxy requests configuration updates for specific resource types (such as Cluster, Listener, RouteConfiguration, or ClusterLoadAssignment) by transmitting a request specifying the target TypeUrl. When istiod receives a valid subscription request, it initializes a model.WatchedResource structure and stores it in a map indexed by TypeUrl on the connection's proxy state object (con.proxy.WatchedResources[typeUrl]).
If an Envoy proxy fails to validate or apply a configuration payload pushed by istiod, it responds with a NACK by repeating the request with the error_detail field (google.rpc.Status) populated. Upon receiving a request where request.ErrorDetail != nil, istiod logs the rejection, increments the pilot_xds_rejects metric via IncrementXDSRejects, and attempts to record the error message against the corresponding WatchedResource using UpdateWatchedResource.
The root cause of CVE-2026-145368 is a violation of state assumptions between the NACK handler and the Proxy.UpdateWatchedResource(typeUrl, updateFunc) helper method. The UpdateWatchedResource function queries the internal map for the specified typeUrl and passes the resulting *WatchedResource pointer directly as the wr argument to the caller-supplied closure, regardless of whether the lookup succeeded.
When a client transmits a NACK as its initial frame or targets a TypeUrl that was never previously subscribed to on that stream, the map lookup yields nil. The closures inside ShouldRespond and shouldRespondDelta fail to verify that wr != nil before executing wr.LastError = request.ErrorDetail.GetMessage(). Because istiod does not wrap xDS streaming goroutines in a recover() handler, the resulting runtime error: invalid memory address or nil pointer dereference unwinds the stack and crashes the server process.
The vulnerability manifests identically across two distinct code paths in the Istio repository: pkg/xds/server.go for generic State-of-the-World ADS processing and pilot/pkg/xds/delta.go for Delta ADS processing. In both locations, the error handling branch checks if request.ErrorDetail != nil before checking if the proxy actually holds an active subscription for request.TypeUrl.
Below is the patch diff from commit d2eb58d034d599da89215b95b401101a7f844ba1 illustrating the vulnerable logic and the remediation in pkg/xds/server.go:
--- a/pkg/xds/server.go
+++ b/pkg/xds/server.go
@@ -361,6 +361,12 @@ func ShouldRespond(w Watcher, id string, request *discovery.DiscoveryRequest) (b
log.Warnf("ADS:%s: ACK ERROR %s %s:%s", stype, id, errCode.String(), request.ErrorDetail.GetMessage())
IncrementXDSRejects(request.TypeUrl, w.GetID(), errCode.String())
w.UpdateWatchedResource(request.TypeUrl, func(wr *WatchedResource) *WatchedResource {
+ // A client may NACK a type it never subscribed to. In that case there is no
+ // WatchedResource to record the error against; the NACK has already been logged
+ // above, so just return nil to avoid creating a spurious watch (and a nil deref).
+ if wr == nil {
+ return nil
+ }
wr.LastError = request.ErrorDetail.GetMessage()
return wr
})An identical fix was applied to the Delta ADS handler in pilot/pkg/xds/delta.go:
--- a/pilot/pkg/xds/delta.go
+++ b/pilot/pkg/xds/delta.go
@@ -368,6 +368,12 @@ func shouldRespondDelta(con *Connection, request *discovery.DeltaDiscoveryRequest
deltaLog.Warnf("ADS:%s: ACK ERROR %s %s:%s", stype, con.ID(), errCode.String(), request.ErrorDetail.GetMessage())
xds.IncrementXDSRejects(request.TypeUrl, con.proxy.ID, errCode.String())
con.proxy.UpdateWatchedResource(request.TypeUrl, func(wr *model.WatchedResource) *model.WatchedResource {
+ // A client may NACK a type it never subscribed to. In that case there is no
+ // WatchedResource to record the error against; the NACK has already been logged
+ // above, so just return nil to avoid creating a spurious watch (and a nil deref).
+ if wr == nil {
+ return nil
+ }
wr.LastError = request.ErrorDetail.GetMessage()
return wr
})The fix introduces an explicit if wr == nil { return nil } guard at the beginning of both closures. In the semantics of UpdateWatchedResource, returning nil from the callback instructs the underlying map handler not to insert or retain an entry for that key. This prevents both the NULL pointer dereference and the unintended allocation of an uninitialized watch state for an unsubscribed resource type.
> [!NOTE]
> The fix is complete for this code path. Both SotW and Delta ADS handlers are protected, and returning nil leaves the proxy's watch state unmodified while preserving the warning log and rejection telemetry prior to the closure invocation.
Exploiting CVE-2026-145368 requires network connectivity to the istiod service (istiod.istio-system.svc.cluster.local) on either port 15010 or port 15012. On port 15010, istiod exposes a plaintext gRPC listener that requires zero authentication (PR:N), allowing any pod within the cluster network (unless blocked by a Kubernetes NetworkPolicy) to trigger the crash. On port 15012, istiod enforces mTLS, meaning an attacker needs access to any compromised pod possessing a valid SPIFFE workload certificate issued by the mesh CA (PR:L).
To trigger the crash, the client establishes an HTTP/2 gRPC stream to either /envoy.service.discovery.v3.AggregatedDiscoveryService/StreamAggregatedResources or /envoy.service.discovery.v3.AggregatedDiscoveryService/DeltaAggregatedResources. Immediately after opening the stream—without sending an initial subscription request—the client transmits a single DiscoveryRequest or DeltaDiscoveryRequest protobuf message containing a valid type_url (such as type.googleapis.com/envoy.config.cluster.v3.Cluster) and a non-empty error_detail object.
The official patch commits include regression tests that serve as functional proofs-of-concept for both protocol paths. Below is the Delta ADS regression test from pilot/pkg/xds/delta_test.go:
func TestDeltaNackUnsubscribedType(t *testing.T) {
s := xds.NewFakeDiscoveryServer(t, xds.FakeOptions{})
s.EnsureSynced(t)
ads := s.ConnectDeltaADS().WithID("sidecar~127.0.0.1~test.default~default.svc.cluster.local")
// First request on the stream is a NACK for CDS, which was never subscribed.
ads.Request(&discovery.DeltaDiscoveryRequest{
TypeUrl: v3.ClusterType,
ErrorDetail: &spb.Status{Code: int32(codes.InvalidArgument), Message: "nack for unsubscribed type"},
})
// A NACK is not responded to, and istiod must stay alive rather than panic.
ads.ExpectNoResponse()
// Prove the control plane is still serving by completing a normal subscription.
if resp := ads.RequestResponseAck(&discovery.DeltaDiscoveryRequest{TypeUrl: v3.ClusterType}); resp == nil {
t.Fatal("expected a CDS response after NACK of an unsubscribed type, got nil")
}
}Similarly, the State-of-the-World ADS test case in pkg/xds/server_test.go demonstrates the exact payload structure that crashes ShouldRespond when WatchedResources is empty:
{
name: "nack for unwatched type",
proxy: &TestProxy{
WatchedResources: map[string]*WatchedResource{},
},
request: &discovery.DiscoveryRequest{
TypeUrl: model.ClusterType,
ErrorDetail: &spb.Status{Code: int32(codes.InvalidArgument), Message: "nack"},
},
response: false,
}Because a single gRPC frame terminates the istiod pod immediately, an attacker who sends this frame in a continuous loop every few seconds will force all istiod replicas into a persistent CrashLoopBackOff state.
The NVD and GitHub CNA assign CVE-2026-145368 a CVSS v3.1 base score of 7.7 (High) with vector CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:H, reflecting exploitation via the mTLS-authenticated port 15012 using a standard workload identity. However, the Istio project's release notes evaluate the flaw at 8.6 (High) (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:H) because default installations expose port 15010 without authentication inside the cluster network.
Notice that both CVSS vectors specify a Changed Scope (S:C). While the vulnerable component is the istiod control plane process, a sustained crash loop degrades critical functions across the entire Kubernetes cluster and downstream data plane workloads.
First, configuration propagation stops across the mesh. While running Envoy sidecars continue forwarding traffic using their last known cached configuration, any changes to Kubernetes Services, Endpoints (such as pod scaling events), VirtualServices, DestinationRules, or AuthorizationPolicies fail to reach the proxies.
Second, istiod acts as the mesh Certificate Authority (CA) responsible for signing and rotating short-lived SPIFFE x509 workload certificates via the Secret Discovery Service (SDS). If istiod remains unavailable beyond the certificate lifetime window, existing workload certificates expire, causing mTLS handshakes between microservices to fail across the mesh.
Third, istiod serves the Kubernetes Mutating Admission Webhook (responsible for automatic Envoy sidecar injection into new pods) and the Validating Admission Webhook (for verifying Istio custom resources). When istiod is unreachable, pod creation requests in sidecar-injected namespaces fail or stall depending on the webhook failurePolicy, preventing normal application deployments and autoscaling operations.
The primary remediation is to upgrade the Istio control plane (istiod) to a patched release containing the nil guard in ShouldRespond and shouldRespondDelta. The Istio project has released fixes across all supported branches:
49126693478d2774a14c958acbae0326f3c807f7).3eb347087fd967e92b34586edb9ab85b83daef20).d2eb58d034d599da89215b95b401101a7f844ba1).> [!WARNING] > Istio releases prior to 1.30 (such as 1.29.x and earlier) had reached End of Life (EOL) prior to the disclosure of CVE-2026-145368 and did not receive backported patches. Operators running EOL versions must upgrade to a supported branch.
If an immediate control plane upgrade is not feasible, operators should implement network-level mitigations to eliminate the unauthenticated attack surface on port 15010. Apply a Kubernetes NetworkPolicy in the istio-system namespace to block all ingress traffic to TCP port 15010, as modern Istio sidecars communicate exclusively over mTLS on port 15012:
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: deny-istiod-plaintext-xds
namespace: istio-system
spec:
podSelector:
matchLabels:
app: istiod
policyTypes:
- Ingress
ingress:
- ports:
- protocol: TCP
port: 15012
- protocol: TCP
port: 15017To detect exploitation attempts, monitor Prometheus metrics for sudden increases in pilot_xds_rejects correlated with istiod pod restarts. Additionally, inspect istiod container logs for the warning entry ADS:...: ACK ERROR immediately preceding a Go stack trace referencing istio.io/istio/pkg/xds.ShouldRespond or istio.io/istio/pilot/pkg/xds.shouldRespondDelta.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:H| Product | Affected Versions | Fixed Version |
|---|---|---|
Istio Istio | >= 1.30.0, < 1.30.9 | 1.30.9 |
Istio Istio | >= 1.31.0, < 1.31.5 | 1.31.5 |
Istio Istio | >= 1.32.0, < 1.32.1 | 1.32.1 |
| Attribute | Detail |
|---|---|
| Vulnerability ID | CVE-2026-145368 / GHSA-r567-vfff-9c27 |
| Weakness Class | CWE-476: NULL Pointer Dereference |
| CVSS v3.1 Score | 7.7 High (CNA) / 8.6 High (Vendor Advisory) |
| Attack Vector | Network (gRPC xDS over TCP 15010 / 15012) |
| Affected Component | Istio Control Plane (istiod: pkg/xds & pilot/pkg/xds) |
| Primary Impact | Control Plane Denial of Service (Process Crash) |
| Exploit Status | Proof-of-Concept (Official Regression Tests) |
| CISA KEV Status | Not Listed |
A NULL pointer dereference occurs when the application dereferences a pointer that it expects to be valid, but is NULL, typically causing a crash or exit.
A cross-namespace isolation bypass vulnerability exists in the Istio control plane (istiod) affecting versions 1.30.0 through 1.30.8, 1.31.0 through 1.31.4, and 1.32.0. The strict gateway merging protection mechanism relies solely on user-modifiable Kubernetes resource annotations to identify internal configurations synthesized by the Kubernetes Gateway API controller. Because the admission validation webhook fails to block unprivileged users from specifying the internal.istio.io/gateway-semantics and internal.istio.io/service-account-name annotations on Istio Gateway custom resources, an attacker with permissions to create or update Gateway objects in a single tenant namespace can bypass namespace isolation. This allows the attacker to merge arbitrary listeners and host definitions into managed Gateway API proxy workloads operating in foreign namespaces.
CVE-2026-145372 is a denial of service vulnerability affecting the Istio service mesh control plane (istiod) across the 1.30.x, 1.31.x, and 1.32.x branches. When Kubernetes Gateway API support is explicitly disabled via the PILOT_ENABLE_GATEWAY_API=false flag, two distinct code paths in Pilot invoke methods on the uninitialized GatewayAPIController structure without checking for a nil receiver. An authenticated Kubernetes user with standard namespace-scoped permissions can trigger an unhandled Go runtime panic by applying the gateway.networking.k8s.io/gateway-name label to a sidecar-injected pod or creating an Istio Gateway custom resource containing a cross-namespace TLS secret reference. Because istiod continuously reconciles cluster state upon restart, the control plane enters a persistent CrashLoopBackOff state, halting mesh-wide xDS configuration distribution, mTLS certificate rotation, and admission webhook operations.
CVE-2026-145371 (GHSA-g435-phf9-7g5m) is a high-severity denial-of-service vulnerability affecting the Istio service mesh control plane (istiod). The flaw resides in the waypoint inbound cluster generation logic used by Istio Ambient mode (`pilot/pkg/networking/core/cluster_waypoint.go`). When an authenticated user with namespace-scoped permissions creates or modifies a `ServiceEntry` configured with `DNS` or `DNS_ROUND_ROBIN` resolution that resolves to zero endpoints, the internal `buildCluster` method returns a `nil` pointer. The calling function `buildWaypointInboundVIPCluster` fails to check for `nil` before dereferencing the returned structure, resulting in an unhandled runtime panic that terminates `istiod` and puts the entire mesh control plane into a continuous crash loop.
CVE-2026-140229 (GHSA-9239-v992-p74f) is a denial-of-service vulnerability in the node-tar archive extraction library prior to version 8.0.0. The vulnerability occurs because the maxDecompressionRatio check is performed after the underlying zlib decompression stream has already inflated and materialized input chunks into memory. An attacker supplying a crafted, highly compressed archive can force the Node.js runtime to allocate unbounded memory buffers before the ratio limit is evaluated, terminating the process via an Out of Memory (OOM) crash.
CVE-2026-145366 is an ASN.1 interpretation conflict in the Istio service mesh control plane (istiod) and ambient data-plane proxy (ztunnel). When Istio is configured with an external certificate signer that copies raw Subject Alternative Name (SAN) extensions from Certificate Signing Requests (CSRs) into issued leaf certificates, a low-privileged workload can smuggle an unauthorized SPIFFE identity using non-standard ASN.1 tag classes or constructed encodings. Standard X.509 validators ignore the malformed tags during CSR authorization, while Istio re-parses the raw ASN.1 bytes and evaluates only the 5-bit tag number, enabling cross-namespace workload impersonation and extraction of TLS private keys via the Secret Discovery Service (SDS).
A denial-of-service vulnerability exists in the Istio Pilot control plane (istiod) when operating in ambient mesh mode. In versions 1.30.0 through 1.30.8, 1.31.0 through 1.31.4, and 1.32.0, creating a ServiceEntry with DNS or DNS_ROUND_ROBIN resolution attached to a waypoint proxy that resolves to zero endpoints causes buildCluster to return a nil pointer. The waypoint inbound cluster generation routine subsequently dereferences this nil pointer without validation, triggering an unhandled Go runtime panic that places all istiod replicas into a continuous crash-loop.