CVE-2020-8565: K8s.io/client go Kubernetes Client-go Vulnerable To Sensitive Vulnerability
MODERATECVE-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
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).
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.
Upgrade k8s.io/client-go to 0.19.6
Upgrade k8s.io/client-go to 0.20.0-alpha.2
Upgrade k8s.io/client-go to 0.18.14
Upgrade k8s.io/client-go to 0.17.16
Upgrade k8s.io/kubernetes to 1.20.0-alpha.2
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
CVE-2020-8565 Affected K8s.io/client go Versions
5 component(s)| 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?
Which K8s.io/client go versions are affected?
What version fixes CVE-2020-8565?
Is k8s.io/client-go affected?
Is k8s.io/kubernetes affected?
What is the CVSS score of CVE-2020-8565?
What CWE is associated with CVE-2020-8565?
How can I check Go dependencies for CVE-2020-8565?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}