CVE-2024-7598: K8s.io/kubernetes/cmd/kube apiserver Kubernetes Kube-apiserver Vulnerable To Race Vulnerability
LOWCVE-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
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).
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.
Upgrade k8s.io/kubernetes/cmd/kube-apiserver to Latest secure release
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
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?
Which K8s.io/kubernetes/cmd/kube apiserver versions are affected?
What version fixes CVE-2024-7598?
Is k8s.io/kubernetes/cmd/kube-apiserver affected?
What is the CVSS score of CVE-2024-7598?
What CWE is associated with CVE-2024-7598?
How can I check Go dependencies for CVE-2024-7598?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}