{"id":"CVE-2026-145367","aliases":["EUVD-2026-144848","GHSA-2crx-44xc-8wq7"],"status":"published","title":"Istio: ztunnel does not enforce AuthorizationPolicy trust domain restrictions","description":"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, in ambient mode, a DNS or DNS_ROUND_ROBIN ServiceEntry attached to a waypoint can resolve to no endpoints. buildCluster then returns nil for the resulting STRICT_DNS or LOGICAL_DNS cluster, and waypoint inbound-cluster generation dereferences it, allowing a namespace-scoped creator to leave istiod crash-looping until the ServiceEntry is removed. This issue is fixed in versions 1.30.9, 1.31.5, and 1.32.1.","severity":{"version":"3.1","score":7.7,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:H","level":"high","assessor":"cna","from":"cve","others":[{"version":"3.1","score":6.8,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N","level":"medium","from":"ghsa"}]},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-636","CWE-863"],"published":"2026-12-04T21:25:22Z","modified":"2026-12-04T23:00:41Z","fixes":[{"ecosystem":"Go","package":"istio.io/istio","fixed_in":["0.0.0-20261202191158-a07a301441fc"],"sources":["ghsa"]}],"affected":[{"source":"ghsa","ecosystem":"Go","package":"istio.io/istio","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.0.0-20260112152740-3af7534ca9a9"},{"fixed":"0.0.0-20261202191158-a07a301441fc"}]}]}],"products":[{"vendor":"istio","product":"istio"}],"references":[{"url":"https://github.com/istio/istio/security/advisories/GHSA-2crx-44xc-8wq7","tags":["x_refsource_CONFIRM","advisory"]},{"url":"https://github.com/istio/istio/commit/6b287ae54b044448ccbb4d2c045f959021b56e17","tags":["x_refsource_MISC","fix"]},{"url":"https://github.com/istio/istio/commit/b9ef120222c5c97a117382bc999900323727f25b","tags":["x_refsource_MISC","fix"]},{"url":"https://github.com/istio/istio/commit/bc80e3c2eb672352541197081f7609aa9b854b12","tags":["x_refsource_MISC","fix"]},{"url":"https://github.com/istio/istio/releases/tag/1.30.9","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/istio/istio/releases/tag/1.31.5","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/istio/istio/releases/tag/1.32.1","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/advisories/GHSA-2crx-44xc-8wq7"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/145xxx/CVE-2026-145367.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-145367","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2026-145367","title":"Istio: ztunnel does not enforce AuthorizationPolicy trust domain restrictions","description":"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, in ambient mode, a DNS or DNS_ROUND_ROBIN ServiceEntry attached to a waypoint can resolve to no endpoints. buildCluster then returns nil for the resulting STRICT_DNS or LOGICAL_DNS cluster, and waypoint inbound-cluster generation dereferences it, allowing a namespace-scoped creator to leave istiod crash-looping until the ServiceEntry is removed. This issue is fixed in versions 1.30.9, 1.31.5, and 1.32.1.","status":"published","published":"2026-12-04T21:25:22.287Z","modified":"2026-12-04T21:25:22.287Z","cvss":[{"version":"3.1","score":7.7,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:H","level":"high","assessor":"cna"}],"cwes":["CWE-636","CWE-863"],"updated_at":"2026-12-04T21:34:55.540382Z"}],"euvd":[{"id":"EUVD-2026-144848","description":"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, in ambient mode, a DNS or DNS_ROUND_ROBIN ServiceEntry attached to a waypoint can resolve to no endpoints. buildCluster then returns nil for the resulting STRICT_DNS or LOGICAL_DNS cluster, and waypoint inbound-cluster generation dereferences it, allowing a namespace-scoped creator to leave istiod crash-looping until the ServiceEntry is removed. This issue is fixed in versions 1.30.9, 1.31.5, and 1.32.1.","status":"published","published":"2026-12-04T21:25:22Z","modified":"2026-12-04T21:25:22Z","cvss":[{"version":"3.1","score":7.7,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-12-04T22:42:52.420618Z"}],"ghsa":[{"id":"GHSA-2crx-44xc-8wq7","title":"Istio: ztunnel does not enforce AuthorizationPolicy trust domain restrictions","description":"### Summary\n\nIn ambient mode, `istiod` does not correctly convert the `trustDomains` and `notTrustDomains` source fields, or the `source.trustDomain` condition, of an `AuthorizationPolicy` into the policy that ztunnel enforces. As a result, a `DENY` rule that relies on them can have no effect, and an `ALLOW` rule that combines them with other source fields can admit callers that it is meant to exclude. Sidecars and waypoint proxies enforce these restrictions.\n\n### Details\n\n`handleRule` in [`pilot/pkg/serviceregistry/ambient/authorization.go`](https://github.com/istio/istio/blob/1.32.0/pilot/pkg/serviceregistry/ambient/authorization.go#L612-L621) converts `AuthorizationPolicy` rules for ztunnel. It builds each source match from IP blocks, namespaces, service accounts and principals. It never reads `trustDomains` or `notTrustDomains`. The intended behavior is to match them against the trust domain of the peer identity, as the sidecar and waypoint conversion does.\n\nThe effect depends on the rest of the rule:\n\n| Policy | Behavior in ztunnel |\n|--------|---------------------|\n| `DENY`, source sets only trust domain fields | The source becomes an empty match, which ztunnel never matches. If the rule has no other source, the whole rule never matches, including any `to` or `when` restrictions in it. |\n| `DENY`, trust domain fields combined with another field, such as `namespaces` | Only the other field is enforced. The rule denies more traffic than requested. |\n| `ALLOW`, source sets only trust domain fields | The source never matches. Traffic that should be allowed through it is not. |\n| `ALLOW`, trust domain fields combined with another field | Only the other field is enforced. Callers outside the requested trust domains, or in excluded ones, can be admitted. |\n\nFor these two fields, the policy status does not report a problem and can show that the policy is attached to ztunnel. For a `DENY` rule whose sources set only trust domain fields and that has no `to` section, validation can return a warning that the policy will deny all TCP traffic. The actual behavior is the opposite.\n\nThe `source.trustDomain` condition is a related variant. ztunnel conversion treats it as an unsupported attribute. A `DENY` rule that uses it never matches. An `ALLOW` rule that uses it is omitted, which is more restrictive than requested. In this case the policy status reports an unsupported attribute. Depending on the release, the status message can wrongly describe the `DENY` policy as more restrictive than requested.\n\nThe fix enforces these restrictions in ztunnel, including trust domain aliases. Some restrictions cannot be expressed in ztunnel: a wildcard other than `*` or a single trailing wildcard, and some combinations of `principals` and `trustDomains`. For those, `ALLOW` rules are omitted, `DENY` rules can deny more traffic than requested, and the policy status reports it. Review such policies before upgrading.\n\nFixes are available in 1.30.9, 1.31.5 and 1.32.1 patch releases.\n\n### Workaround\n\nUntil you upgrade, express the restriction in a form that is enforced. Test the result, and apply the replacement before removing the original policy.\n\n- Replace trust domain restrictions with principal restrictions. Use `principals: [\"example.org/*\"]` for `trustDomains: [\"example.org\"]`, `notPrincipals: [\"example.org/*\"]` for `notTrustDomains: [\"example.org\"]`, and the `source.principal` condition for `source.trustDomain`. List the trust domain and each of its aliases explicitly. `*` and a trailing wildcard such as `team-*` can be written as `principals: [\"*\"]` and `principals: [\"team-*\"]`. Trade-offs: other wildcard forms cannot be expressed this way. `principals` and `notPrincipals` cannot be combined with `serviceAccounts` or `notServiceAccounts`. Values within `principals` are alternatives, so if a source already sets `principals`, keep only the entries that belong to the intended trust domains instead of adding a trust domain wildcard.\n- Enforce the policy at a waypoint proxy. Deploy a waypoint for the destination and attach the policy with `targetRefs` instead of a `selector`. Also apply a ztunnel-enforced `ALLOW` policy on the destination workload that admits only the waypoint identity, so that traffic cannot bypass the waypoint. Trade-offs: this adds a proxy hop, and the additional policy blocks clients that connect to the workload without passing through the waypoint. Remove the original `selector` policy, because ztunnel at the destination sees the waypoint identity as the source.\n\n### Proof of concept\n\nAn ambient workload `httpbin` runs in namespace `td-server` with no waypoint. Clients run in namespaces `td-client` and `td-other`. The mesh trust domain is `cluster.local`.\n\nCase 1, a `DENY` that is not enforced:\n\n```yaml\napiVersion: security.istio.io/v1\nkind: AuthorizationPolicy\nmetadata:\n  name: deny-trust-domain\n  namespace: td-server\nspec:\n  selector:\n    matchLabels:\n      app: httpbin\n  action: DENY\n  rules:\n  - from:\n    - source:\n        trustDomains: [\"cluster.local\"]\n```\n\nSend a request from either client:\n\n```sh\ncurl -s -o /dev/null -w '%{http_code}\\n' http://httpbin.td-server:\u003cport\u003e/\n```\n\n- Observed: both clients receive `200`. The ztunnel policy contains an empty match (`[[[{}]]]` in `istioctl ztunnel-config policy -o json`).\n- Expected: both connections are denied. The same policy on a sidecar workload returns `403`.\n\nCase 2, an `ALLOW` that admits an excluded trust domain. Remove the policy from case 1 and apply:\n\n```yaml\napiVersion: security.istio.io/v1\nkind: AuthorizationPolicy\nmetadata:\n  name: allow-namespace-except-trust-domain\n  namespace: td-server\nspec:\n  selector:\n    matchLabels:\n      app: httpbin\n  action: ALLOW\n  rules:\n  - from:\n    - source:\n        namespaces: [\"td-client\"]\n        notTrustDomains: [\"cluster.local\"]\n```\n\n- Observed: the request from `td-client` receives `200`. The request from `td-other` is denied.\n- Expected: both requests are denied. The same policy on a sidecar workload returns `403` for `td-client`.\n\n### Impact\n\nThis affects ambient mode users who have an `AuthorizationPolicy` that is enforced by ztunnel (scoped by `selector`, namespace or root namespace) and that uses `trustDomains`, `notTrustDomains` or the `source.trustDomain` condition.\n\nA caller that can reach an affected workload, and that the policy is meant to reject because of its trust domain, can access it. This affects the confidentiality and integrity of the protected service. No configuration change or Kubernetes permission is needed by the caller. Exploitation depends on how the operator wrote the policy. The typical attacker holds a valid identity in a trust domain that the mesh trusts. Where the workload also accepts plaintext traffic (`PERMISSIVE` mTLS), a `DENY` rule that uses only `notTrustDomains` also fails to reject callers that have no identity.\n\nSome combinations have the opposite effect and reject legitimate traffic, as described in Details.\n\nNot affected: policies enforced by sidecars, gateways or waypoint proxies (including `targetRefs` policies on a waypoint), policies that do not use trust domain restrictions, and mTLS authentication of peers.","status":"published","published":"2026-12-04T23:00:04Z","modified":"2026-12-04T23:00:05Z","cvss":[{"version":"3.1","score":6.8,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N","level":"medium"}],"cwes":["CWE-636","CWE-863"],"updated_at":"2026-12-04T23:30:02.006757Z"}],"nvd":[{"id":"CVE-2026-145367","description":"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, in ambient mode, a DNS or DNS_ROUND_ROBIN ServiceEntry attached to a waypoint can resolve to no endpoints. buildCluster then returns nil for the resulting STRICT_DNS or LOGICAL_DNS cluster, and waypoint inbound-cluster generation dereferences it, allowing a namespace-scoped creator to leave istiod crash-looping until the ServiceEntry is removed. This issue is fixed in versions 1.30.9, 1.31.5, and 1.32.1.","status":"published","published":"2026-12-04T22:18:18.373Z","modified":"2026-12-04T22:18:18.373Z","cvss":[{"version":"3.1","score":7.7,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:H","level":"high","assessor":"secondary"}],"cwes":["CWE-636","CWE-863"],"updated_at":"2026-12-04T22:19:01.32028Z"}],"osv":[{"id":"CVE-2026-145367","title":"Istio: ztunnel does not enforce AuthorizationPolicy trust domain restrictions","description":"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, in ambient mode, a DNS or DNS_ROUND_ROBIN ServiceEntry attached to a waypoint can resolve to no endpoints. buildCluster then returns nil for the resulting STRICT_DNS or LOGICAL_DNS cluster, and waypoint inbound-cluster generation dereferences it, allowing a namespace-scoped creator to leave istiod crash-looping until the ServiceEntry is removed. This issue is fixed in versions 1.30.9, 1.31.5, and 1.32.1.","status":"published","published":"2026-12-04T21:25:22.287Z","modified":"2026-12-04T23:00:41.904165101Z","cvss":[{"version":"3.1","score":7.7,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-636","CWE-863"],"updated_at":"2026-12-04T23:33:23.04011Z"}]}}
