CVE-2020-8565: K8s.io/client go Kubernetes Client-go Vulnerable To Sensitive Vulnerability

MODERATE
Advisory Identifier: GHSA-8cfg-vx93-jvxw
CVSS 4.7
CWE-532
Published
Advisory Summary

CVE-2020-8565 is a MODERATE (CVSS 4.7) kubernetes client-go vulnerable to sensitive vulnerability (CWE-532: Insertion of Sensitive Information into Log File) affecting K8s.io/client go libraries in the Go ecosystem. The issue involves kubernetes client-go vulnerable to sensitive information leak via log file. Remediation is available by upgrading affected packages to version 0.19.6, 0.20.0-alpha.2, 0.18.14, 0.17.16, 1.20.0-alpha.2.

CVE-2020-8565 at a Glance

CVE Identifier CVE-2020-8565
GHSA Identifier GHSA-8cfg-vx93-jvxw
Severity MODERATE
CVSS v3.1 Base Score 4.7
CWE Classification CWE-532: Insertion of Sensitive Information into Log File
Affected Product K8s.io/client go
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 4.7

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N).

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

How to Fix CVE-2020-8565

To remediate this vulnerability, upgrade all affected K8s.io/client go dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

k8s.io/client-go fixed: 0.19.6
Upgrade k8s.io/client-go to 0.19.6
k8s.io/client-go fixed: 0.20.0-alpha.2
Upgrade k8s.io/client-go to 0.20.0-alpha.2
k8s.io/client-go fixed: 0.18.14
Upgrade k8s.io/client-go to 0.18.14
k8s.io/client-go fixed: 0.17.16
Upgrade k8s.io/client-go to 0.17.16
k8s.io/kubernetes fixed: 1.20.0-alpha.2
Upgrade k8s.io/kubernetes to 1.20.0-alpha.2
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 k8s.io/client-go

How to Check if You Are Affected

To determine whether your application is affected by CVE-2020-8565, inspect your project dependencies for K8s.io/client go:

inspect dependencies for k8s.io/client-go

Analyze the terminal output to locate any version of K8s.io/client go in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.19.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-532: Insertion of Sensitive Information into Log File, where the product writes sensitive information to a log file. In K8s.io/client go, 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

In Kubernetes, if the logging level is set to at least 9, authorization and bearer tokens will be written to log files. This can occur both in API server logs and client tool output like kubectl. This affects <= v1.19.5, <= v1.18.13, <= v1.17.15, < v1.20.0-alpha2.

CVE-2020-8565 Affected K8s.io/client go Versions

5 component(s)
Fixed Versions:
0.19.60.20.0-alpha.20.18.140.17.161.20.0-alpha.2
Product / Package Ecosystem Affected Versions Fixed Version
k8s.io/client-go
Go
≥ 0.19.0
< 0.19.6
0.19.6
k8s.io/client-go
Go
≥ 0.20.0-alpha.0
< 0.20.0-alpha.2
0.20.0-alpha.2
k8s.io/client-go
Go
≥ 0.18.0
< 0.18.14
0.18.14
k8s.io/client-go
Go
< 0.17.16
0.17.16
k8s.io/kubernetes
Go
< 1.20.0-alpha.2
1.20.0-alpha.2

References

Frequently Asked Questions

What is CVE-2020-8565?
CVE-2020-8565 is a security vulnerability in K8s.io/client go involving Kubernetes client-go vulnerable to Sensitive Information Leak via Log File under CWE-532: Insertion of Sensitive Information into Log File.
Which K8s.io/client go versions are affected?
Affected versions include releases prior to 0.19.6, 0.20.0-alpha.2, 0.18.14, 0.17.16, 1.20.0-alpha.2 across affected packages: k8s.io/client-go, k8s.io/kubernetes.
What version fixes CVE-2020-8565?
Upgrading to 0.19.6, 0.20.0-alpha.2, 0.18.14, 0.17.16, 1.20.0-alpha.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is k8s.io/client-go affected?
Yes, k8s.io/client-go is affected in releases prior to 0.19.6, 0.20.0-alpha.2, 0.18.14, 0.17.16. Upgrade your dependency to 0.19.6, 0.20.0-alpha.2, 0.18.14, 0.17.16 or later.
Is k8s.io/kubernetes affected?
Yes, k8s.io/kubernetes is affected in releases prior to 1.20.0-alpha.2. Upgrade your dependency to 1.20.0-alpha.2 or later.
What is the CVSS score of CVE-2020-8565?
CVE-2020-8565 has a CVSS v3.1 base score of 4.7 (MODERATE) with vector string CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2020-8565?
CVE-2020-8565 is classified under CWE-532: Insertion of Sensitive Information into Log File (The product writes sensitive information to a log file.).
How can I check Go dependencies for CVE-2020-8565?
Run the dependency tree command: 'inspect dependencies for k8s.io/client-go'. 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-8cfg-vx93-jvxw",
  "modified" : "2024-05-20T19:48:09Z",
  "published" : "2023-02-06T23:27:56Z",
  "aliases" : [ "CVE-2020-8565" ],
  "summary" : "Kubernetes client-go vulnerable to Sensitive Information Leak via Log File",
  "details" : "In Kubernetes, if the logging level is set to at least 9, authorization and bearer tokens will be written to log files. This can occur both in API server logs and client tool output like kubectl. This affects <= v1.19.5, <= v1.18.13, <= v1.17.15, < v1.20.0-alpha2.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "k8s.io/client-go"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.19.0"
      }, {
        "fixed" : "0.19.6"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "k8s.io/client-go"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.20.0-alpha.0"
      }, {
        "fixed" : "0.20.0-alpha.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "k8s.io/client-go"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.18.0"
      }, {
        "fixed" : "0.18.14"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "k8s.io/client-go"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.17.16"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "k8s.io/kubernetes"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.20.0-alpha.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-8565"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/kubernetes/kubernetes/issues/95623"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/kubernetes/kubernetes/pull/95316"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/kubernetes/client-go/commit/19875a3d5a2e0d4f51c976a9e0662de3c2c011e3"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/kubernetes/client-go/commit/1b8383fc150c9b816b0072032cca75754c2734d0"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/kubernetes/client-go/commit/44e1a07f2d513e375c4b6ee6e890040b47befe86"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/kubernetes/client-go/commit/e8f871a2e5fadf90fc114565abc0963967f1a373"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/kubernetes/kubernetes/commit/e99df0e5a75eb6e86123b56d53e9b7ca0fd00419"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/kubernetes/client-go"
  }, {
    "type" : "WEB",
    "url" : "https://groups.google.com/g/kubernetes-security-discuss/c/vm-HcrFUOCs/m/36utxAM5CwAJ"
  }, {
    "type" : "WEB",
    "url" : "https://pkg.go.dev/vuln/GO-2021-0064"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-532" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-02-06T23:27:56Z",
    "nvd_published_at" : null
  }
}