Dec 5, 2026·11 min read·1 visit
Istio fails to restrict users from setting internal control plane annotations (internal.istio.io/gateway-semantics and internal.istio.io/service-account-name) on Istio Gateway custom resources. Authenticated tenants can set these annotations to bypass PILOT_ENABLE_STRICT_GATEWAY_MERGING isolation, enabling cross-namespace listener injection, hostname shadowing, and localized denial of service against shared or foreign Gateway API proxies.
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.
Istio provides traffic management and network routing for Kubernetes clusters using Envoy sidecar and gateway proxies. The control plane component, istiod (historically Pilot), translates high-level routing configurations—including Istio's native Gateway Custom Resource Definitions (CRDs) and standard Kubernetes Gateway API resources—into Envoy xDS listener and route configurations. In multi-tenant Kubernetes clusters, multiple namespaces often coexist while managed gateway proxies handle ingress and east-west traffic.
To enforce tenant boundaries when using the Kubernetes Gateway API alongside native Istio Gateway CRDs, Istio implements Strict Gateway Merging, controlled by the feature flag PILOT_ENABLE_STRICT_GATEWAY_MERGING (enabled by default). Under this security policy, managed Kubernetes Gateway API proxies are restricted to merging only those Gateway configurations that originate within the same namespace as the proxy workload. Cross-namespace Gateway resources containing label selectors that match a managed proxy in another namespace are filtered out during xDS push context generation.
CVE-2026-145369 (also tracked as GHSA-94hp-7c48-x2x3) is an isolation bypass vulnerability classified under CWE-807 (Reliance on Untrusted Inputs in a Security Decision) and CWE-915 (Improperly Controlled Modification of Dynamically-Determined Object Attributes). The vulnerability occurs because istiod determines whether a Gateway resource was synthesized internally by the Kubernetes Gateway API controller solely by checking the internal.istio.io/gateway-semantics and internal.istio.io/service-account-name annotations on the resource metadata.
Istio's validating admission webhook did not restrict users from setting these two internal annotations on standard networking.istio.io/Gateway objects, and the CRD ingestion pipeline did not strip them from stored objects. Consequently, a low-privileged user with permissions to create or modify an Istio Gateway in an untrusted tenant namespace can spoof these annotations. This causes istiod to treat the attacker's resource—and potentially the entire attacker namespace—as a managed Gateway API environment, bypassing strict merging restrictions and injecting listener configurations into foreign gateway proxies.
When Istio's internal Kubernetes Gateway API controller processes standard gateway.networking.k8s.io/Gateway objects, it translates them in-memory into internal Istio networking.istio.io/Gateway representations. During this internal translation, the controller attaches reserved metadata annotations to track the provenance and operational semantics of the synthesized object. Specifically, it attaches internal.istio.io/gateway-semantics: gateway and populates internal.istio.io/service-account-name with the target proxy's service account name.
During xDS configuration generation, istiod invokes filterStrictGatewayMerging() in pilot/pkg/model/push_context.go to enforce cross-namespace isolation before building listener chains for a proxy workload. The function attempts to identify all namespaces that host legitimate, controller-managed Gateway API resources and ensure that user-created Istio Gateway resources from external namespaces cannot bind to those managed proxies via label selectors.
The root cause of CVE-2026-145369 lies in how filterStrictGatewayMerging() verified the provenance of a Gateway configuration. Rather than checking an immutable, in-memory provenance attribute set exclusively by the controller, the code inspected the string map cfg.Annotations. If a Gateway object contained internal.istio.io/gateway-semantics == "gateway" and a non-empty internal.istio.io/service-account-name, the control plane trusted that the object was generated by the internal Gateway API controller and added its namespace to the managedGWAPINamespaces set. Furthermore, the helper function isGatewayAPIGateway() evaluated only whether cfg.Annotations[constants.InternalGatewaySemantics] == constants.GatewaySemanticsGateway.
This trust model failed at two distinct architectural boundaries. First, the admission validation logic (validateMetadata in pkg/config/validation/validation.go) maintained an allowlist/blocklist check that rejected user-supplied annotations for internal.istio.io/parent-namespace and internal.istio.io/parents, but omitted internal.istio.io/gateway-semantics and internal.istio.io/service-account-name. Second, the Kubernetes CRD informer client (pilot/pkg/config/kube/crdclient/client.go) ingested custom resources directly from the Kubernetes API server into the control plane config store without stripping reserved internal.istio.io/* annotations, allowing any stored resource to masquerade as an internally synthesized configuration.
Prior to the patch, pilot/pkg/model/push_context.go determined whether a namespace and its gateway instances belonged to the Kubernetes Gateway API controller by checking string annotations on the configuration metadata:
// Vulnerable logic in pilot/pkg/model/push_context.go
for _, gwi := range instances {
cfg := gwi.gateway
// BUG: Relies entirely on untrusted metadata annotations present on the CRD
if cfg.Annotations[constants.InternalGatewaySemantics] == constants.GatewaySemanticsGateway &&
cfg.Annotations[constants.InternalServiceAccount] != "" {
managedGWAPINamespaces.Insert(cfg.Namespace)
}
}To remediate this flaw, the Istio maintainers implemented a three-layer defense-in-depth patch across commits a0bd9d69102cb809a3194a72e47b54c48cfe7415 (1.30), a39d6201f3681676338ccc3856a4d564e2b40152 (1.31), and f7006dd7b0ef50aabf1b0ccb86505340f52a8257 (1.32).
In pkg/config/constants/constants.go, the maintainers consolidated forbidden internal annotations into an explicit slice, UserForbiddenInternalAnnotations, and updated validateMetadata in pkg/config/validation/validation.go to reject any user-submitted resource containing them:
// pkg/config/constants/constants.go
var UserForbiddenInternalAnnotations = []string{
InternalParentNamespace,
InternalParentNames,
InternalGatewaySemantics,
InternalServiceAccount,
}
// pkg/config/validation/validation.go
func validateMetadata(f ValidateFunc) ValidateFunc {
return func(config config.Config) (Warning, error) {
// ... existing name and label validation ...
for _, a := range constants.UserForbiddenInternalAnnotations {
if _, f := config.Annotations[a]; f {
return nil, fmt.Errorf("%q annotation found, this may not be set by users", a)
}
}
return f(config)
}
}Because admission webhooks can be temporarily unavailable, configured to fail open, or bypassed by objects created prior to an upgrade, the patch modifies pilot/pkg/config/kube/crdclient/client.go to strip all UserForbiddenInternalAnnotations when translating Kubernetes API objects into istiod's internal config representation:
// pilot/pkg/config/kube/crdclient/client.go
func (cl *Client) addCRD(name string, opts krt.OptionsBuilder) {
// ...
collection := krt.MapCollection(wrappedClient, func(obj controllers.Object) config.Config {
cfg := translateFunc(obj)
cfg.Domain = cl.domainSuffix
// Sanitize untrusted annotations read from the Kubernetes API server
cfg.Annotations = stripInternalAnnotations(cfg.Annotations)
return cfg
}, opts.WithName("collection/"+resourceGVK.Kind)...)
}
func stripInternalAnnotations(in map[string]string) map[string]string {
found := false
for _, a := range constants.UserForbiddenInternalAnnotations {
if _, f := in[a]; f {
found = true
scope.Warnf("ignoring reserved annotation %q set on externally-provided config", a)
}
}
if !found {
return in
}
out := make(map[string]string, len(in))
for k, v := range in {
if !slices.Contains(constants.UserForbiddenInternalAnnotations, k) {
out[k] = v
}
}
return out
}Finally, to eliminate architectural reliance on string annotations for security decisions, the patch introduces an unserialized boolean field Synthesized on the config.Meta struct in pkg/config/model.go:
// pkg/config/model.go
type Meta struct {
// ...
// Synthesized is true only for configs generated in-memory by an Istio controller.
// It is never populated by stores that read user-authored resources and is intentionally
// not serialized (json:"-"), so it is a trustworthy provenance signal.
Synthesized bool `json:"-"`
}Internal controllers (GatewayCollection and ListenerSetCollection in pilot/pkg/config/kube/gateway/gateway_collection.go) explicitly set Synthesized: true when constructing internal Gateway objects in memory. The strict merging filter in pilot/pkg/model/push_context.go now checks isGatewayAPIGateway(cfg), which requires cfg.Synthesized to be true:
// pilot/pkg/model/push_context.go
func isGatewayAPIGateway(cfg config.Config) bool {
return cfg.Synthesized && cfg.Annotations[constants.InternalGatewaySemantics] == constants.GatewaySemanticsGateway
}The three-layered fix is comprehensive. Even if a novel ingestion path fails to call stripInternalAnnotations, external resources deserialized from JSON or YAML cannot populate Synthesized: true due to the json:"-" struct tag and the absence of any external mapping logic for that field. Consequently, user-supplied resources can no longer satisfy isGatewayAPIGateway(cfg).
Exploiting CVE-2026-145369 requires low-privileged access to a Kubernetes cluster running a vulnerable version of Istio (1.30.0–1.30.8, 1.31.0–1.31.4, or 1.32.0). Specifically, the attacker needs RBAC permissions to create or update gateways.networking.istio.io resources within at least one tenant namespace (e.g., attacker-ns), and knowledge of the pod labels used by a target Gateway API proxy workload running in another namespace (e.g., victim-ns).
To execute the bypass, the attacker applies a crafted Istio Gateway manifest in their authorized namespace:
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
name: cross-ns-merge-bypass
namespace: attacker-ns
annotations:
internal.istio.io/gateway-semantics: "gateway"
internal.istio.io/service-account-name: "default"
spec:
selector:
gateway.networking.k8s.io/gateway-name: production-gateway
servers:
- port:
number: 80
name: http-injected
protocol: HTTP
hosts:
- "api.victim.example.com"There are two primary exploitation modes depending on the annotations provided:
internal.istio.io/gateway-semantics: "gateway", isGatewayAPIGateway() evaluates to true for that specific Gateway resource. When filterStrictGatewayMerging() processes the target proxy in victim-ns, it permits the attacker's Gateway to merge into the victim's proxy workload despite residing in attacker-ns.internal.istio.io/service-account-name to any non-empty string, filterStrictGatewayMerging() inserts attacker-ns into the managedGWAPINamespaces set. Consequently, if a proxy workload runs in attacker-ns or shares labels across namespaces, every other standard Gateway resource in attacker-ns (even those without the spoofed annotations) is treated as residing in a managed namespace.Once merged into the victim's gateway proxy, the attacker's servers block is processed by istiod's listener generator. The attacker can register arbitrary hostnames on existing ports, introduce new listener ports, or specify conflicting protocols on active ports, causing Envoy or istiod to drop or shadow legitimate listener configurations.
CVE-2026-145369 is rated CVSS v3.1 6.4 (Medium) with the vector CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:L. The Scope metric is Changed (S:C) because the vulnerable component is the istiod control plane and admission validation layer, while the impacted scope extends across Kubernetes namespace isolation boundaries into foreign tenant or cluster-wide ingress gateway proxies.
The primary impacts affect Integrity (I:L) and Availability (A:L):
VirtualService routing rules, an attacker can intercept or reroute plaintext HTTP traffic destined for newly claimed or shadowed hostnames on that proxy.istiod to reject subsequent server definitions or produce conflicting Envoy xDS configurations. An attacker can intentionally trigger port or host collisions on a shared or foreign gateway proxy, resulting in a targeted denial of service for legitimate services using that gateway.Confidentiality (C:N) is not directly impacted by this vulnerability alone. While an attacker can modify listener definitions on a foreign proxy, Istio restricts access to TLS secrets (credentialName) based on the namespace of the resource or secret-access RBAC rules. An attacker in attacker-ns cannot reference or extract TLS private keys stored exclusively in victim-ns solely through this annotation bypass.
> [!NOTE]
> Single-tenant clusters where all Kubernetes users share equivalent cluster-wide administrative privileges, or clusters that have not enabled Kubernetes Gateway API resources alongside untrusted tenant privileges to create networking.istio.io/Gateway objects, have reduced exposure to this vulnerability.
Administrators running affected versions of Istio should upgrade their istiod control plane to a patched release that enforces admission validation, CRD store sanitization, and in-memory provenance verification:
Because Gateway resources created prior to an upgrade persist in etcd, administrators should audit all gateways.networking.istio.io objects across the cluster for unauthorized internal.istio.io/* annotations using kubectl:
kubectl get gateways.networking.istio.io -A -o jsonpath='{range .items[*]}{.metadata.namespace}{"/"}{.metadata.name}{": "}{.metadata.annotations}{"\n"}{end}' | grep -E "internal\.istio\.io/(gateway-semantics|service-account-name|parent-namespace|parents)"Note that user-authored networking.istio.io/Gateway objects stored in Kubernetes should never contain these annotations; legitimate synthesized Gateway API configurations only exist in istiod's internal memory and are not persisted as networking.istio.io/Gateway objects in etcd. Any stored Gateway resource matching the query above was created manually with reserved annotations and should be inspected and removed. After upgrading to a patched istiod, the control plane will automatically strip these annotations upon ingestion and emit a warning log: ignoring reserved annotation "internal.istio.io/..." set on externally-provided config.
For environments operating on Kubernetes 1.30+ that cannot immediately upgrade istiod, administrators can deploy a native Kubernetes ValidatingAdmissionPolicy to block the creation or modification of Gateway resources containing forbidden internal annotations:
apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingAdmissionPolicy
metadata:
name: deny-istio-internal-annotations
spec:
failurePolicy: Fail
matchConstraints:
resourceRules:
- apiGroups: ["networking.istio.io"]
apiVersions: ["v1alpha3", "v1beta1", "v1"]
operations: ["CREATE", "UPDATE"]
resources: ["gateways"]
validations:
- expression: "!has(object.metadata.annotations) || (!('internal.istio.io/gateway-semantics' in object.metadata.annotations) && !('internal.istio.io/service-account-name' in object.metadata.annotations))"
message: "Setting internal.istio.io annotations on Gateway resources is forbidden."
---
apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingAdmissionPolicyBinding
metadata:
name: deny-istio-internal-annotations-binding
spec:
policyName: deny-istio-internal-annotations
validationActions: [Deny]Ensure you also perform the kubectl audit above when applying this workaround, as admission policies only evaluate new CREATE and UPDATE operations and will not neutralize objects already stored in etcd.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:L| Product | Affected Versions | Fixed Version |
|---|---|---|
Istio Istio | >= 1.30.0, <= 1.30.8 | 1.30.9 |
Istio Istio | >= 1.31.0, <= 1.31.4 | 1.31.5 |
Istio Istio | = 1.32.0 | 1.32.1 |
| Attribute | Detail |
|---|---|
| CVE ID | CVE-2026-145369 (GHSA-94hp-7c48-x2x3) |
| Primary CWE | CWE-807: Reliance on Untrusted Inputs in a Security Decision |
| Secondary CWE | CWE-915: Improperly Controlled Modification of Dynamically-Determined Object Attributes |
| CVSS v3.1 Score | 6.4 Medium (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:L) |
| Attack Vector | Network (Kubernetes API Server custom resource creation/update) |
| Impact | Cross-namespace gateway listener injection, hostname shadowing, and route rejection |
| Exploit Status | No known public exploits or active exploitation |
| CISA KEV Status | Not Listed |
The product uses a protection mechanism that relies on the existence or values of an input, but the input can be modified by an untrusted actor in a way that bypasses the protection mechanism.
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-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.