CVE-2021-20278: Github.com/kiali/kiali Authentication Bypass Vulnerability
MODERATECVE-2021-20278 is a MODERATE (CVSS 6.5) authentication bypass vulnerability (CWE-287: Improper Authentication) affecting Github.com/kiali/kiali libraries in the Go ecosystem. The issue involves kiali authentication bypass vulnerability. Remediation is available by upgrading affected packages to version 1.31.0.
CVE-2021-20278 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:N/UI:N/S:U/C:L/I:L/A:N).
How to Fix CVE-2021-20278
To remediate this vulnerability, upgrade all affected Github.com/kiali/kiali 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 github.com/kiali/kiali to 1.31.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/kiali/kiali
How to Check if You Are Affected
To determine whether your application is affected by CVE-2021-20278, inspect your project dependencies for Github.com/kiali/kiali:
inspect dependencies for github.com/kiali/kiali
Analyze the terminal output to locate any version of Github.com/kiali/kiali in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.31.0), 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-287: Improper Authentication, where when an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct. In Github.com/kiali/kiali, 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-20278 Affected Github.com/kiali/kiali Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/kiali/kiali
|
Go |
< 1.31.0
|
1.31.0
|
References
Frequently Asked Questions
What is CVE-2021-20278?
Which Github.com/kiali/kiali versions are affected?
What version fixes CVE-2021-20278?
Is github.com/kiali/kiali affected?
What is the CVSS score of CVE-2021-20278?
What CWE is associated with CVE-2021-20278?
How can I check Go dependencies for CVE-2021-20278?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-ggjr-2f7v-vhq4",
"modified" : "2022-08-11T16:53:09Z",
"published" : "2021-06-01T21:57:08Z",
"aliases" : [ "CVE-2021-20278" ],
"summary" : "Kiali Authentication Bypass vulnerability",
"details" : "An authentication bypass vulnerability was found in Kiali in versions before 1.31.0 when the authentication strategy `OpenID` is used. When RBAC is enabled, Kiali assumes that some of the token validation is handled by the underlying cluster. When OpenID `implicit flow` is used with RBAC turned off, this token validation doesn't occur, and this allows a malicious user to bypass the authentication.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/kiali/kiali"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.31.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-20278"
}, {
"type" : "WEB",
"url" : "https://bugzilla.redhat.com/show_bug.cgi?id=1937171"
}, {
"type" : "WEB",
"url" : "https://kiali.io/news/security-bulletins/kiali-security-002"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-287", "CWE-290" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2021-06-01T17:44:07Z",
"nvd_published_at" : "2021-05-28T11:15:00Z"
}
}