CVE-2021-39155
Authorization Policy Bypass Due to Case Insensitive Host Comparison
Check your servers for CVE-2021-39155
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2021-39155 affects istio, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
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](https://datatracker.ietf.org/doc/html/rfc4343), 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](https://istio.io/latest/docs/ops/best-practices/security/#case-normalization) guide.
Severity (CVSS)
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- none: the attacker does not need an account
- User interaction
- required: a user has to do something, such as open a link or a file
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability low: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 1.25%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 69.4% of all scored CVEs. Scores of 30 Nov 2026.
Weakness
- CWE-178 Improper Handling of Case Sensitivity
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| istio |
affected <= 1.9.8 affected >= 1.10.0, < 1.10.4 affected >= 1.11.0, < 1.11.1
|
Is my server affected?
Find the installed version of istio and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i istio
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2021-39155 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2021-39155RHEL, Rocky, Alma, Fedora
rpm -q istio
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2021-39155Alpine
apk list --installed | grep -i istioWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2021-39155
trivy image --scanners vuln IMAGE | grep CVE-2021-39155
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
Other references
- https://datatracker.ietf.org/doc/html/rfc4343 datatracker.ietf.org
Source: the record CVE-2021-39155 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse