GHSA-pfhr-pccp-hwmh Impact If a user has Network Policies with namespace selectors selecting labels of namespaces, or (clusterwide) Cilium Network Policies
Attackers with pod deploy rights can craft labels to bypass Cilium network policies, allowing unauthorized network access between pods.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is GHSA-pfhr-pccp-hwmh?
GHSA-pfhr-pccp-hwmh is a vulnerability in github.com/cilium/cilium, published on 30 Aug 2022. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
Impact
If a user has Network Policies with namespace selectors selecting labels of namespaces, or (clusterwide) Cilium Network Policies matching on namespace labels, then it is possible for an attacker with Kubernetes pod deploy rights (either directly or indirectly via higher-level APIs such as Deployment, Daemonset etc) to craft additional pod labels such that the pod is selected by another policy that exists rather than the expected policy.
Patches
The problem has been fixed and is available on versions >=1.10.14, >=1.11.8, >=1.12.1
Workarounds
There are no workarounds available.
Acknowledgements
The Cilium community has worked together with members of Isovalent to prepare these mitigations. Special thanks to Sander Mathijssen for not only highlighting the issue but also proposing a resolution.
For more information
If you have any questions or comments about this advisory, please reach out on Slack.
As usual, if you think you found a related vulnerability, we strongly encourage you to report security vulnerabilities to our private security mailing list: [email protected] - first, before disclosing them in any public forums. This is a private mailing list where only members of the Cilium internal security team are subscribed to, and is treated as top priority.
Which versions are affected by GHSA-pfhr-pccp-hwmh?
7 open source packages ship an affected version, including github.com/cilium/cilium.
| Package | Affected | Fixed in |
|---|---|---|
github.com/cilium/cilium Go | All versions | 1.10.14, 1.11.8, 1.12.1 |
github.com/cilium/cilium Go | All versions | 1.10.14 |
github.com/cilium/cilium Go | All versions | 1.10.14 |
github.com/cilium/cilium Go | From 1.11.0 | 1.11.8 |
github.com/cilium/cilium Go | From 1.11.0 | 1.11.8 |
github.com/cilium/cilium Go | From 1.12.0 | 1.12.1 |
1 more packages
github.com/cilium/cilium Go | From 1.12.0 | 1.12.1 |
How do I fix GHSA-pfhr-pccp-hwmh?
Upgrade github.com/cilium/cilium to a fixed version for your release line: 1.10.14, 1.11.8 or 1.12.1.
Is GHSA-pfhr-pccp-hwmh being exploited?
There is no known exploitation of GHSA-pfhr-pccp-hwmh in the wild and no public exploit code.
Sources
Also known as GO-2022-0959.