{"answers":{"affected":"4 open source packages ship an affected version, including io.kubernetes:client-java. It affects 1 product.","exploited":"There is no known exploitation of CVE-2020-8570 in the wild and no public exploit code.","fix":"Upgrade io.kubernetes:client-java to a fixed version for your release line: 9.0.2 or 10.0.1.","what":"CVE-2020-8570 is a critical path traversal vulnerability in Kubernetes Java Client, published on 21 Jan 2021. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2020-8570 and fix it if it is affected.\n\nWhat it is: CVE-2020-8570 is a critical path traversal vulnerability in Kubernetes Java Client, published on 21 Jan 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2020-8570 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- io.kubernetes:client-java (Maven): affected all versions; fixed in 9.0.2\n- io.kubernetes:client-java (Maven): affected all versions; fixed in 9.0.2\n- io.kubernetes:client-java (Maven): affected from 10.0.0; fixed in 10.0.1\n- io.kubernetes:client-java (Maven): affected from 10.0.0; fixed in 10.0.1\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-8570/ (Markdown: https://insights.sbomify.com/CVE-2020-8570/index.md)","id":"CVE-2020-8570","markdown":"https://insights.sbomify.com/CVE-2020-8570/index.md","name":"CVE-2020-8570","record":{"aliases":["GHSA-cghx-9gcr-r42x"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Kubernetes Java client","requires_auth":"none","summary":"Attackers can overwrite arbitrary files on the host system by exploiting path traversal in the Kubernetes Java client library during file copy operations.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"kubernetes","cpe":[{"product":"java","vendor":"kubernetes"}],"cvss":{"score":9.1,"severity":"critical","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"},{"id":"CWE-23","name":"Relative Path Traversal"}],"description":"Kubernetes Java client libraries in version 10.0.0 and versions prior to 9.0.1 allow writes to paths outside of the current directory when copying multiple files from a remote pod which sends a maliciously crafted archive. This can potentially overwrite any files on the system of the process executing the client code.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":"2025-09-06","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2025-09-06T12:04:11Z","kind":"github_poc","ref":"https://github.com/shoucheng3/kubernetes-client__java_CVE-2020-8570_client-java-parent-9_0_2_fixed","stars":0,"title":null}],"tier":"poc_unverified"},"has_fix":true,"headline":"Kubernetes Java client libraries unvalidated path traversal in Copy implementation","id":"CVE-2020-8570","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"path_traversal","year":"2020"},"n_packages":4,"n_references":6,"next":{"headline":"Denial of service in StorageGRID (formerly StorageGRID Webscale)","id":"CVE-2020-8571"},"packages":[{"ecosystem":"Maven","fixed":["9.0.2"],"introduced":["0"],"last_affected":[],"package":"io.kubernetes:client-java","purl":null,"source":"GHSA-cghx-9gcr-r42x"},{"ecosystem":"Maven","fixed":["9.0.2"],"introduced":["0"],"last_affected":[],"package":"io.kubernetes:client-java","purl":"pkg:maven/io.kubernetes/client-java","source":"GHSA-cghx-9gcr-r42x"},{"ecosystem":"Maven","fixed":["10.0.1"],"introduced":["10.0.0"],"last_affected":[],"package":"io.kubernetes:client-java","purl":null,"source":"GHSA-cghx-9gcr-r42x"},{"ecosystem":"Maven","fixed":["10.0.1"],"introduced":["10.0.0"],"last_affected":[],"package":"io.kubernetes:client-java","purl":"pkg:maven/io.kubernetes/client-java","source":"GHSA-cghx-9gcr-r42x"}],"prev":{"headline":"Kubernetes CSI snapshot-controller DoS","id":"CVE-2020-8569"},"products":["Kubernetes Java Client"],"published":"2021-01-21","related":[{"cvss_score":6.7,"headline":"Code exec via yaml parsing","id":"CVE-2021-25738","kev_date_added":null,"published":"2021-10-11"}],"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":"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)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-09-16","vendors":["Kubernetes"]},"summary":"Attackers can overwrite arbitrary files on the host system by exploiting path traversal in the Kubernetes Java client library during file copy operations.","url":"https://insights.sbomify.com/CVE-2020-8570/"}