A now-fixed command-injection bug in Kubernetes can be exploited by a remote attacker to gain code execution with SYSTEM privileges on all Windows endpoints in a cluster, and thus fully take over those systems, according to Akamai researcher Tomer Peled. Peled found the vulnerability, tracked as CVE-2024-9042, while conducting research for a presentation at last year's DEF CON infosec event about another Kubernetes-related flaw involving command injection in the open source container platform's sidecar project git-sync. The latest vulnerability received a medium-severity score of 5.9 out of 10, and it affects Kubernetes versions earlier than 1.32.1 with beta features enabled. Additionally, to exploit CVE-2024-9042, the Kubernetes cluster must not only be running Windows endpoints – the flaw doesn't affect any other OSes – it must be configured to run Log Query. This is a new, beta-level mechanism for pulling up the system status of remote machines using a command-line interface or a web API via a tool like Curl. As Peled explained: For example, a user can type the following command to query the status of the kubelet service on a remote node: kubectl get --raw "/api/v1/nodes/node-1.example/proxy/logs/?query=kubelet" The vulnerability allows an attacker who has the ability to send such a query to a node to inject commands into that system with high privileges via a pattern parameter in the request. Log Query does not sufficiently validate and sanitize that parameter, which if c...
Patch this hole or risk Kubernetes Windows node hijackings
The Register
·Jessica Lyons
·Published Jan 24, 2025
·Updated
Affected Software
2 affected components
Kubernetes
Kubernetes kubernetes=1.32.1
Frequently Asked Questions
1
What is the main topic of this article?
The article discusses a command-injection vulnerability in Kubernetes that affects Windows nodes and allows remote code execution.
2
What security implications are discussed?
The exploitation of the vulnerability can lead to a complete takeover of all Windows endpoints in a Kubernetes cluster.
3
What products or software are affected?
The affected software is Kubernetes, specifically version 1.32.1 for Windows nodes.
4
How can organizations protect themselves from this vulnerability?
Organizations are advised to promptly apply the security patches released to fix the command-injection vulnerability.
5
Who reported the discovery of this vulnerability?
The vulnerability was reported by a researcher from Akamai.