GHSA-wc5v-r48v-g4vh Cilium host policy bypass in endpoint-routes mode with dual-stack
Attackers can bypass host firewall policies for IPv6 traffic from Cilium-managed pods to the host network in specific dual-stack configurations.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is GHSA-wc5v-r48v-g4vh?
GHSA-wc5v-r48v-g4vh is a vulnerability in github.com/cilium/cilium, published on 15 Jul 2022. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
Impact
This vulnerability allows bypassing host policies for IPv6 traffic coming from a Cilium-managed pod and destined to the host-network namespace (e.g., to a host-network pod). Host policy enforcement on IPv4 or for traffic coming from outside the node is not affected.
Cilium is only affected by this vulnerability if IPv4, IPv6, endpoint routes, and the host firewall are enabled. Note that endpoint routes are typically only enabled in GKE, EKS, AKS, and OpenShift; in those environments, IPv6 is typically disabled. Host firewall is disabled by default.
Patches
The bug is fixed in versions v1.10.13 and v1.11.7 of Cilium.
Workarounds
For affected users who can't upgrade, one potential workaround is to ensure all pods have network policies that prevent sending arbitrary traffic to the local node.
References
Commit fixing the vulnerability: https://github.com/cilium/cilium/commit/c758da7e9d19cd19b96dc90424c0b5ec7409cd0a.
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-wc5v-r48v-g4vh?
4 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.13 |
github.com/cilium/cilium Go | All versions | 1.10.13 |
github.com/cilium/cilium Go | From 1.11.0 | 1.11.7 |
github.com/cilium/cilium Go | From 1.11.0 | 1.11.7 |
How do I fix GHSA-wc5v-r48v-g4vh?
Upgrade github.com/cilium/cilium to a fixed version for your release line: 1.10.13 or 1.11.7.
Is GHSA-wc5v-r48v-g4vh being exploited?
There is no known exploitation of GHSA-wc5v-r48v-g4vh in the wild and no public exploit code.