CVE-2024-9042: Kubernetes allows Command Injection affecting Windows nodes via nodes/*/logs/query API
A security vulnerability has been discovered in Kubernetes windows nodes that could allow a user with the ability to query a node's '/logs' endpoint to execute arbitrary commands on the host. This CVE affects only Windows worker nodes. Your worker node is vulnerable to this issue if it is running one of the affected versions listed below.
Published Mar 13, 2025
Affected packages
k8s.io/kubernetes
- Ecosystem
- Go
- Affected
- < 1.29.13
- Fixed in
- 1.29.13
- Check
go list -m k8s.io/kubernetes
k8s.io/kubernetes
- Ecosystem
- Go
- Affected
- >= 1.30.0-alpha.0, < 1.30.9
- Fixed in
- 1.30.9
- Check
go list -m k8s.io/kubernetes
k8s.io/kubernetes
- Ecosystem
- Go
- Affected
- >= 1.31.0-alpha.0, < 1.31.5
- Fixed in
- 1.31.5
- Check
go list -m k8s.io/kubernetes
k8s.io/kubernetes
- Ecosystem
- Go
- Affected
- >= 1.32.0-alpha.0, < 1.32.1
- Fixed in
- 1.32.1
- Check
go list -m k8s.io/kubernetes
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
A security vulnerability has been discovered in Kubernetes windows nodes that could allow a user with the ability to query a node's '/logs' endpoint to execute arbitrary commands on the host. This CVE affects only Windows worker nodes. Your worker node is vulnerable to this issue if it is running one of the affected versions listed below.
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-9042
- https://github.com/kubernetes/kubernetes/issues/129654
- https://groups.google.com/g/kubernetes-security-announce/c/9C3vn6aCSVg
- https://github.com/kubernetes/kubernetes/commit/45f4ccc2153bbb782253704cbe24c05e22b5d60c
- https://github.com/kubernetes/kubernetes/commit/5fe148234f8ab1184f26069c4f7bef6c37efe347
- https://github.com/kubernetes/kubernetes/commit/75c83a6871dc030675288c6d63c275a43c2f0d55
- https://github.com/kubernetes/kubernetes/commit/fb0187c2bf7061258bb89891edb1237261eb7abc
- https://github.com/advisories/GHSA-vv39-3w5q-974q
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Go vulnerabilities
All Go entriesCVE-2025-13281
kube-controller-manager is vulnerable to half-blind Server Side Request Forgery through in-tree Portworx StorageClass
medium5.8Dec 15, 2025CVE-2025-5187
Kubernetes Nodes can delete themselves by adding an OwnerReference
medium6.7Aug 27, 2025CVE-2025-4563
kubernetes allows nodes to bypass dynamic resource allocation authorization checks
low2.7Jun 23, 2025CVE-2025-1767
Kubernetes GitRepo Volume Inadvertent Local Repository Access
medium6.5No fixMar 13, 2025CVE-2025-0426
Node Denial of Service via kubelet Checkpoint API
medium6.2Feb 13, 2025CVE-2024-10220
Kubernetes kubelet arbitrary command execution
high8.1Nov 22, 2024
