CVE-2023-28114 `cilium-cli` disables etcd authorization for clustermesh clusters

Medium 4.8 Published Updated

Attacker with valid etcd credentials can modify cluster state because cilium-cli incorrectly disables etcd authorization during cluster mesh setup.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2023-28114?

CVE-2023-28114 is a medium-severity missing authorization vulnerability in cilium-cli, published on 22 Mar 2023. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

`cilium-cli` is the command line interface to install, manage, and troubleshoot Kubernetes clusters running Cilium. Prior to version 0.13.2,`cilium-cli`, when used to configure cluster mesh functionality, can remove the enforcement of user permissions on the `etcd` store used to mirror local cluster information to remote clusters. Users who have set up cluster meshes using the Cilium Helm chart are not affected by this issue.

Due to an incorrect mount point specification, the settings specified by the `initContainer` that configures `etcd` users and their permissions are overwritten when using `cilium-cli` to configure a cluster mesh. An attacker who has already gained access to a valid key and certificate for an `etcd` cluster compromised in this manner could then modify state in that `etcd` cluster.

This issue is patched in `cilium-cli` 0.13.2. As a workaround, one may use Cilium's Helm charts to create their cluster.

Weakness: CWE-755, CWE-280

Which versions are affected by CVE-2023-28114?

3 open source packages ship an affected version, including github.com/cilium/cilium-cli. It affects 1 product.

PackageAffectedFixed in
github.com/cilium/cilium-cli GoAll versions0.13.2
github.com/cilium/cilium-cli GoAll versions0.13.2
github.com/cilium/cilium-cli GoAll versions0.13.2

Products include Cilium Cilium-Cli.

How do I fix CVE-2023-28114?

Upgrade github.com/cilium/cilium-cli to 0.13.2 or later.

Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.

Is CVE-2023-28114 being exploited?

There is no known exploitation of CVE-2023-28114 in the wild and no public exploit code.

Sources

Also known as GHSA-6f27-3p6c-p5jc, GO-2023-1653.

Is CVE-2023-28114 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free