CVE-2026-145372: CVE-2026-145372: Control Plane Denial of Service via NULL Pointer Dereference in Istio Pilot
CVE-2026-145372: Control Plane Denial of Service via NULL Pointer Dereference in Istio Pilot Vulnerability ID: CVE-2026-145372 CVSS Score: 7.7 Published: 2026-12-04 CVE-2026-145372 is a denial of service vulnerabili
CVE-2026-145372: Control Plane Denial of Service via NULL Pointer Dereference in Istio Pilot
Vulnerability ID: CVE-2026-145372
CVSS Score: 7.7
Published: 2026-12-04
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.
TL;DR
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.
⚠️ Exploit Status: POC
Technical Details
- 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
Affected Systems
- Istio Service Mesh Control Plane (istiod / Pilot)
-
Istio: >= 1.30.0, < 1.30.9 (Fixed in:
1.30.9) -
Istio: >= 1.31.0, < 1.31.5 (Fixed in:
1.31.5) -
Istio: >= 1.32.0, < 1.32.1 (Fixed in:
1.32.1)
Code Analysis
Commit: 6db50ef
Fix nil pointer dereference in buildHTTPConnectionManager and PushContext.SecretAllowed when PILOT_ENABLE_GATEWAY_API is disabled (release-1.32)
--- a/pilot/pkg/networking/core/listener_builder.go
+++ b/pilot/pkg/networking/core/listener_builder.go
@@ -493,8 +493,10 @@ func (lb *ListenerBuilder) buildHTTPConnectionManager(httpOpts *httpListenerOpts
- // Add ExtProc per listener only if the Gateway has any inferencePool attached to it
- if kubeGwName, ok := lb.node.Labels[label.IoK8sNetworkingGatewayGatewayName.Name]; ok {
+ // Add ExtProc per listener only if the Gateway has any inferencePool attached to it.
+ // GatewayAPIController is nil when PILOT_ENABLE_GATEWAY_API is disabled, in which case no
+ // inference pools can exist; guard against it since the gateway-name label is attacker-settable.
+ 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)
}
--- a/pilot/pkg/model/push_context.go
+++ b/pilot/pkg/model/push_context.go
@@ -2697,6 +2697,11 @@ func (ps *PushContext) initKubernetesGateways(env *Environment) {
func (ps *PushContext) SecretAllowed(ourKind config.GroupVersionKind, resourceName string, namespace string) bool {
+ // GatewayAPIController is nil when PILOT_ENABLE_GATEWAY_API is disabled. Reference grants are only
+ // implemented by the Gateway API controller, so nothing can be explicitly allowed: fail closed.
+ if ps.GatewayAPIController == nil {
+ return false
+ }
return ps.GatewayAPIController.SecretAllowed(ourKind, resourceName, namespace)
}
Commit: 8356c6f
Backport nil pointer dereference fix for GatewayAPIController when PILOT_ENABLE_GATEWAY_API is false (release-1.31)
Commit: c57599b
Backport nil pointer dereference fix for GatewayAPIController when PILOT_ENABLE_GATEWAY_API is false (release-1.30)
Commit: f36614d
Cherry-pick PR 63107 addressing GatewayAPIController nil dereference
Exploit Details
- GitHub: Official upstream fix commit containing functional unit test reproduction cases (TestNoPanicForGatewayNameLabelWhenGatewayAPIDisabled and TestMergeGatewaysCrossNamespaceCredentialWhenGatewayAPIDisabled).
Mitigation Strategies
- Upgrade the Istio control plane (istiod) to patched releases 1.30.9, 1.31.5, or 1.32.1.
- Enable Kubernetes Gateway API support by setting PILOT_ENABLE_GATEWAY_API=true in the istiod environment configuration so that GatewayAPIController is always initialized.
- Enforce Kubernetes ValidatingAdmissionPolicy, Kyverno, or OPA Gatekeeper rules restricting the use of the gateway.networking.k8s.io/gateway-name pod label and cross-namespace credentialName references in Istio Gateway resources.
Remediation Steps:
- Audit the cluster for pods or workload templates bearing the label gateway.networking.k8s.io/gateway-name using: kubectl get pods -A -l gateway.networking.k8s.io/gateway-name
- Audit the cluster for Istio Gateway resources with cross-namespace TLS secret references (credentialName containing '/').
- Remove any unauthorized labels or cross-namespace credentialName fields to restore istiod from CrashLoopBackOff if currently impacted.
- Upgrade istiod to version 1.30.9, 1.31.5, or 1.32.1 using istioctl upgrade or Helm.
References
- CVE-2026-145372 Record
- GitHub Security Advisory GHSA-vwc3-94w5-r373
- NVD Vulnerability Detail: CVE-2026-145372
- CVEProject cvelistV5 Artifact
- Istio Upstream Fix Commit (release-1.32)
- Istio Upstream Fix Commit (release-1.31)
- Istio Upstream Fix Commit (release-1.30)
- Istio Cherry-pick Commit (PR 63107)
Read the full report for CVE-2026-145372 on our website for more details including interactive diagrams and full exploit analysis.
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.