{"id":"CVE-2020-8557","published":"2020-07-23T16:59:38Z","modified":"2024-09-17T03:14:05Z","title":"Kubernetes node disk Denial of Service by writing to container /etc/hosts","vendor":"Kubernetes","product":"Kubernetes","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00434,"percentile":0.38594,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"references":[{"url":"https://github.com/kubernetes/kubernetes/issues/93032","tags":["x_refsource_CONFIRM"]},{"url":"https://groups.google.com/g/kubernetes-security-announce/c/cB_JUsYEKyY/m/vVSO61AhBwAJ","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://security.netapp.com/advisory/ntap-20200821-0002/","tags":["x_refsource_CONFIRM"]}],"priority":{"score":11.6,"factors":[{"name":"EPSS percentile","points":7.72},{"name":"CVSS severity","points":3.85}]},"vendorSlug":"kubernetes","affectedVersions":[{"vendor":"Kubernetes","product":"Kubernetes","versions":["1.15","1.14","1.13","1.12","1.11","1.10","1.9","1.8","1.7","1.6"]}],"affected":[{"ecosystem":"Go","package":"k8s.io/kubernetes/pkg/kubelet","vulnerableRanges":[">=1.1.0, <1.16.13",">=1.17.0, <1.17.9",">=1.18.0, <1.18.6"],"patched":["1.16.13","1.17.9","1.18.6"],"from":["GHSA-55qj-gj3x-jq9r"],"provenance":"source"},{"ecosystem":"Go","package":"k8s.io/kubernetes","vulnerableRanges":[">=1.1.0, <1.16.13",">=1.17.0, <1.17.9",">=1.18.0, <1.18.6"],"patched":["1.16.13","1.17.9","1.18.6"],"from":["GO-2024-2753"],"provenance":"source"}],"summary":{"text":"The Kubernetes kubelet component (versions 1.1 through 1.16.12, 1.17.0 through 1.17.8, and 1.18.0 through 1.18.5) fails to count the /etc/hosts file mounted into a pod when the eviction manager calculates that pod's ephemeral storage usage. An attacker who can run a pod on the affected node, with local access and low privileges, can write large amounts of data to that pod's /etc/hosts file without triggering eviction, filling the node's disk and causing it to fail, with no user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:56:53Z"},"euvd":{"id":"EUVD-2024-1098","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-kubernetes-cve-2020-8557","children":[{"from":"CVE-2020-8557","to":"CVE-2024-5321","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["pkg/kubelet/kubelet.go"],"commits":["https://github.com/kubernetes/kubernetes/commit/530f199b6e07cdaab32361e39709ac45f3fdc446","https://github.com/kubernetes/kubernetes/commit/68750fefd3df76b7b008ef7b18e8acd18d5c2f2e","https://github.com/kubernetes/kubernetes/commit/23660a78ae462a6c8c75ac7ffd9af97550dda1aa","https://github.com/kubernetes/kubernetes/commit/84beb2915fa28ae477fe0676be8ba94ccd2b811a"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2020-8551","published":"2020-03-27","fixed":"1.17.2","kev":false},{"cve":"CVE-2020-8555","published":"2020-06-04","fixed":"1.18.1","kev":false},{"cve":"CVE-2020-8558","published":"2020-07-27","fixed":"1.18.4","kev":false,"link":{"from":"CVE-2020-8558","to":"CVE-2020-8557","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Go:k8s.io/kubernetes","fromFixed":"1.16.11","toFixed":"1.16.13","daysApart":-4}]}},{"cve":"CVE-2020-8557","published":"2020-07-23","fixed":"1.18.6","kev":false},{"cve":"CVE-2020-8559","published":"2020-07-22","fixed":"1.18.7","kev":false,"link":{"from":"CVE-2020-8557","to":"CVE-2020-8559","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Go:k8s.io/kubernetes","fromFixed":"1.18.6","toFixed":"1.18.7","daysApart":-1}]}},{"cve":"CVE-2020-8563","published":"2020-12-07","fixed":"1.19.3","kev":false},{"cve":"CVE-2020-8566","published":"2020-12-07","fixed":"1.19.3","kev":false,"link":{"from":"CVE-2020-8557","to":"CVE-2020-8566","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:k8s.io/kubernetes","fromFixed":"1.17.9","toFixed":"1.17.13","daysApart":137}]}}],"package":"Go:k8s.io/kubernetes"}}