Every CVESearch/Get API key

CVE-2026-145369

Istio Gateway can bypass strict gateway merging via internal annotations

Explain with AI
ChatGPTClaudeGoogle AI
Severity
6.4Medium
Network attack, low privileges, no user interactionCVSS 3.1, CVE List
Exploitation
Unknown
No source reports exploitation yet.
Exploit chance
Unknown
No source reports an EPSS score yet.
Listed fix
0.0.0-20261202224500-02f27003a69d for istio.io/istio
From GitHub Advisories

Overview

Istio is an open platform to connect, manage, and secure microservices. From 1.30.0 until 1.30.9, 1.31.5, and 1.32.1, the strict gateway merging protection (PILOT_ENABLE_STRICT_GATEWAY_MERGING, enabled by default) identified Kubernetes Gateway API-managed gateways solely by the internal.istio.io/gateway-semantics and internal.istio.io/service-account-name annotations, which admission validation did not reject when set by users. A user who can create or update an Istio Gateway can set internal.istio.io/gateway-semantics: gateway so that the Gateway is merged into a managed Gateway API gateway proxy in another namespace whose labels its selector matches. Also setting internal.istio.io/service-account-name causes the attacker's namespace to be treated as managed, so every other Gateway in that namespace is merged as well. istiod trusted these annotations on stored resources, including Gateway resources stored before the fix or created while the validation webhook was unavailable. An attacker can add listeners and hosts to another namespace's gateway proxy, and conflicting servers can cause legitimate configuration to be rejected or shadowed. This issue is fixed in versions 1.30.9, 1.31.5, and 1.32.1.

CVSS 3.1 vector

Exploitability

Attack vector
Network
Complexity
Low
Privileges needed
Low
User interaction
None

Impact

Scope
Changed
Confidentiality
None
Integrity
Low
Availability
Low
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:L

Affected

Packages 1

Affected packages
PackageAffectedFixed
istio.io/istio
Go
0.0.0-20260112152740-3af7534ca9a9 up to 0.0.0-20261202224500-02f27003a69d
0.0.0-20261202224500-02f27003a69d

Products 1

Sources

CVE List Score usedCVSS 3.16.4

Istio Gateway can bypass strict gateway merging via internal annotations

Istio is an open platform to connect, manage, and secure microservices. From 1.30.0 until 1.30.9, 1.31.5, and 1.32.1, the strict gateway merging protection (PILOT_ENABLE_STRICT_GATEWAY_MERGING, enabled by default) identified Kubernetes Gateway API-managed gateways solely by the internal.istio.io/gateway-semantics and internal.istio.io/service-account-name annotations, which admission validation did not reject when set by users. A user who can create or update an Istio Gateway can set internal.istio.io/gateway-semantics: gateway so that the Gateway is merged into a managed Gateway API gateway proxy in another namespace whose labels its selector matches. Also setting internal.istio.io/service-account-name causes the attacker's namespace to be treated as managed, so every other Gateway in that namespace is merged as well. istiod trusted these annotations on stored resources, including Gateway resources stored before the fix or created while the validation webhook was unavailable. An attacker can add listeners and hosts to another namespace's gateway proxy, and conflicting servers can cause legitimate configuration to be rejected or shadowed. This issue is fixed in versions 1.30.9, 1.31.5, and 1.32.1.

Record
CVE-2026-145369
CVSS 3.1
6.4 MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:L
Weakness
CWE-807, CWE-915
Updated
2026-12-04
EUVDEUVD-2026-144858CVSS 3.16.4

