Vulnerability · Published Jul 23, 2020 · Assigned by kubernetes

CVE-2020-8557Kubernetes node disk Denial of Service by writing to container /etc/hosts

Medium 5.5

In plain English

A medium-severity uncontrolled resource consumption in Kubernetes from Kubernetes. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 38% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.5Medium
Exploit odds (30 days)0.4%top 62.1% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official description

The Kubernetes kubelet component in versions 1.1-1.16.12, 1.17.0-1.17.8 and 1.18.0-1.18.5 do not account for disk usage by a pod which writes to its own /etc/hosts file. The /etc/hosts file mounted in a pod by kubelet is not included by the kubelet eviction manager when calculating ephemeral storage usage by a pod. If a pod writes a large amount of data to the /etc/hosts file, it could fill the storage space of the node and cause the node to fail.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.20k3s1.18.6.1-r0ALPINE-CVE-2020-8557
Alpine:v3.21k3s1.18.6.1-r0ALPINE-CVE-2020-8557
Alpine:v3.22k3s1.18.6.1-r0ALPINE-CVE-2020-8557
Alpine:v3.23k3s1.18.6.1-r0ALPINE-CVE-2020-8557
Alpine:v3.24k3s1.18.6.1-r0ALPINE-CVE-2020-8557
Debian:12kubernetes1.18.5-1DEBIAN-CVE-2020-8557
Debian:13kubernetes1.18.5-1DEBIAN-CVE-2020-8557
Debian:14kubernetes1.18.5-1DEBIAN-CVE-2020-8557
Gok8s.io/kubernetes1.16.13, 1.17.9, 1.18.6GO-2024-2753
Gok8s.io/kubernetes/pkg/kubelet1.18.6GHSA-55qj-gj3x-jq9r
Gok8s.io/kubernetes/pkg/kubelet1.16.13GHSA-55qj-gj3x-jq9r
Gok8s.io/kubernetes/pkg/kubelet1.17.9GHSA-55qj-gj3x-jq9r
Ubuntu:22.04:LTSkubernetesno fix listedUBUNTU-CVE-2020-8557
Ubuntu:24.04:LTSkubernetesno fix listedUBUNTU-CVE-2020-8557

Affected products (as reported)

VendorProductVersions
Kubernetes Kubernetes 1.151.141.131.121.111.101.91.8

Weakness: CWE-400 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

References