{"answers":{"affected":"7 open source packages ship an affected version, including k8s.io/kubernetes/pkg/kubelet and k8s.io/kubernetes. It affects 1 product.","exploited":"There is no known exploitation of CVE-2020-8557 in the wild and no public exploit code.","fix":"Upgrade k8s.io/kubernetes/pkg/kubelet to a fixed version for your release line: 1.16.13, 1.17.9 or 1.18.6.","what":"CVE-2020-8557 is a medium-severity denial of service vulnerability in Kubernetes Kubernetes, published on 23 Jul 2020. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2020-8557 and fix it if it is affected.\n\nWhat it is: CVE-2020-8557 is a medium-severity denial of service vulnerability in Kubernetes Kubernetes, published on 23 Jul 2020. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2020-8557 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- k8s.io/kubernetes/pkg/kubelet (Go): affected from 1.1.0; fixed in 1.16.13\n- k8s.io/kubernetes/pkg/kubelet (Go): affected from 1.1.0; fixed in 1.16.13\n- k8s.io/kubernetes/pkg/kubelet (Go): affected from 1.17.0; fixed in 1.17.9\n- k8s.io/kubernetes/pkg/kubelet (Go): affected from 1.17.0; fixed in 1.17.9\n- k8s.io/kubernetes/pkg/kubelet (Go): affected from 1.18.0; fixed in 1.18.6\n- k8s.io/kubernetes/pkg/kubelet (Go): affected from 1.18.0; fixed in 1.18.6\n- k8s.io/kubernetes (Go): affected from 1.1.0; fixed in 1.16.13, 1.17.9, 1.18.6\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2020-8557/ (Markdown: https://insights.sbomify.com/CVE-2020-8557/index.md)","id":"CVE-2020-8557","markdown":"https://insights.sbomify.com/CVE-2020-8557/index.md","name":"CVE-2020-8557","record":{"aliases":["DEBIAN-CVE-2020-8557","GHSA-55qj-gj3x-jq9r","GO-2024-2753","RHSA-2021:3915","SUSE-RU-2020:2204-1"],"analysis":{"component_type":"container_or_infrastructure","fix_type":"patch","impacts":["denial_of_service"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Kubernetes kubelet","requires_auth":"low_privilege","summary":"An attacker can cause a Kubernetes node to fail by filling its disk space through excessive writes to the container's /etc/hosts file.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"kubernetes","cpe":[{"product":"kubernetes","vendor":"kubernetes"}],"cvss":{"score":5.5,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"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.","ecosystems":["Go","Red Hat:openshift:3.11::el7","SUSE:Linux Enterprise Module for Containers 15 SP1"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Kubernetes node disk Denial of Service by writing to container /etc/hosts","id":"CVE-2020-8557","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":"kubernetes:kubernetes","products":["kubernetes:kubernetes"],"type":"denial_of_service","year":"2020"},"n_packages":21,"n_references":3,"next":{"headline":"Kubernetes node setting allows for neighboring hosts to bypass localhost boundary","id":"CVE-2020-8558"},"packages":[{"ecosystem":"Go","fixed":["1.16.13","1.17.9","1.18.6"],"introduced":["1.1.0","1.17.0","1.18.0"],"last_affected":[],"package":"k8s.io/kubernetes","purl":"pkg:golang/k8s.io/kubernetes","source":"GO-2024-2753"},{"ecosystem":"Go","fixed":["1.16.13"],"introduced":["1.1.0"],"last_affected":[],"package":"k8s.io/kubernetes/pkg/kubelet","purl":null,"source":"GHSA-55qj-gj3x-jq9r"},{"ecosystem":"Go","fixed":["1.16.13"],"introduced":["1.1.0"],"last_affected":[],"package":"k8s.io/kubernetes/pkg/kubelet","purl":"pkg:golang/k8s.io/kubernetes/pkg/kubelet","source":"GHSA-55qj-gj3x-jq9r"},{"ecosystem":"Go","fixed":["1.17.9"],"introduced":["1.17.0"],"last_affected":[],"package":"k8s.io/kubernetes/pkg/kubelet","purl":null,"source":"GHSA-55qj-gj3x-jq9r"},{"ecosystem":"Go","fixed":["1.17.9"],"introduced":["1.17.0"],"last_affected":[],"package":"k8s.io/kubernetes/pkg/kubelet","purl":"pkg:golang/k8s.io/kubernetes/pkg/kubelet","source":"GHSA-55qj-gj3x-jq9r"},{"ecosystem":"Go","fixed":["1.18.6"],"introduced":["1.18.0"],"last_affected":[],"package":"k8s.io/kubernetes/pkg/kubelet","purl":null,"source":"GHSA-55qj-gj3x-jq9r"},{"ecosystem":"Go","fixed":["1.18.6"],"introduced":["1.18.0"],"last_affected":[],"package":"k8s.io/kubernetes/pkg/kubelet","purl":"pkg:golang/k8s.io/kubernetes/pkg/kubelet","source":"GHSA-55qj-gj3x-jq9r"},{"ecosystem":"Red Hat:openshift:3.11::el7","fixed":["0:3.11.542-1.git.0.f2fd300.el7"],"introduced":["0"],"last_affected":[],"package":"atomic-openshift","purl":"pkg:rpm/redhat/atomic-openshift","source":"RHSA-2021:3915"},{"ecosystem":"Red Hat:openshift:3.11::el7","fixed":["0:3.11.542-1.git.0.f2fd300.el7"],"introduced":["0"],"last_affected":[],"package":"atomic-openshift-clients","purl":"pkg:rpm/redhat/atomic-openshift-clients","source":"RHSA-2021:3915"},{"ecosystem":"Red Hat:openshift:3.11::el7","fixed":["0:3.11.542-1.git.0.f2fd300.el7"],"introduced":["0"],"last_affected":[],"package":"atomic-openshift-clients-redistributable","purl":"pkg:rpm/redhat/atomic-openshift-clients-redistributable","source":"RHSA-2021:3915"},{"ecosystem":"Red Hat:openshift:3.11::el7","fixed":["0:3.11.542-1.git.0.f2fd300.el7"],"introduced":["0"],"last_affected":[],"package":"atomic-openshift-docker-excluder","purl":"pkg:rpm/redhat/atomic-openshift-docker-excluder","source":"RHSA-2021:3915"},{"ecosystem":"Red Hat:openshift:3.11::el7","fixed":["0:3.11.542-1.git.0.f2fd300.el7"],"introduced":["0"],"last_affected":[],"package":"atomic-openshift-excluder","purl":"pkg:rpm/redhat/atomic-openshift-excluder","source":"RHSA-2021:3915"},{"ecosystem":"Red Hat:openshift:3.11::el7","fixed":["0:3.11.542-1.git.0.f2fd300.el7"],"introduced":["0"],"last_affected":[],"package":"atomic-openshift-hyperkube","purl":"pkg:rpm/redhat/atomic-openshift-hyperkube","source":"RHSA-2021:3915"},{"ecosystem":"Red Hat:openshift:3.11::el7","fixed":["0:3.11.542-1.git.0.f2fd300.el7"],"introduced":["0"],"last_affected":[],"package":"atomic-openshift-hypershift","purl":"pkg:rpm/redhat/atomic-openshift-hypershift","source":"RHSA-2021:3915"},{"ecosystem":"Red Hat:openshift:3.11::el7","fixed":["0:3.11.542-1.git.0.f2fd300.el7"],"introduced":["0"],"last_affected":[],"package":"atomic-openshift-master","purl":"pkg:rpm/redhat/atomic-openshift-master","source":"RHSA-2021:3915"},{"ecosystem":"Red Hat:openshift:3.11::el7","fixed":["0:3.11.542-1.git.0.f2fd300.el7"],"introduced":["0"],"last_affected":[],"package":"atomic-openshift-node","purl":"pkg:rpm/redhat/atomic-openshift-node","source":"RHSA-2021:3915"},{"ecosystem":"Red Hat:openshift:3.11::el7","fixed":["0:3.11.542-1.git.0.f2fd300.el7"],"introduced":["0"],"last_affected":[],"package":"atomic-openshift-pod","purl":"pkg:rpm/redhat/atomic-openshift-pod","source":"RHSA-2021:3915"},{"ecosystem":"Red Hat:openshift:3.11::el7","fixed":["0:3.11.542-1.git.0.f2fd300.el7"],"introduced":["0"],"last_affected":[],"package":"atomic-openshift-sdn-ovs","purl":"pkg:rpm/redhat/atomic-openshift-sdn-ovs","source":"RHSA-2021:3915"},{"ecosystem":"Red Hat:openshift:3.11::el7","fixed":["0:3.11.542-1.git.0.f2fd300.el7"],"introduced":["0"],"last_affected":[],"package":"atomic-openshift-template-service-broker","purl":"pkg:rpm/redhat/atomic-openshift-template-service-broker","source":"RHSA-2021:3915"},{"ecosystem":"Red Hat:openshift:3.11::el7","fixed":["0:3.11.542-1.git.0.f2fd300.el7"],"introduced":["0"],"last_affected":[],"package":"atomic-openshift-tests","purl":"pkg:rpm/redhat/atomic-openshift-tests","source":"RHSA-2021:3915"},{"ecosystem":"SUSE:Linux Enterprise Module for Containers 15 SP1","fixed":["1.17.4-4.18.1"],"introduced":["0"],"last_affected":[],"package":"kubernetes","purl":"pkg:rpm/suse/kubernetes\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Containers%2015%20SP1","source":"SUSE-RU-2020:2204-1"}],"prev":{"headline":"Kubernetes kube-controller-manager SSRF","id":"CVE-2020-8555"},"products":["Kubernetes"],"published":"2020-07-23","related":[{"cvss_score":9.8,"headline":"Privilege Escalation in Kubernetes","id":"CVE-2018-1002105","kev_date_added":null,"published":"2018-12-05"},{"cvss_score":9.8,"headline":"Kubernetes Privilege Escalation","id":"CVE-2017-1000056","kev_date_added":null,"published":"2017-07-13"},{"cvss_score":9.8,"headline":"Authorization bypass in Openshift","id":"CVE-2016-1906","kev_date_added":null,"published":"2016-02-03"},{"cvss_score":8.8,"headline":"Kubernetes - Windows nodes - Insufficient input sanitization leads to privilege escalation","id":"CVE-2023-3676","kev_date_added":null,"published":"2023-10-31"},{"cvss_score":8.8,"headline":"Kubernetes - Windows nodes - Insufficient input sanitization leads to privilege escalation","id":"CVE-2023-3955","kev_date_added":null,"published":"2023-10-31"},{"cvss_score":8.8,"headline":"Symlink Exchange Can Allow Host Filesystem Access","id":"CVE-2021-25741","kev_date_added":null,"published":"2021-09-20"},{"cvss_score":8.8,"headline":"Path traversal in Kubernetes","id":"CVE-2017-1002101","kev_date_added":null,"published":"2018-03-13"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-09-17","vendors":["Kubernetes"]},"summary":"An attacker can cause a Kubernetes node to fail by filling its disk space through excessive writes to the container's /etc/hosts file.","url":"https://insights.sbomify.com/CVE-2020-8557/"}