CVE Database›Document archive›CVE-2024-10220

CVE-2024-10220

kubernetes: Arbitrary command execution through gitRepo volume

Loading…

Severity

Important

Red Hat Product Security

8.1

CVSS 3.1

Review impact separately from score.

Published · November 9, 2024

Updated · March 21, 2026

Description

A flaw was found in the Kubelet component from the Kubernetes package. This flaw allows an attacker to create a pod and an associated gitRepo volume to execute arbitrary commands outside the container, bypassing the intended isolation between the container and the host.

Statement

This vulnerability is classified as important severity due to its potential to allow arbitrary command execution beyond the container boundary, which can lead to severe security breaches. By leveraging the hooks folder in the target repository associated with the gitRepo volume, an attacker can execute commands on the host system or other pods within the cluster. This can result in unauthorized access, data exfiltration, or privilege escalation, making it far more impactful than a moderate vulnerability.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

Users can restrict the usage of gitRepo volumes in their cluster using policies such as ValidatingAdmissionPolicy. The following CEL expression can be used as part of the policy to restrict the use of gitRepo volumes:

has(object.spec.volumes) || !object.spec.volumes.exists(v, has(v.gitRepo))
~~

CVSS / CWE

CVSS 3.1 · 8.1
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N

CWE-653 · Improper Isolation or Compartmentalization