CVE-2026-145369: Istio.io/istio Istio Gateway Can Bypass Strict Vulnerability

MODERATE
Advisory Identifier: GHSA-94hp-7c48-x2x3
CVSS 6.4
CWE-807 CWE-915
Published
Advisory Summary

CVE-2026-145369 is a MODERATE (CVSS 6.4) istio gateway can bypass strict vulnerability (CWE-807: Reliance on Untrusted Inputs in a Security Decision) affecting Istio.io/istio libraries in the Go ecosystem. The issue involves istio gateway can bypass strict gateway merging via internal annotations. Remediation is available by upgrading affected packages to version 0.0.0-20261202224500-02f27003a69d.

CVE-2026-145369 at a Glance

CVE Identifier CVE-2026-145369
GHSA Identifier GHSA-94hp-7c48-x2x3
Severity MODERATE
CVSS v3.1 Base Score 6.4
CWE Classification CWE-807: Reliance on Untrusted Inputs in a Security Decision
Affected Product Istio.io/istio
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 6.4

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:L).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality None (C:N)
Integrity Low (I:L)
Availability Low (A:L)

How to Fix CVE-2026-145369

To remediate this vulnerability, upgrade all affected Istio.io/istio dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

istio.io/istio fixed: 0.0.0-20261202224500-02f27003a69d
Upgrade istio.io/istio to 0.0.0-20261202224500-02f27003a69d
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for istio.io/istio

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-145369, inspect your project dependencies for Istio.io/istio:

inspect dependencies for istio.io/istio

