CVE-2021-41266: Github.com/minio/console Authentication Bypass Vulnerability

HIGH
Advisory Identifier: GHSA-4999-659w-mq36
CVSS 8.6
CWE-306
Published
Advisory Summary

CVE-2021-41266 is a HIGH (CVSS 8.6) authentication bypass vulnerability (CWE-306: Missing Authentication for Critical Function) affecting Github.com/minio/console libraries in the Go ecosystem. The issue involves authentication bypass issue in the operator console. Remediation is available by upgrading affected packages to version 0.12.3.

CVE-2021-41266 at a Glance

CVE Identifier CVE-2021-41266
GHSA Identifier GHSA-4999-659w-mq36
Severity HIGH
CVSS v3.1 Base Score 8.6
CWE Classification CWE-306: Missing Authentication for Critical Function
Affected Product Github.com/minio/console
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 8.6

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

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

How to Fix CVE-2021-41266

To remediate this vulnerability, upgrade all affected Github.com/minio/console 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/minio/console fixed: 0.12.3
Upgrade github.com/minio/console to 0.12.3
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/minio/console

How to Check if You Are Affected

To determine whether your application is affected by CVE-2021-41266, inspect your project dependencies for Github.com/minio/console:

inspect dependencies for github.com/minio/console

Analyze the terminal output to locate any version of Github.com/minio/console in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.12.3), 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-306: Missing Authentication for Critical Function, where the product does not perform any authentication for functionality that requires a provable user identity or consumes a significant amount of resources. In Github.com/minio/console, 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

During an internal security audit, we detected an authentication bypass issue in the Operator Console when an external IDP is enabled. The security issue has been reported internally. We have not observed this exploit in the wild or reported elsewhere in the community at large. All users are advised to upgrade ASAP. ### Impact All users on release v0.12.2 and before are affected. ### Patches This issue was fixed by PR https://github.com/minio/console/pull/1217, users should upgrade to latest release. ### Workarounds Add `automountServiceAccountToken: false` to the operator-console deployment in Kubernetes so no service account token will get mounted inside the pod, then disable the external identity provider authentication by unset the `CONSOLE_IDP_URL`, `CONSOLE_IDP_CLIENT_ID`, `CONSOLE_IDP_SECRET` and `CONSOLE_IDP_CALLBACK` environment variable and instead use the Kubernetes service account token. ### References #1217 for more information on the fix and how it was fixed. ### For more information If you have any questions or comments about this advisory: * Open an issue in [console issues](https://github.com/minio/console/issues) * Email us at [security@minio.io](mailto:security@minio.io)

CVE-2021-41266 Affected Github.com/minio/console Versions

1 component(s)
Fixed Versions:
0.12.3
Product / Package Ecosystem Affected Versions Fixed Version
github.com/minio/console
Go
< 0.12.3
0.12.3

References

Frequently Asked Questions

What is CVE-2021-41266?
CVE-2021-41266 is a security vulnerability in Github.com/minio/console involving Authentication bypass issue in the Operator Console under CWE-306: Missing Authentication for Critical Function.
Which Github.com/minio/console versions are affected?
Affected versions include releases prior to 0.12.3 across affected packages: github.com/minio/console.
What version fixes CVE-2021-41266?
Upgrading to 0.12.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/minio/console affected?
Yes, github.com/minio/console is affected in releases prior to 0.12.3. Upgrade your dependency to 0.12.3 or later.
What is the CVSS score of CVE-2021-41266?
CVE-2021-41266 has a CVSS v3.1 base score of 8.6 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L.
What CWE is associated with CVE-2021-41266?
CVE-2021-41266 is classified under CWE-306: Missing Authentication for Critical Function (The product does not perform any authentication for functionality that requires a provable user identity or consumes a significant amount of resources.).
How can I check Go dependencies for CVE-2021-41266?
Run the dependency tree command: 'inspect dependencies for github.com/minio/console'. 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-4999-659w-mq36",
  "modified" : "2021-11-15T20:27:39Z",
  "published" : "2021-11-15T23:16:49Z",
  "aliases" : [ "CVE-2021-41266" ],
  "summary" : "Authentication bypass issue in the Operator Console",
  "details" : "During an internal security audit, we detected an authentication bypass issue in the Operator Console when an external IDP is enabled. The security issue has been reported internally. We have not observed this exploit in the wild or reported elsewhere in the community at large. All users are advised to upgrade ASAP.\n\n### Impact\n\nAll users on release v0.12.2 and before are affected.\n\n### Patches\n\nThis issue was fixed by PR https://github.com/minio/console/pull/1217, users should upgrade to latest release.\n\n### Workarounds\n\nAdd `automountServiceAccountToken: false` to the operator-console deployment in Kubernetes so no service account token will get mounted inside the pod, then disable the external identity provider authentication by unset the `CONSOLE_IDP_URL`, `CONSOLE_IDP_CLIENT_ID`, `CONSOLE_IDP_SECRET` and `CONSOLE_IDP_CALLBACK` environment variable and instead use the Kubernetes service account token.\n\n### References\n\n#1217 for more information on the fix and how it was fixed.\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [console issues](https://github.com/minio/console/issues)\n* Email us at [security@minio.io](mailto:security@minio.io)\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/minio/console"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.12.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/minio/console/security/advisories/GHSA-4999-659w-mq36"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-41266"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/minio/console/pull/1217"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/minio/console"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-306" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-11-15T20:27:39Z",
    "nvd_published_at" : "2021-11-15T21:15:00Z"
  }
}