CVE-2024-9042
Kubernetes allows Command Injection affecting Windows nodes via nodes/*/logs/query API
Also known as GHSA-vv39-3w5q-974q, GO-2025-3522
Mitigation
- Upgrade k8s.io/kubernetes to one of 1.29.13, 1.30.9, 1.31.5, 1.32.1 (or later in the same release line).
Who should check
- Projects that depend on Go package k8s.io/kubernetes (< 1.29.13)
- Anyone running Kubernetes Kubelet <=v1.29.12; >= v1.30, <= v1.30.8; >= v1.31, <= v1.31.4; >= v1.32, <= v1.32.0
Vulnerability facts
- Affected
- k8s.io/kubernetes < 1.29.13
- Fixed in
- 1.29.13, 1.30.9, 1.31.5, 1.32.1
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, login needed
- CVSS
- 5.9 (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: High
- Privileges required: High
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: None
- EPSS
- 1.03% chance of exploitation in 30 days (percentile 63, 2026-11-26)
- CWE
- CWE-20
- Modified
Description
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Go k8s.io/kubernetes | < 1.29.13 | 1.29.13, 1.30.9, 1.31.5, 1.32.1 | osv |
| Kubernetes Kubelet | <=v1.29.12; >= v1.30, <= v1.30.8; >= v1.31, <= v1.31.4; >= v1.32, <= v1.32.0 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2024-9042. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2024-9042.md Affected: k8s.io/kubernetes < 1.29.13 Fixed in: 1.29.13, 1.30.9, 1.31.5, 1.32.1 Steps: 1. Search this machine and project for k8s.io/kubernetes (Go), Kubernetes Kubelet: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
- 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
FAQ
Is CVE-2024-9042 being exploited?
There is no confirmed exploitation: CVE-2024-9042 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.03% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2024-9042?
Medium: CVSS 5.9 (v3.1, scored by CNA). Remote, login needed. The attack needs conditions outside the attacker's control, which makes it harder.
Which versions are affected by CVE-2024-9042?
k8s.io/kubernetes < 1.29.13.
Is there a fix for CVE-2024-9042?
Yes. Fixed in 1.29.13, 1.30.9, 1.31.5, 1.32.1. Upgrade k8s.io/kubernetes to one of 1.29.13, 1.30.9, 1.31.5, 1.32.1 (or later in the same release line).
How do I check if I'm affected by CVE-2024-9042?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.