CVE-2024-7598: K8s.io/kubernetes/cmd/kube apiserver Kubernetes Kube-apiserver Vulnerable To Race Vulnerability

LOW
Advisory Identifier: GHSA-r56h-j38w-hrqq
CVSS 3.1
CWE-362
Published
Advisory Summary

CVE-2024-7598 is a LOW (CVSS 3.1) kubernetes kube-apiserver vulnerable to race vulnerability (CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')) affecting K8s.io/kubernetes/cmd/kube apiserver libraries in the Go ecosystem. The issue involves kubernetes kube-apiserver vulnerable to race condition. Remediation is available in the latest vendor maintenance releases.

CVE-2024-7598 at a Glance

CVE Identifier CVE-2024-7598
GHSA Identifier GHSA-r56h-j38w-hrqq
Severity LOW
CVSS v3.1 Base Score 3.1
CWE Classification CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')
Affected Product K8s.io/kubernetes/cmd/kube apiserver
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 3.1

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N).

Attack Vector Adjacent (AV:A)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2024-7598

To remediate this vulnerability, upgrade all affected K8s.io/kubernetes/cmd/kube apiserver dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

k8s.io/kubernetes/cmd/kube-apiserver fixed: Latest secure release
Upgrade k8s.io/kubernetes/cmd/kube-apiserver to Latest secure release
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for k8s.io/kubernetes/cmd/kube-apiserver

How to Check if You Are Affected

To determine whether your application is affected by CVE-2024-7598, inspect your project dependencies for K8s.io/kubernetes/cmd/kube apiserver:

inspect dependencies for k8s.io/kubernetes/cmd/kube-apiserver

Analyze the terminal output to locate any version of K8s.io/kubernetes/cmd/kube apiserver in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition'), where the product contains a concurrent code sequence that requires temporary, exclusive access to a shared resource, but a timing window exists in which the shared resource can be modified by another code sequence operating concurrently. In K8s.io/kubernetes/cmd/kube apiserver, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

A security issue was discovered in Kubernetes where a malicious or compromised pod could bypass network restrictions enforced by network policies during namespace deletion. The order in which objects are deleted during namespace termination is not defined, and it is possible for network policies to be deleted before the pods that they protect. This can lead to a brief period in which the pods are running, but network policies that should apply to connections to and from the pods are not enforced.

CVE-2024-7598 Affected K8s.io/kubernetes/cmd/kube apiserver Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
k8s.io/kubernetes/cmd/kube-apiserver
Go
≥ 1.3.0
≤ 1.32.3

References

Frequently Asked Questions

What is CVE-2024-7598?
CVE-2024-7598 is a security vulnerability in K8s.io/kubernetes/cmd/kube apiserver involving Kubernetes kube-apiserver Vulnerable to Race Condition under CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition').
Which K8s.io/kubernetes/cmd/kube apiserver versions are affected?
Affected versions include releases prior to current release patches across affected packages: k8s.io/kubernetes/cmd/kube-apiserver.
What version fixes CVE-2024-7598?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is k8s.io/kubernetes/cmd/kube-apiserver affected?
Yes, k8s.io/kubernetes/cmd/kube-apiserver is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2024-7598?
CVE-2024-7598 has a CVSS v3.1 base score of 3.1 (LOW) with vector string CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N.
What CWE is associated with CVE-2024-7598?
CVE-2024-7598 is classified under CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition') (The product contains a concurrent code sequence that requires temporary, exclusive access to a shared resource, but a timing window exists in which the shared resource can be modified by another code sequence operating concurrently.).
How can I check Go dependencies for CVE-2024-7598?
Run the dependency tree command: 'inspect dependencies for k8s.io/kubernetes/cmd/kube-apiserver'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-r56h-j38w-hrqq",
  "modified" : "2025-03-21T17:44:11Z",
  "published" : "2025-03-20T18:30:30Z",
  "aliases" : [ "CVE-2024-7598" ],
  "summary" : "Kubernetes kube-apiserver Vulnerable to Race Condition",
  "details" : "A security issue was discovered in Kubernetes where a malicious or compromised pod could bypass network restrictions enforced by network policies during namespace deletion. The order in which objects are deleted during namespace termination is not defined, and it is possible for network policies to be deleted before the pods that they protect. This can lead to a brief period in which the pods are running, but network policies that should apply to connections to and from the pods are not enforced.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "k8s.io/kubernetes/cmd/kube-apiserver"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.3.0"
      }, {
        "last_affected" : "1.32.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-7598"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/kubernetes/kubernetes/issues/126587"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/kubernetes/kubernetes"
  }, {
    "type" : "WEB",
    "url" : "https://groups.google.com/g/kubernetes-security-announce/c/67D7UFqiPRc"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2025/03/20/2"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-362" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-03-21T17:44:11Z",
    "nvd_published_at" : "2025-03-20T17:15:37Z"
  }
}