CVE-2020-8557
Kubernetes node disk Denial of Service by writing to container /etc/hosts
Reported by kubernetes · Published July 23, 2020
k8s.io/kubernetes/pkg/kubelet is fixed in 1.18.6, 1.17.9 and 1.16.13 (Go Modules)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| k8s.io/kubernetes/pkg/kubelet | Go Modules | 1.18.6, 1.17.9, 1.16.13 |
| github.com/kubernetes/kubelet | Go Modules | v1.18.6, v1.17.9, v1.16.13, 1.18.6, 1.17.9 |
| k8s.io/kubernetes | Go Modules | 1.18.6, 1.17.9, 1.16.13 |
| k8s.io/kubernetes/pkg/apis/apps/validation | Go Modules | 1.18.6, 1.17.9, 1.16.13 |
| k3s | Alpine | 1.18.6.1-r0 |
| kubernetes | kubernetes | 1.18.6, 1.17.9, 1.16.13 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Kubernetes | Kubernetes | 1.15, 1.14, 1.13 |
| k8s.io | kubernetes/pkg/kubelet | 1.1.0, 1.18.0, 1.17.0 |
| alpine | k3s | 0 |
| k8s.io | kubernetes/pkg/apis/apps/validation | 1.18.0, 1.17.0, 0 |
| Kubernetes | Kubernetes | 1.13, 1.12, 1.11 |
| github.com | kubernetes/kubelet | 0, 1.18.0, 1.17.0 |
Timeline
- Jul 22, 2020 PoC Published
- Jul 23, 2020 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Mar 10, 2026 Security Advisory
- Aug 28, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2020-8557
vulnetix vdb fixes CVE-2020-8557
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2020-8557/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_CONFIRM
- [Security Advisory] CVE-2020-8557: Node disk DOS by writing to container /etc/hosts mailing-listx_refsource_MLIST
- x_refsource_CONFIRM
- https://nvd.nist.gov/vuln/detail/CVE-2020-8557 advisory
- https://github.com/advisories/GHSA-55qj-gj3x-jq9r advisory
- https://github.com/kubernetes/kubernetes/pull/92921 patch
- https://github.com/kubernetes/kubernetes/commit/530f199b6e07cdaab32361e39709ac45f3fdc446 patch
- https://github.com/kubernetes/kubernetes/commit/68750fefd3df76b7b008ef7b18e8acd18d5c2f2e patch
- https://github.com/kubernetes/kubernetes/commit/7fd849cffa2f93061fbcb0a6ae4efd0539b1e981 patch
- https://github.com/kubernetes/kubernetes url
- https://security.netapp.com/advisory/ntap-20200821-0002 advisory