Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. k8s.io/kubernetes
  4. ›
  5. CVE-2024-9042

CVE-2024-9042: Kubernetes allows Command Injection affecting Windows nodes via nodes/*/logs/query API

March 13, 2025

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

  • github.com/advisories/GHSA-vv39-3w5q-974q
  • github.com/kubernetes/kubernetes
  • github.com/kubernetes/kubernetes/commit/45f4ccc2153bbb782253704cbe24c05e22b5d60c
  • github.com/kubernetes/kubernetes/commit/5fe148234f8ab1184f26069c4f7bef6c37efe347
  • github.com/kubernetes/kubernetes/commit/75c83a6871dc030675288c6d63c275a43c2f0d55
  • github.com/kubernetes/kubernetes/commit/fb0187c2bf7061258bb89891edb1237261eb7abc
  • github.com/kubernetes/kubernetes/issues/129654
  • groups.google.com/g/kubernetes-security-announce/c/9C3vn6aCSVg
  • nvd.nist.gov/vuln/detail/CVE-2024-9042

Code Behaviors & Features

Detect and mitigate CVE-2024-9042 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.29.13, all versions starting from 1.30.0-alpha.0 before 1.30.9, all versions starting from 1.31.0-alpha.0 before 1.31.5, all versions starting from 1.32.0-alpha.0 before 1.32.1

Fixed versions

  • 1.29.13
  • 1.30.9
  • 1.31.5
  • 1.32.1

Solution

Upgrade to versions 1.29.13, 1.30.9, 1.31.5, 1.32.1 or above.

Impact 5.9 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-20: Improper Input Validation
  • CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')

Source file

go/k8s.io/kubernetes/CVE-2024-9042.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:07 +0000.