{"id":"GHSA-7m6f-j3gp-2r53","summary":"Istio: AuthorizationPolicy conditions on request.headers[:authority] are bypassed by changing the host case","details":"### Summary\n\nAn AuthorizationPolicy `when` condition on `request.headers[:authority]` (or `request.headers[host]`) is matched case-sensitively, so a request with a differently-cased host bypasses it.\n\n### Details\n\n`to.operation.hosts` has been matched case-insensitively since CVE-2021-39155, and GHSA-w44g-8m76-8gc5 did the same for methods. A `when` condition with `key: request.headers[:authority]` still goes through the generic header matcher and compiles to a case-sensitive Envoy `:authority` matcher. Envoy routes hosts case-insensitively, so a request for `ADMIN.example.com` reaches the `admin.example.com` route but does not match a DENY rule on `request.headers[:authority]`, or does match an ALLOW rule with `notValues`. `request.headers[host]` has the same issue, because Envoy maps the `host` header to `:authority`. HTTP/1.1 and HTTP/2 are both affected.\n\n### Patches\nFixes are available in 1.30.8 and 1.31.4\n\n\n### Workarounds\n\nUse `to.operation.hosts` / `notHosts` instead of `when` conditions on `request.headers[:authority]` or `request.headers[host]`.\n\n### Proof of concept\n\n1. Route `admin.example.com` through an ingress gateway to a backend.\n2. Apply on the gateway:\n\n   ```yaml\n   apiVersion: security.istio.io/v1\n   kind: AuthorizationPolicy\n   metadata:\n     name: deny-admin\n     namespace: istio-system\n   spec:\n     selector:\n       matchLabels:\n         istio: ingressgateway\n     action: DENY\n     rules:\n     - when:\n       - key: request.headers[:authority]\n         values: [\"admin.example.com\"]\n   ```\n\n3. `curl -H 'Host: admin.example.com' http://$GW/` returns 403; `curl -H 'Host: ADMIN.example.com' http://$GW/` reaches the backend.\n\n\n### Impact\n\nAuthorization bypass. A client can reach a host that an AuthorizationPolicy is meant to deny by changing the case of the Host / :authority header. Only policies using `when` conditions on `request.headers[:authority]` or `request.headers[host]` are affected; `to.operation.hosts` is not.","aliases":["CVE-2026-145236"],"modified":"2026-12-05T18:48:25.159805624Z","published":"2026-12-04T22:11:32Z","database_specific":{"nvd_published_at":"2026-12-04T21:17:57Z","cwe_ids":["CWE-178"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2026-12-04T22:11:32Z"},"references":[{"type":"WEB","url":"https://github.com/istio/istio/security/advisories/GHSA-7m6f-j3gp-2r53"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-145236"},{"type":"WEB","url":"https://github.com/istio/istio/commit/159ac99d3291f0e30f72464ec7138af3ffd0dcd9"},{"type":"WEB","url":"https://github.com/istio/istio/commit/4f9c89717ca86bd65f8904f0800589500fde0c6d"},{"type":"WEB","url":"https://github.com/istio/istio/commit/56134aab6a8e7836a209ed813ec09376f31edcdd"},{"type":"WEB","url":"https://github.com/istio/istio/commit/86660fdfa037ccadcc9341299e5d66574ec3eec7"},{"type":"PACKAGE","url":"https://github.com/istio/istio"},{"type":"WEB","url":"https://github.com/istio/istio/releases/tag/1.30.8"},{"type":"WEB","url":"https://github.com/istio/istio/releases/tag/1.31.4"},{"type":"WEB","url":"https://github.com/istio/istio/releases/tag/1.32.0"}],"affected":[{"package":{"name":"istio.io/istio","ecosystem":"Go","purl":"pkg:golang/istio.io/istio"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-20260112152740-3af7534ca9a9"},{"fixed":"0.0.0-20261107225437-4f9c89717ca8"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/12/GHSA-7m6f-j3gp-2r53/GHSA-7m6f-j3gp-2r53.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N"}]}