Istio is an open platform to connect, manage, and secure microservices. From 1.30.0 until 1.30.9, 1.31.5, and 1.32.1, the strict gateway merging protection (PILOT_ENABLE_STRICT_GATEWAY_MERGING, enabled by default) identified Kubernetes Gateway API-managed gateways solely by the internal.istio.io/gateway-semantics and internal.istio.io/service-account-name annotations, which admission validation did not reject when set by users. A user who can create or update an Istio Gateway can set internal.istio.io/gateway-semantics: gateway so that the Gateway is merged into a managed Gateway API gateway proxy in another namespace whose labels its selector matches. Also setting internal.istio.io/service-account-name causes the attacker's namespace to be treated as managed, so every other Gateway in that namespace is merged as well. istiod trusted these annotations on stored resources, including Gateway resources stored before the fix or created while the validation webhook was unavailable. An attacker can add listeners and hosts to another namespace's gateway proxy, and conflicting servers can cause legitimate configuration to be rejected or shadowed. This issue is fixed in versions 1.30.9, 1.31.5, and 1.32.1.

Record
EUVD-2026-144858
CVSS 3.1
6.4 MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:L
Updated
2026-12-04
GitHub AdvisoriesGHSA-94hp-7c48-x2x3CVSS 3.16.4

Istio Gateway can bypass strict gateway merging via internal annotations

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…

Record
GHSA-94hp-7c48-x2x3
CVSS 3.1
6.4 MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:L
Weakness
CWE-807, CWE-915
Updated
2026-12-04
NVDCVSS 3.16.4

Istio is an open platform to connect, manage, and secure microservices. From 1.30.0 until 1.30.9, 1.31.5, and 1.32.1, the strict gateway merging protection (PILOT_ENABLE_STRICT_GATEWAY_MERGING, enabled by default) identified Kubernetes Gateway API-managed gateways solely by the internal.istio.io/gateway-semantics and internal.istio.io/service-account-name annotations, which admission validation did not reject when set by users. A user who can create or update an Istio Gateway can set internal.istio.io/gateway-semantics: gateway so that the Gateway is merged into a managed Gateway API gateway proxy in another namespace whose labels its selector matches. Also setting internal.istio.io/service-account-name causes the attacker's namespace to be treated as managed, so every other Gateway in that namespace is merged as well. istiod trusted these annotations on stored resources, including Gateway resources stored before the fix or created while the validation webhook was unavailable. An attacker can add listeners and hosts to another namespace's gateway proxy, and conflicting servers can cause legitimate configuration to be rejected or shadowed. This issue is fixed in versions 1.30.9, 1.31.5, and 1.32.1.

Record
CVE-2026-145369
CVSS 3.1
6.4 MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:L
Weakness
CWE-807, CWE-915
Updated
2026-12-04
OSVCVSS 3.16.4

Istio Gateway can bypass strict gateway merging via internal annotations

Istio is an open platform to connect, manage, and secure microservices. From 1.30.0 until 1.30.9, 1.31.5, and 1.32.1, the strict gateway merging protection (PILOT_ENABLE_STRICT_GATEWAY_MERGING, enabled by default) identified Kubernetes Gateway API-managed gateways solely by the internal.istio.io/gateway-semantics and internal.istio.io/service-account-name annotations, which admission validation did not reject when set by users. A user who can create or update an Istio Gateway can set internal.istio.io/gateway-semantics: gateway so that the Gateway is merged into a managed Gateway API gateway proxy in another namespace whose labels its selector matches. Also setting internal.istio.io/service-account-name causes the attacker's namespace to be treated as managed, so every other Gateway in that namespace is merged as well. istiod trusted these annotations on stored resources, including Gateway resources stored before the fix or created while the validation webhook was unavailable. An attacker can add listeners and hosts to another namespace's gateway proxy, and conflicting servers can cause legitimate configuration to be rejected or shadowed. This issue is fixed in versions 1.30.9, 1.31.5, and 1.32.1.

Record
CVE-2026-145369
CVSS 3.1
6.4 MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:L
Weakness
CWE-807, CWE-915
Updated
2026-12-04

The JSON record also has the rest of 1 source description.

History

Recorded by Every CVE

Changes recorded by Every CVE
DayChangedSources
Other IDs, published dateEUVD
ReferencesOSV
Affected packages, other IDs, key facts, referencesGitHub Advisories, NVD
First indexedCVE List

Upstream dates may differ.

References

MoveEnter Open