CVEfocus › CVE database › CVE-2020-8557

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

CVSS 5.5 MediumEPSS 0.4% (higher than 29% of CVEs)Published 2020-07-23Updated 2024-09-17Assigner: kubernetes

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.

CWE-400

What to do

Fixed builds are available from Alpine, Debian, Go: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

17Fixed
1Fix pending
2Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 24.04kubernetesNot affected
vulnerable_code_not_present
Ubuntu 22.04kubernetesNot affected
vulnerable_code_not_present
Ubuntu 20.04kubernetesFix pending
Debian 14kubernetesFixed1.18.5-1DEBIAN-CVE-2020-8557
Debian 13kubernetesFixed1.18.5-1DEBIAN-CVE-2020-8557
Debian 12kubernetesFixed1.18.5-1DEBIAN-CVE-2020-8557
Alpine Linux 3.24k3sFixed1.18.6.1-r0ALPINE-CVE-2020-8557
Alpine Linux 3.23k3sFixed1.18.6.1-r0ALPINE-CVE-2020-8557
Alpine Linux 3.22k3sFixed1.18.6.1-r0ALPINE-CVE-2020-8557
Alpine Linux 3.21k3sFixed1.18.6.1-r0ALPINE-CVE-2020-8557
Alpine Linux 3.20k3sFixed1.18.6.1-r0ALPINE-CVE-2020-8557
Alpine Linux 3.19k3sFixed1.18.6.1-r0ALPINE-CVE-2020-8557
Alpine Linux 3.18k3sFixed1.18.6.1-r0ALPINE-CVE-2020-8557
Alpine Linux 3.17k3sFixed1.18.6.1-r0ALPINE-CVE-2020-8557
Alpine Linux 3.16k3sFixed1.18.6.1-r0ALPINE-CVE-2020-8557
Alpine Linux 3.15k3sFixed1.18.6.1-r0ALPINE-CVE-2020-8557
Alpine Linux 3.14k3sFixed1.18.6.1-r0ALPINE-CVE-2020-8557
Alpine Linux 3.13k3sFixed1.18.6.1-r0ALPINE-CVE-2020-8557
Go libraryk8s.io/kubernetesFixed1.16.13GO-2024-2753
Go libraryk8s.io/kubernetes/pkg/kubeletFixed1.16.13GHSA-55qj-gj3x-jq9r

What the vendor says

As published in the CVE record by kubernetes, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.