CVE-2021-39156: Istio.io/istio Istio Fragments Vulnerability
HIGHCVE-2021-39156 is a HIGH (CVSS 8.1) istio fragments vulnerability (CWE-706: Use of Incorrectly-Resolved Name or Reference) affecting Istio.io/istio libraries in the Go ecosystem. The issue involves istio fragments in path may lead to authorization policy bypass. Remediation is available by upgrading affected packages to version 1.9.8, 1.10.4, 1.11.1.
CVE-2021-39156 at a Glance
Security Impact
CVSS: 8.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N).
How to Fix CVE-2021-39156
To remediate this vulnerability, upgrade all affected Istio.io/istio dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade istio.io/istio to 1.9.8
Upgrade istio.io/istio to 1.10.4
Upgrade istio.io/istio to 1.11.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for istio.io/istio
How to Check if You Are Affected
To determine whether your application is affected by CVE-2021-39156, inspect your project dependencies for Istio.io/istio:
inspect dependencies for istio.io/istio
Analyze the terminal output to locate any version of Istio.io/istio in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.9.8), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-706: Use of Incorrectly-Resolved Name or Reference, where the product uses a name or reference to access a resource, but the name/reference resolves to a resource that is outside of the intended control sphere. In Istio.io/istio, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2021-39156 Affected Istio.io/istio Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
istio.io/istio
|
Go |
< 1.9.8
|
1.9.8
|
|
istio.io/istio
|
Go |
≥ 1.10.0
< 1.10.4
|
1.10.4
|
|
istio.io/istio
|
Go |
≥ 1.11.0
< 1.11.1
All 1 versions
1.11.0
|
1.11.1
|
References
Frequently Asked Questions
What is CVE-2021-39156?
Which Istio.io/istio versions are affected?
What version fixes CVE-2021-39156?
Is istio.io/istio affected?
What is the CVSS score of CVE-2021-39156?
What CWE is associated with CVE-2021-39156?
How can I check Go dependencies for CVE-2021-39156?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-hqxw-mm44-gc4r",
"modified" : "2022-08-15T20:04:30Z",
"published" : "2021-08-30T16:16:14Z",
"aliases" : [ "CVE-2021-39156" ],
"summary" : "Istio Fragments in Path May Lead to Authorization Policy Bypass",
"details" : "### Impact\nIstio 1.11.0, 1.10.3 and below, and 1.9.7 and below contain a remotely exploitable vulnerability where an HTTP request with `#fragment` in the path may bypass Istio’s URI path based authorization policies. \n\n### Patches\n* Istio 1.11.1 and above\n* Istio 1.10.4 and above\n* Istio 1.9.8 and above\n\n### Workarounds\nA Lua filter may be written to normalize the path. 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.\n\n### References\nMore details can be found in the [Istio Security Bulletin](https://istio.io/latest/news/security/istio-security-2021-008)\n\n### For more information\nIf you have any questions or comments about this advisory, please email us at istio-security-vulnerability-reports@googlegroups.com\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "istio.io/istio"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.9.8"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "istio.io/istio"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.10.0"
}, {
"fixed" : "1.10.4"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "istio.io/istio"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.11.0"
}, {
"fixed" : "1.11.1"
} ]
} ],
"versions" : [ "1.11.0" ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/istio/istio/security/advisories/GHSA-hqxw-mm44-gc4r"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-39156"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/istio/istio"
}, {
"type" : "WEB",
"url" : "https://istio.io/latest/news/security/istio-security-2021-008"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-706", "CWE-863" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2021-08-25T22:28:17Z",
"nvd_published_at" : "2021-08-24T23:15:00Z"
}
}