CVE-2020-8555: K8s.io/kubernetes Server Side Request Forgery (SSRF) Vulnerability

MODERATE
Advisory Identifier: GHSA-x6mj-w4jf-jmgw
CVSS 6.3
CWE-918
Published
Advisory Summary

CVE-2020-8555 is a MODERATE (CVSS 6.3) server side request forgery (ssrf) vulnerability (CWE-918: Server-Side Request Forgery (SSRF)) affecting K8s.io/kubernetes libraries in the Go ecosystem. The issue involves server side request forgery (ssrf) in kubernetes. Remediation is available by upgrading affected packages to version 1.18.1, 1.17.4, 1.16.9, 1.15.12.

CVE-2020-8555 at a Glance

CVE Identifier CVE-2020-8555
GHSA Identifier GHSA-x6mj-w4jf-jmgw
Severity MODERATE
CVSS v3.1 Base Score 6.3
CWE Classification CWE-918: Server-Side Request Forgery (SSRF)
Affected Product K8s.io/kubernetes
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 6.3

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

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

How to Fix CVE-2020-8555

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.1
Upgrade k8s.io/kubernetes to 1.18.1
k8s.io/kubernetes fixed: 1.17.4
Upgrade k8s.io/kubernetes to 1.17.4
k8s.io/kubernetes fixed: 1.16.9
Upgrade k8s.io/kubernetes to 1.16.9
k8s.io/kubernetes fixed: 1.15.12
Upgrade k8s.io/kubernetes to 1.15.12
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-8555, 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.1), 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-918: Server-Side Request Forgery (SSRF), where the web server receives a url or similar request from an upstream component and retrieves the contents of this url, but it does not sufficiently ensure that the request is being sent to the expected destination. 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

The Kubernetes kube-controller-manager in versions v1.0-1.14, versions prior to v1.15.12, v1.16.9, v1.17.5, and version v1.18.0 are vulnerable to a Server Side Request Forgery (SSRF) that allows certain authorized users to leak up to 500 bytes of arbitrary information from unprotected endpoints within the master's host network (such as link-local or loopback services).

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

4 component(s)
Fixed Versions:
1.18.11.17.41.16.91.15.12
Product / Package Ecosystem Affected Versions Fixed Version
k8s.io/kubernetes
Go
≥ 1.18.0
< 1.18.1
1.18.1
k8s.io/kubernetes
Go
≥ 1.17.0
< 1.17.4
1.17.4
k8s.io/kubernetes
Go
≥ 1.16.0
< 1.16.9
1.16.9
k8s.io/kubernetes
Go
< 1.15.12
1.15.12

References

Frequently Asked Questions

What is CVE-2020-8555?
CVE-2020-8555 is a security vulnerability in K8s.io/kubernetes involving Server Side Request Forgery (SSRF) in Kubernetes under CWE-918: Server-Side Request Forgery (SSRF).
Which K8s.io/kubernetes versions are affected?
Affected versions include releases prior to 1.18.1, 1.17.4, 1.16.9, 1.15.12 across affected packages: k8s.io/kubernetes.
What version fixes CVE-2020-8555?
Upgrading to 1.18.1, 1.17.4, 1.16.9, 1.15.12 (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.1, 1.17.4, 1.16.9, 1.15.12. Upgrade your dependency to 1.18.1, 1.17.4, 1.16.9, 1.15.12 or later.
What is the CVSS score of CVE-2020-8555?
CVE-2020-8555 has a CVSS v3.1 base score of 6.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N.
What CWE is associated with CVE-2020-8555?
CVE-2020-8555 is classified under CWE-918: Server-Side Request Forgery (SSRF) (The web server receives a URL or similar request from an upstream component and retrieves the contents of this URL, but it does not sufficiently ensure that the request is being sent to the expected destination.).
How can I check Go dependencies for CVE-2020-8555?
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-x6mj-w4jf-jmgw",
  "modified" : "2023-09-18T22:44:56Z",
  "published" : "2022-02-15T01:57:18Z",
  "aliases" : [ "CVE-2020-8555" ],
  "summary" : "Server Side Request Forgery (SSRF) in Kubernetes",
  "details" : "The Kubernetes kube-controller-manager in versions v1.0-1.14, versions prior to v1.15.12, v1.16.9, v1.17.5, and version v1.18.0 are vulnerable to a Server Side Request Forgery (SSRF) that allows certain authorized users to leak up to 500 bytes of arbitrary information from unprotected endpoints within the master's host network (such as link-local or loopback services).",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "k8s.io/kubernetes"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.18.0"
      }, {
        "fixed" : "1.18.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "k8s.io/kubernetes"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.17.0"
      }, {
        "fixed" : "1.17.4"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "k8s.io/kubernetes"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.16.0"
      }, {
        "fixed" : "1.16.9"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "k8s.io/kubernetes"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.15.12"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-8555"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/kubernetes/kubernetes/issues/91542"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/kubernetes/kubernetes/pull/89794"
  }, {
    "type" : "WEB",
    "url" : "https://groups.google.com/d/topic/kubernetes-security-announce/kEK27tqqs30/discussion"
  }, {
    "type" : "WEB",
    "url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/3SOCLOPTSYABTE4CLTSPDIFE6ZZZR4LX"
  }, {
    "type" : "WEB",
    "url" : "https://security.netapp.com/advisory/ntap-20200724-0005"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2020/06/01/4"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2021/05/04/8"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-918" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-05-13T20:13:43Z",
    "nvd_published_at" : "2020-06-05T17:15:00Z"
  }
}