{"id":"CVE-2023-39347","published":"2023-09-26T18:30:00Z","modified":"2024-09-24T13:45:29Z","title":"Cilium NetworkPolicy bypass via pod labels","vendor":"cilium","product":"cilium","tier":"tail","description":{"text":"Cilium is a networking, observability, and security solution with an eBPF-based dataplane. An attacker with the ability to update pod labels can cause Cilium to apply incorrect network policies. This issue arises due to the fact that on pod update, Cilium incorrectly uses user-provided pod labels to select the policies which apply to the workload in question. This can affect Cilium network policies that use the namespace, service account or cluster constructs to restrict traffic, Cilium clusterwide network policies that use Cilium namespace labels to select the Pod and Kubernetes network policies. Non-existent construct names can be provided, which bypass all network policies applicable to the construct. For example, providing a pod with a non-existent namespace as the value of the `io.kubernetes.pod.namespace` label results in none of the namespaced CiliumNetworkPolicies applying to the pod in question. This attack requires the attacker to have Kubernetes API Server access, as described in the Cilium Threat Model. This issue has been resolved in: Cilium versions 1.14.2, 1.13.7, and 1.12.14. Users are advised to upgrade. As a workaround an admission webhook can be used to prevent pod label updates to the `k8s:io.kubernetes.pod.namespace` and `io.cilium.k8s.policy.*` keys.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.6,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0057,"percentile":0.48104,"provenance":"source"},"cwes":[{"id":"CWE-345","name":"Insufficient Verification of Data Authenticity"}],"references":[{"url":"https://github.com/cilium/cilium/security/advisories/GHSA-gj2r-phwg-6rww","tags":["x_refsource_CONFIRM"]},{"url":"https://docs.cilium.io/en/latest/security/threat-model/#kubernetes-api-server-attacker","tags":["x_refsource_MISC"]}],"priority":{"score":14.9,"factors":[{"name":"EPSS percentile","points":9.62},{"name":"CVSS severity","points":5.32}]},"vendorSlug":"cilium","affectedVersions":[{"vendor":"cilium","product":"cilium","versions":[">= 1.14.0, < 1.14.2",">= 1.13.0, < 1.13.7","< 1.12.14"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-09-24T13:24:24.851028Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/cilium/cilium","vulnerableRanges":[">=1.13.0, <1.13.7",">=1.14.0, <1.14.2","<1.12.14"],"patched":["1.13.7","1.14.2","1.12.14"],"from":["GHSA-gj2r-phwg-6rww","GO-2023-2078"],"provenance":"source"}],"summary":{"text":"Cilium, an eBPF-based networking and security solution for Kubernetes, incorrectly uses user-provided pod labels when selecting which network policies apply to a workload on pod update, affecting namespaced CiliumNetworkPolicies, clusterwide policies that use Cilium namespace labels, and Kubernetes NetworkPolicies. An attacker who can update pod labels and has Kubernetes API Server access can set a non-existent construct name, such as a bogus namespace in the io.kubernetes.pod.namespace label, so that none of the applicable network policies take effect for that pod.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:31:35Z"},"euvd":{"id":"EUVD-2023-2509","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2023-29002","published":"2023-04-18","fixed":"1.13.2","kev":false},{"cve":"CVE-2023-30851","published":"2023-05-25","fixed":"1.13.2","kev":false,"link":{"from":"CVE-2023-30851","to":"CVE-2023-39347","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/cilium/cilium","fromFixed":"1.12.9","toFixed":"1.12.14","daysApart":124}]}},{"cve":"CVE-2023-34242","published":"2023-06-15","fixed":"1.13.4","kev":false,"link":{"from":"CVE-2023-34242","to":"CVE-2023-39347","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/cilium/cilium","fromFixed":"1.13.4","toFixed":"1.13.7","daysApart":103}]}},{"cve":"CVE-2023-39347","published":"2023-09-26","fixed":"1.14.2","kev":false},{"cve":"CVE-2023-41332","published":"2023-09-26","fixed":"1.14.2","kev":false},{"cve":"CVE-2023-41333","published":"2023-09-26","fixed":"1.14.2","kev":false},{"cve":"CVE-2024-25630","published":"2024-02-20","fixed":"1.14.7","kev":false}],"package":"Go:github.com/cilium/cilium"}}