CVE-2021-39155: Authorization Policy Bypass Due to Case Insensitive Host Comparison

Published Aug 24, 2021
·
Updated

Istio is an open source platform for providing a uniform way to integrate microservices, manage traffic flow across microservices, enforce policies and aggregate telemetry data. According to RFC 4343, Istio authorization policy should compare the hostname in the HTTP Host header in a case insensitive way, but currently the comparison is case sensitive. The proxy will route the request hostname in a case-insensitive way which means the authorization policy could be bypassed. As an example, the user may have an authorization policy that rejects request with hostname "httpbin.foo" for some source IPs, but the attacker can bypass this by sending the request with hostname "Httpbin.Foo". Patches are available in Istio 1.11.1, Istio 1.10.4 and Istio 1.9.8. As a work around a Lua filter may be written to normalize Host header before the authorization check. This is similar to the Path normalization presented in the Security Best Practices guide.

Affected Software

3 affected components
Istio Istio<1.9.8
Istio Istio>=1.10.0<1.10.4
Istio Istio>=1.11.0<1.11.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Istio to a version that resolves this vulnerability.

    Fixed in 1.11.1
  2. Upgrade

    Upgrade Istio to a version that resolves this vulnerability.

    Fixed in 1.10.4
  3. Upgrade

    Upgrade Istio to a version that resolves this vulnerability.

    Fixed in 1.9.8
  4. Configuration

    Implement a Lua filter that normalizes the HTTP Host header (e.g., convert it to lowercase) before Istio authorization policy performs the hostname comparison, to prevent bypass using different Host header casing (e.g., "Httpbin.Foo" vs "httpbin.foo").

    Istio (Envoy) Lua filter workaround Normalize HTTP Host header before authorization check (case-insensitive match) = Lowercase the Host header value

Event History

Aug 24, 2021
CVE Published
via MITRE·10:25 PM
Data Sourced
via MITRE·10:25 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·11:15 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is CVE-2021-39155?

CVE-2021-39155 is a vulnerability in Istio, an open source platform for integrating microservices, that allows unauthorized users to bypass authorization policies.

2

How does CVE-2021-39155 affect Istio?

CVE-2021-39155 affects Istio versions 1.9.8, 1.10.0 to 1.10.4, and 1.11.0 to 1.11.1 on Microsoft Windows Server 2022.

3

What is the severity of CVE-2021-39155?

CVE-2021-39155 has a severity rating of 7.5 (High).

4

What is the CWE ID of CVE-2021-39155?

CVE-2021-39155 has a CWE ID of 178.

5

How can I fix CVE-2021-39155?

To fix CVE-2021-39155, it is recommended to upgrade to a patched version of Istio.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203