CVE-2024-5321 Incorrect permissions on Windows containers logs
Attackers on Windows Kubernetes nodes can read or modify container logs due to incorrect file permissions.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-5321?
CVE-2024-5321 is a medium-severity missing authorization vulnerability in Kubernetes, published on 18 Jul 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
A security issue was discovered in Kubernetes clusters with Windows nodes where BUILTIN\Users may be able to read container logs and NT AUTHORITY\Authenticated Users may be able to modify container logs.
Weakness: CWE-276
Which versions are affected by CVE-2024-5321?
9 open source packages ship an affected version, including k8s.io/kubernetes.
| Package | Affected | Fixed in |
|---|---|---|
k8s.io/kubernetes Go | All versions | 1.27.16, 1.28.12, 1.29.7, 1.30.3 |
k8s.io/kubernetes Go | All versions | 1.27.16 |
k8s.io/kubernetes Go | All versions | 1.27.16 |
k8s.io/kubernetes Go | From 1.28.0 | 1.28.12 |
k8s.io/kubernetes Go | From 1.28.0 | 1.28.12 |
k8s.io/kubernetes Go | From 1.29.0 | 1.29.7 |
3 more packages
k8s.io/kubernetes Go | From 1.29.0 | 1.29.7 |
k8s.io/kubernetes Go | From 1.30.0 | 1.30.3 |
k8s.io/kubernetes Go | From 1.30.0 | 1.30.3 |
How do I fix CVE-2024-5321?
Upgrade k8s.io/kubernetes to a fixed version for your release line: 1.27.16, 1.28.12, 1.29.7 or 1.30.3.
Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.
Is CVE-2024-5321 being exploited?
There is no known exploitation of CVE-2024-5321 in the wild and no public exploit code.
Sources
Also known as AZL-45436, CLEANSTART-2026-PI46891, CLEANSTART-2026-SA69447, ECHO-ff7b-4bc1-46e0, GHSA-82m2-cv7p-4m75, GO-2024-2994 and 1 more.