VDB
Sign up
MEDIUM5.9

GHSA-w7c2-w76w-5hmj

Cilium: Namespaced HTTPRoutes can redirect traffic to other namespaces

Quick fix

GHSA-w7c2-w76w-5hmj — github.com/cilium/cilium: upgrade to the fixed version with the command below.

go get github.com/cilium/cilium@v1.17.17

Details

### Impact

In Cilium clusters using [Gateway API](https://docs.cilium.io/en/stable/network/servicemesh/gateway-api/gateway-api/), users with permissions to create or update namespaced HTTPRoutes can mirror HTTP traffic to any Service in any namespace, bypassing the ReferenceGrant authorization mechanism.

Gateway API functionality is disabled by default.

### Patches

This issue affects:

* Cilium v1.19 from v1.19.0 to v1.19.4 inclusive * Cilium v1.18 from v1.18.0 to v1.18.10 inclusive * All versions of Cilium before v1.17.17

This issue is patched in:

* Cilium v1.19.5 * Cilium v1.18.11 * Cilium v1.17.17

### Workarounds

There is no workaround to this issue. Users of this feature who are unable to upgrade can mitigate the risk by ensuring that RBAC permissions to create `HTTPRoute` objects are only granted to cluster admins.

### Acknowledgements

The Cilium community has worked together with members of Isovalent to prepare these mitigations. Special thanks to @galanko for reporting the issue and @mhofstetter for their work on triaging and remediating this issue.

### For more information

If you have any questions or comments about this advisory, please reach out on [Slack](https://docs.cilium.io/en/latest/community/community/).

If you think you have found a vulnerability affecting Cilium, we strongly encourage you to report it to our security mailing list at [security@cilium.io](mailto:security@cilium.io). This is a private mailing list for the Cilium security team, and your report will be treated as top priority.

Are you affected?

Enter the version of the package you're using.

Affected packages

Go/github.com/cilium/cilium
Introduced in: 0Fixed in: 1.17.17
Fixgo get github.com/cilium/cilium@v1.17.17
Go/github.com/cilium/ciliumCilium
Introduced in: 1.18.0Fixed in: 1.18.11
Fixgo get github.com/cilium/ciliumCilium@v1.18.11
Go/github.com/cilium/cilium
Introduced in: 1.19.0Fixed in: 1.19.5
Fixgo get github.com/cilium/cilium@v1.19.5

References