{"answers":{"affected":"7 open source packages ship an affected version, including k8s.io/kubernetes.","exploited":"There is no known exploitation of CVE-2024-10220 in the wild and no public exploit code.","fix":"Upgrade k8s.io/kubernetes to a fixed version for your release line: 1.28.12, 1.29.7 or 1.30.3.","what":"CVE-2024-10220 is a high-severity command injection vulnerability in Kubernetes kubelet, published on 22 Nov 2024. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-10220 and fix it if it is affected.\n\nWhat it is: CVE-2024-10220 is a high-severity command injection vulnerability in Kubernetes kubelet, published on 22 Nov 2024. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-10220 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- k8s.io/kubernetes (Go): affected all versions; fixed in 1.28.12, 1.29.7, 1.30.3\n- k8s.io/kubernetes (Go): affected all versions; fixed in 1.28.12\n- k8s.io/kubernetes (Go): affected all versions; fixed in 1.28.12\n- k8s.io/kubernetes (Go): affected from 1.29.0; fixed in 1.29.7\n- k8s.io/kubernetes (Go): affected from 1.29.0; fixed in 1.29.7\n- k8s.io/kubernetes (Go): affected from 1.30.0; fixed in 1.30.3\n- k8s.io/kubernetes (Go): affected from 1.30.0; fixed in 1.30.3\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-2024-10220/ (Markdown: https://insights.sbomify.com/CVE-2024-10220/index.md)","id":"CVE-2024-10220","markdown":"https://insights.sbomify.com/CVE-2024-10220/index.md","name":"CVE-2024-10220","record":{"aliases":["AZL-53528","AZL-53652","CLEANSTART-2025-ZX75782","DEBIAN-CVE-2024-10220","GHSA-27wf-5967-98gx","GO-2024-3286","MINI-r7rp-5m55-7mp3","OESA-2024-2532"],"analysis":{"component_type":"container_or_infrastructure","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"Kubernetes kubelet","requires_auth":"low_privilege","summary":"Attackers can execute arbitrary commands on nodes by exploiting specially crafted gitRepo volumes in Kubernetes kubelet.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"kubernetes","cpe":[],"cvss":{"score":8.1,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"The Kubernetes kubelet component allows arbitrary command execution via specially crafted gitRepo volumes.This issue affects kubelet: through 1.28.11, from 1.29.0 through 1.29.6, from 1.30.0 through 1.30.2.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":"2024-11-21","github_poc":8,"max_poc_stars":1,"metasploit":0,"nuclei":0,"refs":[{"date":"2024-11-21T06:59:21Z","kind":"github_poc","ref":"https://github.com/mochizuki875/CVE-2024-10220-githooks","stars":1,"title":"CVE-2024-10220 Test repo"},{"date":"2025-09-08T03:06:51Z","kind":"github_poc","ref":"https://github.com/mrk336/CVE-2024-10220-Kubernetes-gitRepo-Volume-Vulnerability","stars":1,"title":"CVE-2024-10220 reveals a critical flaw in Kubernetes’ deprecated gitRepo volume type, allowing attackers to execute arbitrary commands via malicious .hooks scripts. The article explains how this breaks container isolation and offers exploit code, automation examples, and mitigation guidance"},{"date":"2024-11-29T09:20:30Z","kind":"github_poc","ref":"https://github.com/any2sec/cve-2024-10220","stars":0,"title":null},{"date":"2024-12-15T11:25:42Z","kind":"github_poc","ref":"https://github.com/filipzag/CVE-2024-10220","stars":0,"title":null},{"date":"2024-12-17T08:17:58Z","kind":"github_poc","ref":"https://github.com/candranapits/poc-CVE-2024-10220","stars":0,"title":"CVE-2024-10220 POC"},{"date":"2025-05-12T15:19:08Z","kind":"github_poc","ref":"https://github.com/orgC/CVE-2024-10220-demo","stars":0,"title":null},{"date":"2025-11-23T20:44:38Z","kind":"github_poc","ref":"https://github.com/saleha-muzammil/cve-2024-10220-git-on-git","stars":0,"title":null},{"date":"2025-11-30T21:24:23Z","kind":"github_poc","ref":"https://github.com/imohammed28/cve-2024-10220-test","stars":0,"title":"Testing CVE-2024-10220 for HPC security research"}],"tier":"poc_unverified"},"has_fix":true,"headline":"Arbitrary command execution through gitRepo volume","id":"CVE-2024-10220","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"command_injection","year":"2024"},"n_packages":7,"n_references":2,"next":{"headline":"SVG Support \u003c= 2.5.10 - Authenticated (Author+) Stored Cross-Site Scripting via SVG File Upload","id":"CVE-2024-10222"},"packages":[{"ecosystem":"Go","fixed":["1.28.12","1.29.7","1.30.3"],"introduced":["0","1.29.0","1.30.0"],"last_affected":[],"package":"k8s.io/kubernetes","purl":"pkg:golang/k8s.io/kubernetes","source":"GO-2024-3286"},{"ecosystem":"Go","fixed":["1.28.12"],"introduced":["0"],"last_affected":[],"package":"k8s.io/kubernetes","purl":null,"source":"GHSA-27wf-5967-98gx"},{"ecosystem":"Go","fixed":["1.28.12"],"introduced":["0"],"last_affected":[],"package":"k8s.io/kubernetes","purl":"pkg:golang/k8s.io/kubernetes","source":"GHSA-27wf-5967-98gx"},{"ecosystem":"Go","fixed":["1.29.7"],"introduced":["1.29.0"],"last_affected":[],"package":"k8s.io/kubernetes","purl":null,"source":"GHSA-27wf-5967-98gx"},{"ecosystem":"Go","fixed":["1.29.7"],"introduced":["1.29.0"],"last_affected":[],"package":"k8s.io/kubernetes","purl":"pkg:golang/k8s.io/kubernetes","source":"GHSA-27wf-5967-98gx"},{"ecosystem":"Go","fixed":["1.30.3"],"introduced":["1.30.0"],"last_affected":[],"package":"k8s.io/kubernetes","purl":null,"source":"GHSA-27wf-5967-98gx"},{"ecosystem":"Go","fixed":["1.30.3"],"introduced":["1.30.0"],"last_affected":[],"package":"k8s.io/kubernetes","purl":"pkg:golang/k8s.io/kubernetes","source":"GHSA-27wf-5967-98gx"}],"prev":{"headline":"Incorrect Authorization in GitLab","id":"CVE-2024-10219"},"products":["kubelet"],"published":"2024-11-22","related":[],"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":"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":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2024-11-25","vendors":["Kubernetes"]},"summary":"Attackers can execute arbitrary commands on nodes by exploiting specially crafted gitRepo volumes in Kubernetes kubelet.","url":"https://insights.sbomify.com/CVE-2024-10220/"}