Istio: AuthorizationPolicy conditions on request.headers[:authority] are bypassed by changing the host case
GHSA-7m6f-j3gp-2r53 · CVE-2026-145236
Published · Modified
AI SAST
Find this class of vulnerability in your own code
Corgea's AI-native static analysis detects vulnerabilities like this one across your repositories, ranks them by exploitability, and returns review-ready fixes.
Description
Summary
An 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.
Details
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.
Patches
Fixes are available in 1.30.8 and 1.31.4
Workarounds
Use to.operation.hosts / notHosts instead of when conditions on request.headers[:authority] or request.headers[host].
Proof of concept
Route
admin.example.comthrough an ingress gateway to a backend.Apply on the gateway:
apiVersion: security.istio.io/v1 kind: AuthorizationPolicy metadata: name: deny-admin namespace: istio-system spec: selector: matchLabels: istio: ingressgateway action: DENY rules: - when: - key: request.headers[:authority] values: ["admin.example.com"]curl -H 'Host: admin.example.com' http://$GW/returns 403;curl -H 'Host: ADMIN.example.com' http://$GW/reaches the backend.
Impact
Authorization 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.
References
- WEB https://github.com/istio/istio/security/advisories/GHSA-7m6f-j3gp-2r53
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-145236
- WEB https://github.com/istio/istio/commit/159ac99d3291f0e30f72464ec7138af3ffd0dcd9
- WEB https://github.com/istio/istio/commit/4f9c89717ca86bd65f8904f0800589500fde0c6d
- WEB https://github.com/istio/istio/commit/56134aab6a8e7836a209ed813ec09376f31edcdd
- WEB https://github.com/istio/istio/commit/86660fdfa037ccadcc9341299e5d66574ec3eec7
- PACKAGE https://github.com/istio/istio
- WEB https://github.com/istio/istio/releases/tag/1.30.8
- WEB https://github.com/istio/istio/releases/tag/1.31.4
- WEB https://github.com/istio/istio/releases/tag/1.32.0
Ready to move
Start Securing
Free, no credit card | First findings in minutes