CVE-2020-8558: K8s.io/kubernetes Improper Authentication Vulnerability

HIGH
Advisory Identifier: GHSA-wqv3-8cm6-h6wg
CVSS 8.8
CWE-420
Published
Advisory Summary

CVE-2020-8558 is a HIGH (CVSS 8.8) improper authentication vulnerability (CWE-420: Unprotected Alternate Channel) affecting K8s.io/kubernetes libraries in the Go ecosystem. The issue involves improper authentication in kubernetes. Remediation is available by upgrading affected packages to version 1.18.4, 1.17.7, 1.16.11.

CVE-2020-8558 at a Glance

CVE Identifier CVE-2020-8558
GHSA Identifier GHSA-wqv3-8cm6-h6wg
Severity HIGH
CVSS v3.1 Base Score 8.8
CWE Classification CWE-420: Unprotected Alternate Channel
Affected Product K8s.io/kubernetes
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:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).

Attack Vector Adjacent (AV:A)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
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-2020-8558

To remediate this vulnerability, upgrade all affected K8s.io/kubernetes 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/kubernetes fixed: 1.18.4
Upgrade k8s.io/kubernetes to 1.18.4
k8s.io/kubernetes fixed: 1.17.7
Upgrade k8s.io/kubernetes to 1.17.7
k8s.io/kubernetes fixed: 1.16.11
Upgrade k8s.io/kubernetes to 1.16.11
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/kubernetes

How to Check if You Are Affected

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

inspect dependencies for k8s.io/kubernetes

Analyze the terminal output to locate any version of K8s.io/kubernetes in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.18.4), 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-420: Unprotected Alternate Channel, where the product protects a primary channel, but it does not use the same level of protection for an alternate channel. In K8s.io/kubernetes, 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

A security issue was discovered in the Kubelet and kube-proxy components of Kubernetes which allows adjacent hosts to reach TCP and UDP services bound to 127.0.0.1 running on the node or in the node's network namespace. For example, if a cluster administrator runs a TCP service on a node that listens on 127.0.0.1:1234, because of this bug, that service would be potentially reachable by other hosts on the same LAN as the node, or by containers running on the same node as the service. If the example service on port 1234 required no additional authentication (because it assumed that only other localhost processes could reach it), then it could be vulnerable to attacks that make use of this bug.

CVE-2020-8558 Affected K8s.io/kubernetes Versions

3 component(s)
Fixed Versions:
1.18.41.17.71.16.11
Product / Package Ecosystem Affected Versions Fixed Version
k8s.io/kubernetes
Go
≥ 1.18.0
< 1.18.4
1.18.4
k8s.io/kubernetes
Go
≥ 1.17.0
< 1.17.7
1.17.7
k8s.io/kubernetes
Go
< 1.16.11
1.16.11

References

Frequently Asked Questions

What is CVE-2020-8558?
CVE-2020-8558 is a security vulnerability in K8s.io/kubernetes involving Improper Authentication in Kubernetes under CWE-420: Unprotected Alternate Channel.
Which K8s.io/kubernetes versions are affected?
Affected versions include releases prior to 1.18.4, 1.17.7, 1.16.11 across affected packages: k8s.io/kubernetes.
What version fixes CVE-2020-8558?
Upgrading to 1.18.4, 1.17.7, 1.16.11 (or the latest patched release for your respective branch) resolves the vulnerability.
Is k8s.io/kubernetes affected?
Yes, k8s.io/kubernetes is affected in releases prior to 1.18.4, 1.17.7, 1.16.11. Upgrade your dependency to 1.18.4, 1.17.7, 1.16.11 or later.
What is the CVSS score of CVE-2020-8558?
CVE-2020-8558 has a CVSS v3.1 base score of 8.8 (HIGH) with vector string CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2020-8558?
CVE-2020-8558 is classified under CWE-420: Unprotected Alternate Channel (The product protects a primary channel, but it does not use the same level of protection for an alternate channel.).
How can I check Go dependencies for CVE-2020-8558?
Run the dependency tree command: 'inspect dependencies for k8s.io/kubernetes'. 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-wqv3-8cm6-h6wg",
  "modified" : "2023-01-06T22:23:41Z",
  "published" : "2022-02-15T01:57:18Z",
  "aliases" : [ "CVE-2020-8558" ],
  "summary" : "Improper Authentication in Kubernetes",
  "details" : "A security issue was discovered in the Kubelet and kube-proxy components of Kubernetes which allows adjacent hosts to reach TCP and UDP services bound to 127.0.0.1 running on the node or in the node's network namespace. For example, if a cluster administrator runs a TCP service on a node that listens on 127.0.0.1:1234, because of this bug, that service would be potentially reachable by other hosts on the same LAN as the node, or by containers running on the same node as the service. If the example service on port 1234 required no additional authentication (because it assumed that only other localhost processes could reach it), then it could be vulnerable to attacks that make use of this bug.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "k8s.io/kubernetes"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.18.0"
      }, {
        "fixed" : "1.18.4"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "k8s.io/kubernetes"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.17.0"
      }, {
        "fixed" : "1.17.7"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "k8s.io/kubernetes"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.16.11"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/bottlerocket-os/bottlerocket/security/advisories/GHSA-wqv3-8cm6-h6wg"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-8558"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/kubernetes/kubernetes/issues/92315"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=1843358"
  }, {
    "type" : "WEB",
    "url" : "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-8558"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/kubernetes/kubernetes"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/tabbysable/POC-2020-8558"
  }, {
    "type" : "WEB",
    "url" : "https://groups.google.com/g/kubernetes-announce/c/sI4KmlH3S2I/m/TljjxOBvBQAJ"
  }, {
    "type" : "WEB",
    "url" : "https://groups.google.com/g/kubernetes-security-announce/c/B1VegbBDMTE"
  }, {
    "type" : "WEB",
    "url" : "https://labs.bishopfox.com/tech-blog/bad-pods-kubernetes-pod-privilege-escalation"
  }, {
    "type" : "WEB",
    "url" : "https://security.netapp.com/advisory/ntap-20200821-0001"
  }, {
    "type" : "WEB",
    "url" : "https://www.openwall.com/lists/oss-security/2020/07/08/1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-420" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-05-24T19:30:36Z",
    "nvd_published_at" : "2020-07-27T20:15:00Z"
  }
}