Analyze the terminal output to locate any version of Istio.io/istio in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.0.0-20261202224500-02f27003a69d), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-807: Reliance on Untrusted Inputs in a Security Decision, where 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. In Istio.io/istio, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Summary Istio validation rejects the internal annotations `internal.istio.io/parent-namespace` and `internal.istio.io/parents` when users set them, but it does not reject `internal.istio.io/gateway-semantics` and `internal.istio.io/service-account-name`. A user who can create an Istio `Gateway` in one namespace can set these two annotations to make the `Gateway` look like one generated by the Kubernetes Gateway API controller. This bypasses the strict gateway merging protection (`PILOT_ENABLE_STRICT_GATEWAY_MERGING`, enabled by default), so the `Gateway` is merged into a managed Gateway API gateway proxy in a different namespace. Because istiod read these annotations from stored resources and trusted them at merge time, a `Gateway` stored before the fix, or created while the validation webhook was unavailable, was also exploitable. Strict gateway merging is implemented in `filterStrictGatewayMerging` in `pilot/pkg/model/push_context.go`. When a proxy matches at least one managed Gateway API gateway, Istio `Gateway` resources from other namespaces are dropped from the merge. The function decides whether a config is a managed Gateway API gateway, and which namespace it belongs to, only from two annotations on the config: `internal.istio.io/gateway-semantics` and `internal.istio.io/service-account-name`. These annotations are meant to be set only by Istio's Kubernetes Gateway API controller (`pilot/pkg/config/kube/gateway/gateway_collection.go`). The metadata validation wrapper `validateMetadata` in `pkg/config/validation/validation.go` rejects user-set `internal.istio.io/parent-namespace` and `internal.istio.io/parents`, but it did not reject these two. A user-created `Gateway` carrying both annotations is therefore accepted. In `filterStrictGatewayMerging` it is then treated as a Gateway API gateway: its namespace is added to the set of managed namespaces and the config is kept in the merge. A `Gateway` in an unrelated namespace that selects the same gateway workload is merged with the managed gateway, which the feature is designed to prevent. The `internal.istio.io/gateway-semantics` annotation also relaxes validation for the `Gateway` (the DNS-1123 name check and namespace/hostname checks in `validateServer`), so a user-set value also changes what validation accepts. The fix has three independent layers: 1. **Admission validation.** `validateMetadata` now rejects user-set `internal.istio.io/gateway-semantics` and `internal.istio.io/service-account-name`, in addition to `parent-namespace` and `parents`. The list is defined once as `constants.UserForbiddenInternalAnnotations` and shared with layer 2. 2. **Ingestion sanitization.** When istiod reads Istio resources from the Kubernetes API (CRD client), it removes the same four annotations from the in-memory config and logs a warning. The stored object is not modified. This neutralizes resources that were persisted before the fix, or while the webhook was down or failing open, without requiring operators to find and edit them first. Configs generated internally by the Kubernetes Gateway API controller do not pass through the CRD client and are unaffected. 3. **Merge-time provenance.** `filterStrictGatewayMerging` no longer trusts the annotation alone. A config is treated as a managed Gateway API gateway only if it also carries the in-memory marker `Meta.Synthesized`, which is set only by the Gateway API controller, is not serialized, and cannot be set from a stored resource. This protects against annotations reaching the merge through any path other than the CRD client. Internally generated configs are not affected by validation, because they do not pass through the user-facing validation path. Fixes are available in 1.30.9, 1.31.5 and 1.32.1. ### Workaround Upgrading to a fixed version is the recommended remediation. It also neutralizes `Gateway` resources that were already stored with the annotations, so no manual cleanup is required for correctness. Until you can upgrade, these mitigations reduce exposure: - Use Kubernetes `ValidatingAdmissionPolicy`, Kyverno or OPA Gatekeeper to deny any Istio `Gateway` (`networking.istio.io`) that carries an annotation with the prefix `internal.istio.io/`. Trade-off: the policy must be maintained by the cluster operator. Existing resources are not affected by a new admission policy, so also audit stored `Gateway` resources, for example `kubectl get gateways.networking.istio.io -A -o json | grep -F internal.istio.io/`, and remove any such annotation. - Set `PILOT_SCOPE_GATEWAY_TO_NAMESPACE=true` on istiod so that a gateway workload only selects `Gateway` resources in its own namespace. Trade-off: this disables cross-namespace `Gateway` selection for all gateways, including legitimate setups that rely on it. - Restrict `create` and `update` on `gateways.networking.istio.io` to trusted users. Trade-off: it removes self-service gateway configuration for tenants. ### Proof of concept Reproduced end-to-end on an Istio 1.32.0 kind cluster: a managed Kubernetes Gateway API gateway in one namespace (victim), and an Istio Gateway created by an attacker in another namespace. The attacker's Gateway was correctly dropped by strict gateway merging until the attacker set `internal.istio.io/gateway-semantics: gateway` on it; its server then appeared as a new listener and route on the victim's managed gateway proxy. Setting this single annotation was sufficient; validation accepted it while rejecting the already-banned sibling `internal.istio.io/parent-namespace` on the same path. The minimum configuration that shows the validation gap is an Istio `Gateway` created by a user with both annotations set: ```yaml apiVersion: networking.istio.io/v1 kind: Gateway metadata: name: example namespace: tenant-b annotations: internal.istio.io/gateway-semantics: gateway internal.istio.io/service-account-name: example-sa spec: selector: gateway.networking.k8s.io/gateway-name: managed-gw servers: - port: number: 80 name: http protocol: HTTP hosts: - "tenant-b/*" ``` Verified behavior after the fix, same cluster: - A create or update carrying `internal.istio.io/gateway-semantics` or `internal.istio.io/service-account-name` is rejected by validation with `annotation found, this may not be set by users`. - A resource of this shape already stored in etcd (applied while bypassing the webhook) is no longer merged: strict gateway merging ignores it because it was not synthesized by the Gateway API controller. ### Impact Any user who can create or update `networking.istio.io` `Gateway` resources in any namespace can attempt this. The cluster must run a managed Gateway API gateway whose proxy labels the attacker's `Gateway` selector can match, and `PILOT_ENABLE_STRICT_GATEWAY_MERGING` must be enabled (the default). The protection added by strict gateway merging is lost for that proxy. The attacker can add servers (listeners and hosts) to a gateway proxy owned by another namespace. This affects integrity (unexpected listeners or routes on another tenant's gateway) and availability (conflicting servers can cause legitimate configuration to be rejected or shadowed). Confidentiality is not rated as impacted. Per code reading, secrets referenced by the merged `Gateway` are only authorized when the proxy's verified identity namespace equals the `Gateway` namespace (`mergeGateways` in `pilot/pkg/model/gateway.go`), which does not hold for a `Gateway` from another namespace. This was not tested. Sidecars and ambient workloads are not affected. The issue applies to gateway proxies configured through the `Gateway` resource.

CVE-2026-145369 Affected Istio.io/istio Versions

1 component(s)
Fixed Versions:
0.0.0-20261202224500-02f27003a69d
Product / Package Ecosystem Affected Versions Fixed Version
istio.io/istio
Go
≥ 0.0.0-20260112152740-3af7534ca9a9
< 0.0.0-20261202224500-02f27003a69d
0.0.0-20261202224500-02f27003a69d

References

Frequently Asked Questions

What is CVE-2026-145369?
CVE-2026-145369 is a security vulnerability in Istio.io/istio involving Istio Gateway can bypass strict gateway merging via internal annotations under CWE-807: Reliance on Untrusted Inputs in a Security Decision.
Which Istio.io/istio versions are affected?
Affected versions include releases prior to 0.0.0-20261202224500-02f27003a69d across affected packages: istio.io/istio.
What version fixes CVE-2026-145369?
Upgrading to 0.0.0-20261202224500-02f27003a69d (or the latest patched release for your respective branch) resolves the vulnerability.
Is istio.io/istio affected?
Yes, istio.io/istio is affected in releases prior to 0.0.0-20261202224500-02f27003a69d. Upgrade your dependency to 0.0.0-20261202224500-02f27003a69d or later.
What is the CVSS score of CVE-2026-145369?
CVE-2026-145369 has a CVSS v3.1 base score of 6.4 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:L.
What CWE is associated with CVE-2026-145369?
CVE-2026-145369 is classified under CWE-807: Reliance on Untrusted Inputs in a Security Decision (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.).
How can I check Go dependencies for CVE-2026-145369?
Run the dependency tree command: 'inspect dependencies for istio.io/istio'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-94hp-7c48-x2x3",
  "modified" : "2026-12-04T22:53:30Z",
  "published" : "2026-12-04T22:53:30Z",
  "aliases" : [ "CVE-2026-145369" ],
  "summary" : "Istio Gateway can bypass strict gateway merging via internal annotations",
  "details" : "### Summary\n\nIstio validation rejects the internal annotations `internal.istio.io/parent-namespace` and `internal.istio.io/parents` when users set them, but it does not reject `internal.istio.io/gateway-semantics` and `internal.istio.io/service-account-name`. A user who can create an Istio `Gateway` in one namespace can set these two annotations to make the `Gateway` look like one generated by the Kubernetes Gateway API controller. This bypasses the strict gateway merging protection (`PILOT_ENABLE_STRICT_GATEWAY_MERGING`, enabled by default), so the `Gateway` is merged into a managed Gateway API gateway proxy in a different namespace. Because istiod read these annotations from stored resources and trusted them at merge time, a `Gateway` stored before the fix, or created while the validation webhook was unavailable, was also exploitable.\n\n\nStrict gateway merging is implemented in `filterStrictGatewayMerging` in `pilot/pkg/model/push_context.go`. When a proxy matches at least one managed Gateway API gateway, Istio `Gateway` resources from other namespaces are dropped from the merge. The function decides whether a config is a managed Gateway API gateway, and which namespace it belongs to, only from two annotations on the config: `internal.istio.io/gateway-semantics` and `internal.istio.io/service-account-name`.\n\nThese annotations are meant to be set only by Istio's Kubernetes Gateway API controller (`pilot/pkg/config/kube/gateway/gateway_collection.go`). The metadata validation wrapper `validateMetadata` in `pkg/config/validation/validation.go` rejects user-set `internal.istio.io/parent-namespace` and `internal.istio.io/parents`, but it did not reject these two. A user-created `Gateway` carrying both annotations is therefore accepted. In `filterStrictGatewayMerging` it is then treated as a Gateway API gateway: its namespace is added to the set of managed namespaces and the config is kept in the merge. A `Gateway` in an unrelated namespace that selects the same gateway workload is merged with the managed gateway, which the feature is designed to prevent.\n\nThe `internal.istio.io/gateway-semantics` annotation also relaxes validation for the `Gateway` (the DNS-1123 name check and namespace/hostname checks in `validateServer`), so a user-set value also changes what validation accepts.\n\nThe fix has three independent layers:\n\n1. **Admission validation.** `validateMetadata` now rejects user-set `internal.istio.io/gateway-semantics` and `internal.istio.io/service-account-name`, in addition to `parent-namespace` and `parents`. The list is defined once as `constants.UserForbiddenInternalAnnotations` and shared with layer 2.\n2. **Ingestion sanitization.** When istiod reads Istio resources from the Kubernetes API (CRD client), it removes the same four annotations from the in-memory config and logs a warning. The stored object is not modified. This neutralizes resources that were persisted before the fix, or while the webhook was down or failing open, without requiring operators to find and edit them first. Configs generated internally by the Kubernetes Gateway API controller do not pass through the CRD client and are unaffected.\n3. **Merge-time provenance.** `filterStrictGatewayMerging` no longer trusts the annotation alone. A config is treated as a managed Gateway API gateway only if it also carries the in-memory marker `Meta.Synthesized`, which is set only by the Gateway API controller, is not serialized, and cannot be set from a stored resource. This protects against annotations reaching the merge through any path other than the CRD client.\n\nInternally generated configs are not affected by validation, because they do not pass through the user-facing validation path.\n\nFixes are available in 1.30.9, 1.31.5 and 1.32.1.\n\n### Workaround\n\nUpgrading to a fixed version is the recommended remediation. It also neutralizes `Gateway` resources that were already stored with the annotations, so no manual cleanup is required for correctness. Until you can upgrade, these mitigations reduce exposure:\n\n- Use Kubernetes `ValidatingAdmissionPolicy`, Kyverno or OPA Gatekeeper to deny any Istio `Gateway` (`networking.istio.io`) that carries an annotation with the prefix `internal.istio.io/`. Trade-off: the policy must be maintained by the cluster operator. Existing resources are not affected by a new admission policy, so also audit stored `Gateway` resources, for example `kubectl get gateways.networking.istio.io -A -o json | grep -F internal.istio.io/`, and remove any such annotation.\n- Set `PILOT_SCOPE_GATEWAY_TO_NAMESPACE=true` on istiod so that a gateway workload only selects `Gateway` resources in its own namespace. Trade-off: this disables cross-namespace `Gateway` selection for all gateways, including legitimate setups that rely on it.\n- Restrict `create` and `update` on `gateways.networking.istio.io` to trusted users. Trade-off: it removes self-service gateway configuration for tenants.\n\n### Proof of concept\n\nReproduced end-to-end on an Istio 1.32.0 kind cluster: a managed Kubernetes Gateway API gateway in one namespace (victim), and an Istio Gateway created by an attacker in another namespace. The attacker's Gateway was correctly dropped by strict gateway merging until the attacker set `internal.istio.io/gateway-semantics: gateway` on it; its server then appeared as a new listener and route on the victim's managed gateway proxy. Setting this single annotation was sufficient; validation accepted it while rejecting the already-banned sibling `internal.istio.io/parent-namespace` on the same path.\n\nThe minimum configuration that shows the validation gap is an Istio `Gateway` created by a user with both annotations set:\n\n```yaml\napiVersion: networking.istio.io/v1\nkind: Gateway\nmetadata:\n  name: example\n  namespace: tenant-b\n  annotations:\n    internal.istio.io/gateway-semantics: gateway\n    internal.istio.io/service-account-name: example-sa\nspec:\n  selector:\n    gateway.networking.k8s.io/gateway-name: managed-gw\n  servers:\n  - port:\n      number: 80\n      name: http\n      protocol: HTTP\n    hosts:\n    - \"tenant-b/*\"\n```\n\nVerified behavior after the fix, same cluster:\n\n- A create or update carrying `internal.istio.io/gateway-semantics` or `internal.istio.io/service-account-name` is rejected by validation with `annotation found, this may not be set by users`.\n- A resource of this shape already stored in etcd (applied while bypassing the webhook) is no longer merged: strict gateway merging ignores it because it was not synthesized by the Gateway API controller.\n\n### Impact\n\nAny user who can create or update `networking.istio.io` `Gateway` resources in any namespace can attempt this. The cluster must run a managed Gateway API gateway whose proxy labels the attacker's `Gateway` selector can match, and `PILOT_ENABLE_STRICT_GATEWAY_MERGING` must be enabled (the default). The protection added by strict gateway merging is lost for that proxy.\n\nThe attacker can add servers (listeners and hosts) to a gateway proxy owned by another namespace. This affects integrity (unexpected listeners or routes on another tenant's gateway) and availability (conflicting servers can cause legitimate configuration to be rejected or shadowed).\n\nConfidentiality is not rated as impacted. Per code reading, secrets referenced by the merged `Gateway` are only authorized when the proxy's verified identity namespace equals the `Gateway` namespace (`mergeGateways` in `pilot/pkg/model/gateway.go`), which does not hold for a `Gateway` from another namespace. This was not tested.\n\nSidecars and ambient workloads are not affected. The issue applies to gateway proxies configured through the `Gateway` resource.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "istio.io/istio"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.0.0-20260112152740-3af7534ca9a9"
      }, {
        "fixed" : "0.0.0-20261202224500-02f27003a69d"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/istio/istio/security/advisories/GHSA-94hp-7c48-x2x3"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/istio/istio/commit/a0bd9d69102cb809a3194a72e47b54c48cfe7415"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/istio/istio/commit/a39d6201f3681676338ccc3856a4d564e2b40152"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/istio/istio/commit/f7006dd7b0ef50aabf1b0ccb86505340f52a8257"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/istio/istio"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/istio/istio/releases/tag/1.30.9"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/istio/istio/releases/tag/1.31.5"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/istio/istio/releases/tag/1.32.1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-807", "CWE-915" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-12-04T22:53:30Z",
    "nvd_published_at" : null
  }
}