CVE-2024-9042: SYSTEM-Level Command Injection in Kubernetes NodeLogQuery on Windows
CVE-2024-9042 is an OS command injection vulnerability in the Kubernetes NodeLogQuery feature affecting Windows worker nodes. Insufficient validation of the log query pattern parameter allows attacker-controlled input to be interpreted as PowerShell commands. A remote attacker with permission to query node logs can submit a crafted HTTP GET request to execute arbitrary commands with SYSTEM privileges. Exploitation requires NodeLogQuery to be enabled; Linux nodes are not affected.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation compromises an affected Windows worker node with SYSTEM privileges, allowing access to sensitive host data and modification of host resources. Attackers able to reach and query multiple vulnerable Windows nodes may compromise each of them. Broader cluster compromise depends on the privileges and credentials accessible from compromised nodes; it is not an automatic consequence on every deployment.
Mitigation
If you can’t patch tonight, do this now.
Until patched, disable NodeLogQuery on Windows worker nodes where operationally feasible. Restrict node-log query permissions through RBAC to trusted administrators and limit network access to node management interfaces. Review Kubernetes audit logs for suspicious log-query parameters and monitor Windows nodes for unexpected PowerShell activity.
Remediation
Patch, then assume compromise.
Upgrade Kubernetes to the fixed release for the deployed branch: 1.29.13, 1.30.9, 1.31.5, or 1.32.1, or a later supported release containing the fix. The patch passes user-controlled input to PowerShell through an environment variable rather than interpolating it into executable command text. For applicable VMware Tanzu Kubernetes Grid Integrated Edition deployments, release 1.23.4 includes a fix.
Exploits
No public exploits tracked yet. Mallory keeps watching.
References
Frequently asked questions
- Is CVE-2024-9042 exploited in the wild?
- Yes. As of Nov 20, 2026, Mallory has reports of exploitation in the wild.
- Is there a public exploit for CVE-2024-9042?
- As of Nov 20, 2026, Mallory has found no public exploit for CVE-2024-9042.
- Is there a patch for CVE-2024-9042?
- Upgrade Kubernetes to the fixed release for the deployed branch: 1.29.13, 1.30.9, 1.31.5, or 1.32.1, or a later supported release containing the fix. The patch passes user-controlled input to PowerShell through an environment variable rather than interpolating it into executable command text.
- How severe is CVE-2024-9042?
- CVE-2024-9042 has a CVSS v3.1 score of 5.9 (Medium) and an EPSS score of 1.4% (73rd percentile) as of Nov 20, 2026.
Recent activity
19 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.