CVE-2020-8557 is a medium-severity (CVSS 5.5) Uncontrolled Resource Consumption vulnerability in k8s.io/kubernetes/pkg/kubelet. A fix is available for k8s.io/kubernetes/pkg/kubelet — see the affected versions and patch details below.
Denial of service in Kubernetes
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
k8s.io/kubernetes/pkg/kubelet🐹k8s.io/kubernetes/pkg/kubelet🐹k8s.io/kubernetes/pkg/kubeletReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Go packages — download data is not available via public APIs for these ecosystems.
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
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐹Go | k8s.io/kubernetes/pkg/kubelet | ≥ 1.1.0&&< 1.16.13 | 1.16.13go get k8s.io/kubernetes/pkg/kubelet@v1.16.13 |
| 🐹Go | k8s.io/kubernetes/pkg/kubelet | ≥ 1.17.0&&< 1.17.9 | 1.17.9go get k8s.io/kubernetes/pkg/kubelet@v1.17.9 |
| 🐹Go | k8s.io/kubernetes/pkg/kubelet | ≥ 1.18.0&&< 1.18.6 | 1.18.6go get k8s.io/kubernetes/pkg/kubelet@v1.18.6 |
Affected Products
kuberneteskubernetesDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for k8s.io/kubernetes/pkg/kubelet, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update k8s.io/kubernetes/pkg/kubelet to 1.16.13 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2020-8557 is resolved across your whole dependency graph.
Workarounds
Cap what an attacker can consume: apply request size, rate and timeout limits in front of the affected component, and run it with memory and CPU limits so exhaustion degrades one worker rather than the whole service.
Fixing This On Your OS
If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.
In OpenShift Container Platform (OCP) there is LocalStorageCapacityIsolation feature gate functionality which prevents a denial of service (DoS) attack on the node by writing to the ephemeral storage.This feature is disabled by default in OCP 3.11 and can be enabled as per [1]. Even with enabled…
On OpenShift Container Platform (OCP) 3.11 and 4.x it's possible to set the allowPrivilegeEscalation Security Context Constraint to 'false' to prevent this. Note that this is set to 'true' by default, and setting it to false will prevent certain binaries which require setuid to stop working. On OCP 3.11 for example the 'ping' command will no longer work [1]. On OCP 4.x and later the 'ping' command will work with allowPrivilegeEscalation set to False, but other setuid binaries will not work. [1] https://docs.openshift.com/container-platform/3.11/release_notes/ocp_3_11_release_notes.htmlSource: Red Hat security advisory for CVE-2020-8557 (CC BY 4.0)
| Product | Fixed in | Advisory |
|---|---|---|
| Red Hat OpenShift Container Platform 3.11 | atomic-openshift-0:3.11.542-1.git.0.f2fd300.el7 | RHSA-2021:3915 |
| Red Hat OpenShift Container Platform 4.3 | openshift4/ose-hyperkube:v4.3.37-202009151447.p0 | RHSA-2020:3809 |
| Red Hat OpenShift Container Platform 4.3 | openshift-0:4.3.37-202009120213.p0.git.0.dffefe4.el8 | RHSA-2020:3808 |
| Red Hat OpenShift Container Platform 4.4 | openshift-0:4.4.0-202008250319.p0.git.0.d653415.el7 | RHSA-2020:3579 |
| Red Hat OpenShift Container Platform 4.4 | openshift4/ose-hyperkube:v4.4.0-202008250319.p0 | RHSA-2020:3580 |
| Red Hat OpenShift Container Platform 4.5 | openshift-0:4.5.0-202008130146.p0.git.0.aaf1d57.el7 | RHSA-2020:3519 |
| Red Hat OpenShift Container Platform 4.5 | openshift4/ose-hyperkube:v4.5.0-202008130146.p0 | RHSA-2020:3520 |
| Red Hat OpenShift Container Platform 4.6 | openshift4/ose-aws-ebs-csi-driver-rhel8:v4.6.0-202010061132.p0 | RHBA-2020:4196 |
Frequently Asked Questions
Is CVE-2020-8557 in your dependencies?
Find it across Go, including transitive dependencies.