CVE-2024-7598: Kubernetes kube-apiserver Vulnerable to Race Condition
3.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.00541%
CWE
Published
3/20/2025
Updated
3/21/2025
KEV Status
No
Technology
Go
Technical Details
CVSS Vector
CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
k8s.io/kubernetes/cmd/kube-apiserver | go |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from undefined deletion order during namespace termination. The namespace controller's deleteAllContent()
function is responsible for cascading deletion of namespace resources. Since it processes resource types in an arbitrary order (typically alphabetical by API group/version), NetworkPolicy
resources (networking.k8s.io/v1
) may be deleted before Pod
resources (v1
), creating the race condition. The function's lack of synchronization or ordering logic for dependent resource types directly enables the vulnerability scenario described.