Skip to main content
Mallory
MediumVulnerability

CVE-2024-9042: SYSTEM-Level Command Injection in Kubernetes NodeLogQuery on Windows

Published Mar 13, 2025 · Updated 5 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS5.9Medium · v3.1
EPSS1.4%73rd percentile
CISA KEVNoNot listed
In the wildReported1 exploitation record in Mallory
IdentifiersCVE-2024-9042CWE-78

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.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

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.

Public exploits

Exploits

No public exploits tracked yet. Mallory keeps watching.

View more in app →
No public exploit code observed for this vulnerability. Mallory keeps watching.
FAQ

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.
Activity feed

Recent activity

19 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
tenable cloud security pluginsNews · Oct 2, 2026Echo: k8s.io/kubernetes: security update to 1.29.13 | Tenable®A vulnerability with available exploits and a published patch. The supplied CVSS v3 and v4 vectors describe network-based exploitation requiring high privileges and high attack complexity, without user interaction. Successful exploitation has high confidentiality and integrity impact, with no availability impact indicated. The content does not identify the affected product or underlying flaw.Read more ↗sans iscNews · Dec 10, 2025Possible exploit variant for CVE-2024-9042 (Kubernetes OS Command Injection)A command injection vulnerability in the Kubernetes NodeLogQuery feature (CVE-2024-9042) allows attackers with log read permissions on Windows nodes to execute arbitrary OS commands if the feature is enabled. The vulnerability is significant as it could lead to remote code execution on affected Kubernetes nodes.Read more ↗register securityNews · Jan 24, 2025Don't want your Kubernetes Windows nodes hijacked? Patch this hole nowA command-injection vulnerability in Kubernetes (CVE-2024-9042) allows remote attackers to execute code with SYSTEM privileges on Windows endpoints in clusters running the beta Log Query feature. The flaw is due to insufficient sanitization of a pattern parameter in Log Query requests, enabling command injection via crafted queries. Only Windows nodes with the beta Log Query feature enabled are affected. The vulnerability is fixed in Kubernetes 1.32.1 and later.Read more ↗akamai sitr blogNews · Jan 24, 2025Exploit Me, Baby, One More Time: Command Injection in Kubernetes Log QueryA critical remote code execution vulnerability in Kubernetes Log Query (CVE-2024-9042) allows attackers to execute arbitrary commands with SYSTEM privileges on Windows nodes in clusters using the Log Query beta feature. Exploitation is possible via a crafted GET request, leading to full cluster compromise.Read more ↗
+1 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signatures1YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity12Community discussion across Reddit, Mastodon, and other social sources.