CVE-2024-45041 External Secrets Operator vulnerable to privilege escalation

High 8.3 Published Updated

Attackers can escalate privileges to read all cluster secrets or disrupt operations via excessive permissions in the cert-controller ClusterRole.

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 CVE-2024-45041?

CVE-2024-45041 is a high-severity vulnerability in external-secrets, published on 9 Sep 2024. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

External Secrets Operator is a Kubernetes operator that integrates external secret management systems. The external-secrets has a deployment called default-external-secrets-cert-controller, which is bound with a same-name ClusterRole. This ClusterRole has "get/list" verbs of secrets resources. It also has path/update verb of validatingwebhookconfigurations resources. This can be used to abuse the SA token of the deployment to retrieve or get ALL secrets in the whole cluster, capture and log all data from requests attempting to update Secrets, or make a webhook deny all Pod create and update requests. This vulnerability is fixed in 0.10.2.

Weakness: CWE-732, CWE-269

Which versions are affected by CVE-2024-45041?

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

PackageAffectedFixed in
github.com/external-secrets/external-secrets GoAll versions0.10.2
github.com/external-secrets/external-secrets GoAll versions0.10.2
github.com/external-secrets/external-secrets GoAll versions0.10.2

Products include External-Secrets External Secrets Operator.

How do I fix CVE-2024-45041?

Upgrade github.com/external-secrets/external-secrets to 0.10.2 or later.

Is CVE-2024-45041 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-45041 exists.

Sources

Also known as GHSA-qwgc-rr35-h4x9, GO-2024-3126.

Is CVE-2024-45041 in your software?

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

Check your SBOMs for free