CVE-2024-10220: K8s.io/kubernetes Kubernetes Kubelet Arbitrary Command Execution Vulnerability
HIGHCVE-2024-10220 is a HIGH (CVSS 8.1) kubernetes kubelet arbitrary command execution vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting K8s.io/kubernetes libraries in the Go ecosystem. The issue involves kubernetes kubelet arbitrary command execution. Remediation is available by upgrading affected packages to version 1.28.12, 1.29.7, 1.30.3.
CVE-2024-10220 at a Glance
Security Impact
CVSS: 8.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N).
How to Fix CVE-2024-10220
To remediate this vulnerability, upgrade all affected K8s.io/kubernetes dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade k8s.io/kubernetes to 1.28.12
Upgrade k8s.io/kubernetes to 1.29.7
Upgrade k8s.io/kubernetes to 1.30.3
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for k8s.io/kubernetes
How to Check if You Are Affected
To determine whether your application is affected by CVE-2024-10220, inspect your project dependencies for K8s.io/kubernetes:
inspect dependencies for k8s.io/kubernetes
Analyze the terminal output to locate any version of K8s.io/kubernetes in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.28.12), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where the product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. In K8s.io/kubernetes, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2024-10220 Affected K8s.io/kubernetes Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
k8s.io/kubernetes
|
Go |
< 1.28.12
|
1.28.12
|
|
k8s.io/kubernetes
|
Go |
≥ 1.29.0
< 1.29.7
|
1.29.7
|
|
k8s.io/kubernetes
|
Go |
≥ 1.30.0
< 1.30.3
|
1.30.3
|
References
Frequently Asked Questions
What is CVE-2024-10220?
Which K8s.io/kubernetes versions are affected?
What version fixes CVE-2024-10220?
Is k8s.io/kubernetes affected?
What is the CVSS score of CVE-2024-10220?
What CWE is associated with CVE-2024-10220?
How can I check Go dependencies for CVE-2024-10220?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-27wf-5967-98gx",
"modified" : "2024-12-13T21:45:44Z",
"published" : "2024-11-22T21:32:15Z",
"aliases" : [ "CVE-2024-10220" ],
"summary" : " Kubernetes kubelet arbitrary command execution",
"details" : "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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "k8s.io/kubernetes"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.28.12"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "k8s.io/kubernetes"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.29.0"
}, {
"fixed" : "1.29.7"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "k8s.io/kubernetes"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.30.0"
}, {
"fixed" : "1.30.3"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-10220"
}, {
"type" : "WEB",
"url" : "https://github.com/kubernetes/kubernetes/issues/128885"
}, {
"type" : "WEB",
"url" : "https://github.com/kubernetes/kubernetes/commit/1ab06efe92d8e898ca1931471c9533ce94aba29b"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/kubernetes/kubernetes"
}, {
"type" : "WEB",
"url" : "https://groups.google.com/g/kubernetes-security-announce/c/ptNgV5Necko"
}, {
"type" : "WEB",
"url" : "https://pkg.go.dev/vuln/GO-2024-3286"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2024/11/20/1"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-22" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2024-11-22T22:50:21Z",
"nvd_published_at" : "2024-11-22T17:15:06Z"
}
}