CVE-2021-3495: Github.com/kiali/kiali Access Control Flaw Vulnerability

HIGH
Advisory Identifier: GHSA-mv55-23xp-3wp8
CVSS 8.8
CWE-281
Published
Advisory Summary

CVE-2021-3495 is a HIGH (CVSS 8.8) access control flaw vulnerability (CWE-281: Improper Preservation of Permissions) affecting Github.com/kiali/kiali libraries in the Go ecosystem. The issue involves access control flaw in kiali. Remediation is available by upgrading affected packages to version 1.33.0.

CVE-2021-3495 at a Glance

CVE Identifier CVE-2021-3495
GHSA Identifier GHSA-mv55-23xp-3wp8
Severity HIGH
CVSS v3.1 Base Score 8.8
CWE Classification CWE-281: Improper Preservation of Permissions
Affected Product Github.com/kiali/kiali
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 8.8

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:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2021-3495

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.

github.com/kiali/kiali fixed: 1.33.0
Upgrade github.com/kiali/kiali to 1.33.0
Verify Direct and Transitive Dependencies

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-3495, 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.33.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-281: Improper Preservation of Permissions, where the product does not preserve permissions or incorrectly preserves permissions when copying, restoring, or sharing objects, which can cause them to have less restrictive permissions than intended. 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

An incorrect access control flaw was found in the kiali-operator in versions before 1.33.0. This flaw allows an attacker with a basic level of access to the cluster (to deploy a kiali operand) to use this vulnerability and deploy a given image to anywhere in the cluster, potentially gaining access to privileged service account tokens. The highest threat from this vulnerability is to data confidentiality and integrity as well as system availability.

CVE-2021-3495 Affected Github.com/kiali/kiali Versions

1 component(s)
Fixed Versions:
1.33.0
Product / Package Ecosystem Affected Versions Fixed Version
github.com/kiali/kiali
Go
< 1.33.0
1.33.0

References

Frequently Asked Questions

What is CVE-2021-3495?
CVE-2021-3495 is a security vulnerability in Github.com/kiali/kiali involving Access control flaw in Kiali under CWE-281: Improper Preservation of Permissions.
Which Github.com/kiali/kiali versions are affected?
Affected versions include releases prior to 1.33.0 across affected packages: github.com/kiali/kiali.
What version fixes CVE-2021-3495?
Upgrading to 1.33.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/kiali/kiali affected?
Yes, github.com/kiali/kiali is affected in releases prior to 1.33.0. Upgrade your dependency to 1.33.0 or later.
What is the CVSS score of CVE-2021-3495?
CVE-2021-3495 has a CVSS v3.1 base score of 8.8 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2021-3495?
CVE-2021-3495 is classified under CWE-281: Improper Preservation of Permissions (The product does not preserve permissions or incorrectly preserves permissions when copying, restoring, or sharing objects, which can cause them to have less restrictive permissions than intended.).
How can I check Go dependencies for CVE-2021-3495?
Run the dependency tree command: 'inspect dependencies for github.com/kiali/kiali'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-mv55-23xp-3wp8",
  "modified" : "2021-06-15T19:56:20Z",
  "published" : "2021-06-08T20:09:36Z",
  "aliases" : [ "CVE-2021-3495" ],
  "summary" : "Access control flaw in Kiali",
  "details" : "An incorrect access control flaw was found in the kiali-operator in versions before 1.33.0. This flaw allows an attacker with a basic level of access to the cluster (to deploy a kiali operand) to use this vulnerability and deploy a given image to anywhere in the cluster, potentially gaining access to privileged service account tokens. The highest threat from this vulnerability is to data confidentiality and integrity as well as system availability.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/kiali/kiali"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.33.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-3495"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/kiali/kiali-operator/pull/278"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=1947361"
  }, {
    "type" : "WEB",
    "url" : "https://kiali.io/news/security-bulletins/kiali-security-003"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-281" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-06-02T20:54:29Z",
    "nvd_published_at" : "2021-06-01T14:15:00Z"
  }
}