Dec 5, 2026·11 min read·3 visits
A NULL pointer dereference (CWE-476) in Istio's control plane (istiod) occurs when PILOT_ENABLE_GATEWAY_API is set to false. Unprivileged users with namespace-level access can crash istiod into a persistent CrashLoopBackOff by adding the gateway.networking.k8s.io/gateway-name label to a pod or referencing a cross-namespace Secret in an Istio Gateway resource. Users should upgrade to Istio 1.30.9, 1.31.5, or 1.32.1.
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.
Istio is an open-source service mesh that layers transparently onto distributed applications. Its core control plane binary, istiod (historically referred to as Pilot), manages traffic routing, policy enforcement, and telemetry collection across the mesh. Specifically, istiod watches the Kubernetes API server for workload objects and custom resource definitions (CRDs), compiles those configurations into Envoy proxy configurations, and distributes them via the Envoy xDS gRPC APIs. Additionally, istiod operates as the Certificate Authority (CA) for mutual TLS (mTLS) identity issuance and hosts the mutating and validating admission webhooks responsible for automatic Envoy sidecar injection.
Because istiod acts as a central multi-tenant reconciler, it processes configuration objects submitted by tenants across all monitored Kubernetes namespaces. In standard multi-tenant Kubernetes deployments, individual developers or service accounts are granted RBAC permissions scoped to their respective namespaces, enabling them to deploy pods, modify labels, and define ingress or mesh routing rules via Istio Gateway and VirtualService resources. The security boundary of the service mesh relies on istiod safely validating and isolating these namespace-scoped inputs so that a single tenant cannot disrupt control plane operations for the entire cluster.
CVE-2026-145372 (also tracked as GHSA-vwc3-94w5-r373) is a NULL Pointer Dereference (CWE-476) vulnerability within the Pilot xDS generation and configuration merging subsystems. When an operator disables Kubernetes Gateway API support by setting the environment variable PILOT_ENABLE_GATEWAY_API=false on the istiod deployment, Pilot does not instantiate its internal GatewayAPIController. Consequently, the GatewayAPIController field inside the global PushContext struct remains nil throughout the lifecycle of the control plane process.
Two separate code paths inside istiod fail to verify whether PushContext.GatewayAPIController is non-nil before invoking methods on it. A tenant with low-privilege, namespace-scoped permissions can reach these code paths by either attaching the gateway.networking.k8s.io/gateway-name label to a pod or defining a cross-namespace credentialName inside an Istio Gateway resource. Triggering either path causes an unhandled Go runtime segmentation violation (SIGSEGV), terminating the istiod process and placing the control plane into an unrecoverable CrashLoopBackOff until the triggering Kubernetes resource is manually deleted from etcd.
The root cause of CVE-2026-145372 lies in an inconsistent state assumption between Pilot's controller initialization logic and its xDS configuration compilation pipeline. During istiod startup, the control plane initializes its configuration controllers inside initControllers. If the feature flag features.EnableGatewayAPI (PILOT_ENABLE_GATEWAY_API) is evaluated as false, Pilot skips the initialization of the Kubernetes Gateway API controller. When Pilot subsequently builds a PushContext object to represent a snapshot of the mesh state for an xDS push, the ps.GatewayAPIController interface pointer remains nil.
The first vulnerable code path occurs during Envoy inbound listener generation inside pilot/pkg/networking/core/listener_builder.go. When istiod constructs the HTTP Connection Manager (HCM) filter chain for a workload proxy via (*ListenerBuilder).buildHTTPConnectionManager, it checks whether the target proxy node carries the label gateway.networking.k8s.io/gateway-name (represented internally by label.IoK8sNetworkingGatewayGatewayName.Name). This check was introduced to support the Gateway API Inference Extension, determining whether an External Processing (ExtProc) filter for an InferencePool should be attached to the listener. If the label is present on the pod, buildHTTPConnectionManager immediately calls lb.push.GatewayAPIController.HasInferencePool(...). Noticeably, this check executes unconditionally whenever the pod label is present, without verifying if lb.push.GatewayAPIController is nil or even if the ENABLE_GATEWAY_API_INFERENCE_EXTENSION flag is enabled.
The second vulnerable code path resides in the Istio Gateway CRD reconciliation logic within pilot/pkg/model/gateway.go and pilot/pkg/model/push_context.go. When an Istio Gateway resource specifies a TLS credentialName that points to a Kubernetes Secret in a different namespace (formatted as <namespace>/<secret-name> or kubernetes-gateway://<namespace>/<secret-name>), Pilot must check whether a Kubernetes Gateway API ReferenceGrant permits cross-namespace secret access. During mergeGateways(), Pilot invokes ps.SecretAllowed(gvk.Secret, credName, credNamespace) on the current PushContext.
Inside pilot/pkg/model/push_context.go, the method (*PushContext).SecretAllowed acts as a thin wrapper that directly returns ps.GatewayAPIController.SecretAllowed(ourKind, resourceName, namespace). Because ReferenceGrant evaluation is implemented exclusively within the GatewayAPIController, calling SecretAllowed when PILOT_ENABLE_GATEWAY_API=false results in a method invocation on a nil interface or struct pointer. In both vectors, the absence of a defensive nil guard allows user-controlled Kubernetes manifest fields to directly trigger a null pointer dereference in the primary istiod goroutine handling the xDS push.
The remediation for CVE-2026-145372 was authored by Matej Kralik and backported across the supported release branches in commits 6db50ef5c57f93e0d4bbae9012fe0be2b94308c3 (1.32), 8356c6fd86d082b23564d906a394041cb08eb847 (1.31), and c57599b1da59a608da1c602d24a96140e02363b3 (1.30). The patch addresses both dereference points by introducing explicit nil checks against GatewayAPIController and ensuring the authorization logic fails closed.
In pilot/pkg/networking/core/listener_builder.go, the vulnerable buildHTTPConnectionManager function previously checked only for the existence of the gateway.networking.k8s.io/gateway-name key in lb.node.Labels. The patched code appends && lb.push.GatewayAPIController != nil to the conditional statement, preventing HasInferencePool from executing when the controller is uninitialized:
// File: pilot/pkg/networking/core/listener_builder.go
func (lb *ListenerBuilder) buildHTTPConnectionManager(httpOpts *httpListenerOpts) *hcm.HttpConnectionManager {
// ... [omitted filter chain initialization]
filters = extension.PopAppendHTTPTrafficExtension(filters, trafficExtensions, extensions.TrafficExtension_STATS)
filters = extension.PopAppendHTTPTrafficExtension(filters, trafficExtensions, extensions.TrafficExtension_UNSPECIFIED)
// VULNERABLE CODE (Prior to Patch):
// if kubeGwName, ok := lb.node.Labels[label.IoK8sNetworkingGatewayGatewayName.Name]; ok {
// PATCHED CODE:
// Guard against nil GatewayAPIController when PILOT_ENABLE_GATEWAY_API is disabled,
// as lb.node.Labels is directly controlled by namespace users.
if kubeGwName, ok := lb.node.Labels[label.IoK8sNetworkingGatewayGatewayName.Name]; ok && lb.push.GatewayAPIController != nil {
if lb.push.GatewayAPIController.HasInferencePool(types.NamespacedName{Name: kubeGwName, Namespace: lb.node.GetNamespace()}) {
filters = append(filters, xdsfilters.InferencePoolExtProc)
}
}
// ...
}In pilot/pkg/model/push_context.go, the (*PushContext).SecretAllowed method was updated to check whether ps.GatewayAPIController == nil prior to delegating the call. When the controller is nil, no ReferenceGrant resources can be processed, so the function safely fails closed by returning false:
// File: pilot/pkg/model/push_context.go
func (ps *PushContext) SecretAllowed(ourKind config.GroupVersionKind, resourceName string, namespace string) bool {
// PATCHED CODE:
// GatewayAPIController is nil when PILOT_ENABLE_GATEWAY_API is disabled.
// ReferenceGrants are only evaluated by the Gateway API controller, so fail closed.
if ps.GatewayAPIController == nil {
return false
}
return ps.GatewayAPIController.SecretAllowed(ourKind, resourceName, namespace)
}An assessment of fix completeness indicates that guarding both buildHTTPConnectionManager and SecretAllowed completely neutralizes the identified attack vectors. Furthermore, upstream added dedicated regression tests—TestNoPanicForGatewayNameLabelWhenGatewayAPIDisabled in pilot/pkg/networking/core/listener_builder_test.go and TestMergeGatewaysCrossNamespaceCredentialWhenGatewayAPIDisabled in pilot/pkg/model/gateway_test.go—to verify that listener generation and gateway merging operate without panicking when ps.GatewayAPIController is nil and that cross-namespace secret references are strictly rejected.
Exploiting CVE-2026-145372 requires two preconditions: the target Istio cluster must run with PILOT_ENABLE_GATEWAY_API=false, and the attacker must possess valid Kubernetes credentials with permission to create or patch Pod resources (or Deployment, StatefulSet, Job templates) in an Istio-injected namespace, or permission to create Istio Gateway (networking.istio.io/v1) resources. No cluster-admin privileges or specialized network positioning outside of standard Kubernetes API access are necessary.
To exploit Vector 1 (Inbound Listener Generation), the attacker deploys a pod containing the gateway.networking.k8s.io/gateway-name label into any namespace where Istio sidecar injection is active (or explicitly forces injection via the sidecar.istio.io/inject: "true" label):
apiVersion: v1
kind: Pod
metadata:
name: trigger-istiod-panic
namespace: tenant-ns
labels:
app: web
sidecar.istio.io/inject: "true"
gateway.networking.k8s.io/gateway-name: "uninitialized-controller-ref"
spec:
containers:
- name: pause
image: registry.k8s.io/pause:3.9Once the pod is scheduled and the injected istio-proxy container initiates an xDS discovery stream to istiod, Pilot invokes buildHTTPConnectionManager to construct the pod's inbound listener filters. Encountering the gateway.networking.k8s.io/gateway-name label, istiod attempts to call HasInferencePool on the nil GatewayAPIController, immediately crashing the process with a runtime segmentation fault.
Alternatively, to exploit Vector 2 (Cross-Namespace Secret Validation), an attacker applies an Istio Gateway resource that matches an active gateway proxy selector (such as istio: ingressgateway) and specifies a cross-namespace credentialName:
apiVersion: networking.istio.io/v1
kind: Gateway
metadata:
name: cross-ns-secret-panic
namespace: tenant-ns
spec:
selector:
istio: ingressgateway
servers:
- port:
number: 443
name: https
protocol: HTTPS
tls:
mode: SIMPLE
credentialName: istio-system/target-cert
hosts:
- "*.example.com"When istiod receives the watch event from the Kubernetes API server and computes the merged gateway state for the ingress proxy via mergeGateways, it invokes SecretAllowed to verify cross-namespace authorization for istio-system/target-cert. This triggers the nil dereference inside PushContext.SecretAllowed. Because the malicious Pod or Gateway object persists in etcd, every replica of istiod that starts up will ingest the cluster state and panic at the exact same instruction, locking the entire control plane deployment into a permanent CrashLoopBackOff.
CVE-2026-145372 carries a CVSS v3.1 base score of 7.7 (High) with the vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:H. The Scope: Changed (S:C) metric reflects the architectural reality of a multi-tenant Kubernetes control plane: while the attacker's authorization is restricted to a single unprivileged Kubernetes namespace (PR:L), the resulting denial of service terminates istiod, impacting the availability (A:H) of the control plane across all namespaces and tenants in the cluster. Neither confidentiality (C:N) nor data integrity (I:N) is directly compromised by the panic.
When all replicas of istiod enter a CrashLoopBackOff, the service mesh experiences a progressive operational failure across several critical subsystems:
AuthorizationPolicy, PeerAuthentication) are propagated. Scaling events or pod IP changes result in stale routing tables and dropped traffic.istiod serves the /inject mutating webhook and /validate validating webhook endpoints. When istiod is unavailable, any new pod creation in sidecar-injected namespaces will either fail open (launching pods without Envoy sidecars, bypassing mesh mTLS and security policies) or fail closed (completely blocking pod scheduling and deployment rollouts across the cluster), depending on the webhook's failurePolicy configuration.istiod acts as the Citadels/CA endpoint handling Envoy SDS (Secret Discovery Service) CSR requests. During a prolonged istiod outage, existing workload X.509 certificates cannot be rotated; once their TTL expires (default 24 hours), mTLS handshakes across the data plane begin failing, escalating a control plane outage into a total data plane outage.> [!NOTE] > As of publication, CVE-2026-145372 is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog, and no active in-the-wild exploitation campaigns have been recorded. However, functional reproduction test cases exist publicly within the official Istio GitHub repository commits.
The definitive remediation for CVE-2026-145372 is to upgrade the Istio control plane (istiod) to a patched version that includes the defensive nil checks in buildHTTPConnectionManager and SecretAllowed. Operators should upgrade their installations according to their active release track:
Before or during incident response, administrators can audit their clusters for existing trigger objects or active exploitation attempts using kubectl. If istiod is currently stuck in a CrashLoopBackOff, removing the offending resources identified by the following commands will allow istiod to recover immediately:
# 1. Identify any Pods carrying the gateway.networking.k8s.io/gateway-name label
kubectl get pods -A -l gateway.networking.k8s.io/gateway-name
# 2. Identify higher-level workload controllers propagating the label
kubectl get deployments,statefulsets,daemonsets,jobs -A -l gateway.networking.k8s.io/gateway-name
# 3. Identify Istio Gateways containing cross-namespace credentialName references (containing '/')
kubectl get gateways.networking.istio.io -A -o jsonpath='{range .items[*]}{.metadata.namespace}{"/"}{.metadata.name}{": "}{.spec.servers[*].tls.credentialName}{"\n"}{end}' | grep '/'If an immediate control plane upgrade cannot be scheduled, operators have two viable workarounds:
istiod ensures that PushContext.GatewayAPIController is properly initialized during bootstrap, eliminating the nil pointer condition across both code paths. This can be applied via istioctl or by updating the istiod Deployment environment variables:
istioctl install --set values.pilot.env.PILOT_ENABLE_GATEWAY_API=trueValidatingAdmissionPolicy, Kyverno, or OPA Gatekeeper) to block unprivileged users from setting the gateway.networking.k8s.io/gateway-name label on Pod specifications or specifying a / character inside .spec.servers[*].tls.credentialName on Gateway (networking.istio.io) custom resources.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 |
|---|---|
| CVE / GHSA ID | CVE-2026-145372 / GHSA-vwc3-94w5-r373 |
| Weakness Class | CWE-476 (NULL Pointer Dereference) |
| CVSS v3.1 Score | 7.7 High (AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:H) |
| Affected Component | Istio Control Plane (istiod / Pilot) |
| Precondition | PILOT_ENABLE_GATEWAY_API=false |
| Primary Impact | Persistent Control Plane CrashLoopBackOff (DoS) |
| Exploit Status | Public PoC (Unit Tests & Manifests) |
| 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-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.
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.