Cilium NetworkPolicy bypass via pod labels
CVE-2023-39347
What is CVE-2023-39347?
Cilium, a networking and security solution for Kubernetes, is vulnerable to improper label handling that can lead to the application of incorrect network policies. An attacker with the ability to update pod labels may manipulate these labels to bypass network restrictions. This manipulation occurs when Cilium incorrectly selects network policies based on user-provided labels during pod updates. Specifically, if an attacker supplies a non-existent namespace label, the associated CiliumNetworkPolicies fail to apply, thereby elevating the risk of unauthorized access to network resources. To mitigate this risk, users are encouraged to upgrade to the latest versions of Cilium, where this issue has been resolved.
Affected Version(s)
cilium >= 1.14.0, < 1.14.2 < 1.14.0, 1.14.2
cilium >= 1.13.0, < 1.13.7 < 1.13.0, 1.13.7
cilium < 1.12.14 < 1.12.14