CVE-2021-31920: Istio.io/istio Istio Authorization Bypass Vulnerability Vulnerability
MODERATECVE-2021-31920 is a MODERATE (CVSS 6.5) istio authorization bypass vulnerability vulnerability (CWE-863: Incorrect Authorization) affecting Istio.io/istio libraries in the Go ecosystem. The issue involves istio authorization bypass vulnerability. Remediation is available by upgrading affected packages to version 1.8.6, 1.9.5.
CVE-2021-31920 at a Glance
Security Impact
CVSS: 6.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N).
How to Fix CVE-2021-31920
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.8.6
Upgrade istio.io/istio to 1.9.5
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-31920, 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.8.6), 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-863: Incorrect Authorization, where the product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check. 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-31920 Affected Istio.io/istio Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
istio.io/istio
|
Go |
< 1.8.6
|
1.8.6
|
|
istio.io/istio
|
Go |
≥ 1.9.0
< 1.9.5
|
1.9.5
|
References
Frequently Asked Questions
What is CVE-2021-31920?
Which Istio.io/istio versions are affected?
What version fixes CVE-2021-31920?
Is istio.io/istio affected?
What is the CVSS score of CVE-2021-31920?
What CWE is associated with CVE-2021-31920?
How can I check Go dependencies for CVE-2021-31920?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-6q5m-22mq-q2xv",
"modified" : "2023-08-07T20:57:01Z",
"published" : "2022-05-24T19:03:32Z",
"withdrawn" : "2023-08-07T20:57:01Z",
"aliases" : [ "CVE-2021-31920" ],
"summary" : "Istio Authorization Bypass Vulnerability",
"details" : "Istio before 1.8.6 and 1.9.x before 1.9.5 has a remotely exploitable vulnerability where an HTTP request path with multiple slashes or escaped slash characters (%2F or %5C) could potentially bypass an Istio authorization policy when path based authorization rules are used.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "istio.io/istio"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.8.6"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "istio.io/istio"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.9.0"
}, {
"fixed" : "1.9.5"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 1.9.4"
}
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-31920"
}, {
"type" : "WEB",
"url" : "https://istio.io/latest/news/security/istio-security-2021-005"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-863" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2023-07-11T16:53:41Z",
"nvd_published_at" : "2021-05-27T05:15:00Z"
}
}