Host command execution via Kubernetes kubelet gitRepo volumes
CVE-2024-10220 is an arbitrary command execution vulnerability in Kubernetes kubelet's handling of specially crafted gitRepo volumes. A user permitted to create a pod with an associated gitRepo volume can leverage Git hooks in the target repository to execute commands outside the container boundary. Commands execute with kubelet privileges, typically root on the host. Affected versions include kubelet through 1.28.11, 1.29.0 through 1.29.6, and 1.30.0 through 1.30.2.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Successful exploitation can compromise the underlying Kubernetes node through arbitrary host command execution, typically as root. This defeats container isolation and can expose node-accessible workloads, data, and credentials, potentially enabling broader cluster compromise depending on the node's permissions and accessible resources.
If you can’t patch tonight, do this now.
Avoid the deprecated gitRepo volume type. Perform Git clone operations inside an init container and share the resulting directory with application containers through a separate volume.
Patch, then assume compromise.
Upgrade kubelet on affected nodes to a fixed release: 1.28.12, 1.29.7, 1.30.3, or 1.31.0, or a later supported release containing the fix. Remove gitRepo volumes from pod specifications.
2 exploits validated by Mallory's analysis. Hidden: 2 rejected by Mallory's analysis as not a working exploit; 1 not yet analyzed, such as Exploit-DB entries.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
2 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.