Bypass of namespace restrictions in CiliumNetworkPolicy
Published Sep 26, 2023
8.1
HIGHCVSS 3.1
EPSS 0.48%
Description
Cilium is a networking, observability, and security solution with an eBPF-based dataplane. An attacker with the ability to create or modify CiliumNetworkPolicy objects in a particular namespace is able to affect traffic on an entire Cilium cluster, potentially bypassing policy enforcement in other namespaces. By using a crafted `endpointSelector` that uses the `DoesNotExist` operator on the `reserved:init` label, the attacker can create policies that bypass namespace restrictions and affect the entire Cilium cluster. This includes potentially allowing or denying all traffic. This attack requires API server access, as described in the Kubernetes API Server Attacker section of the Cilium Threat Model. This issue has been resolved in Cilium versions 1.14.2, 1.13.7, and 1.12.14. As a workaround an admission webhook can be used to prevent the use of `endpointSelectors` that use the `DoesNotExist` operator on the `reserved:init` label in CiliumNetworkPolicies.
Affected products
-
- Version < 1.12.14StatusaffectedConstraints-
- Version >= 1.13.0, < 1.13.7StatusaffectedConstraints-
- Version >= 1.14.0, < 1.14.2StatusaffectedConstraints-
- Version
No data.
No Red Hat product state for this CVE.
github.com/cilium/cilium
Go
Introduced 1.14.0 Fixed 1.14.2github.com/cilium/cilium
Go
Introduced 1.13.0 Fixed 1.13.7github.com/cilium/cilium
Go
Introduced 0 Fixed 1.12.14
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Go | github.com/cilium/cilium | 1.14.0 | 1.14.2 |
| Go | github.com/cilium/cilium | 1.13.0 | 1.13.7 |
| Go | github.com/cilium/cilium | 0 | 1.12.14 |
Remediation
No remediation recorded yet.
References (5)
- https://docs.cilium.io/en/stable/security/threat-model/#kubernetes-api-server-attacker x_refsource_MISCProduct
- https://github.com/advisories/GHSA-4xp2-w642-7mcx Advisory
- https://github.com/cilium/cilium/pull/28007 x_refsource_MISCIssue TrackingPatch
- https://github.com/cilium/cilium/security/advisories/GHSA-4xp2-w642-7mcx x_refsource_CONFIRMMitigationPatchThird Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2023-41333
| Link | Providers | Tags |
|---|---|---|
| https://docs.cilium.io/en/stable/security/threat-model/#kubernetes-api-server-attacker | x_refsource_MISCProduct | |
| https://github.com/advisories/GHSA-4xp2-w642-7mcx | Advisory | |
| https://github.com/cilium/cilium/pull/28007 | x_refsource_MISCIssue TrackingPatch | |
| https://github.com/cilium/cilium/security/advisories/GHSA-4xp2-w642-7mcx | x_refsource_CONFIRMMitigationPatchThird Party Advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2023-41333 |
Change history (0)
No recorded changes yet.