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

Published Sep 9, 2024
·
Updated

Details 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(https://github.com/external-secrets/external-secrets/blob/main/deploy/charts/external-secrets/templates/cert-controller-rbac.yaml#L49). It also has path/update verb of validatingwebhookconfigurations resources(https://github.com/external-secrets/external-secrets/blob/main/deploy/charts/external-secrets/templates/cert-controller-rbac.yaml#L27). As a result, if a malicious user can access the worker node which has this deployment. he/she can: 1. For the "get/list secrets" permission, he/she can abuse the SA token of this deployment to retrieve or get ALL secrets in the whole cluster, including the cluster-admin secret if created. After that, he/she can abuse the cluster-admin secret to do whatever he/she likes to the whole cluster, resulting in a cluster-level privilege escalation.

2. For the patch/update verb of validatingwebhookconfigurations, the malicious user can abuse these permissions to get sensitive data or lanuch DoS attacks:

For the privilege escalation attack, by updating/patching a Webhook to make it listen to Secret update operations, the attacker can capture and log all data from requests attempting to update Secrets. More specifically, when a Secret is updated, this Webhook sends the request data to the logging-service, which can then log the content of the Secret. This way, an attacker could indirectly gain access to the full contents of the Secret.

For the DoS attack, by updating/patching a Webhook, and making it deny all Pod create and update requests, the attacker can prevent any new Pods from being created or existing Pods from being updated, resulting in a Denial of Service (DoS) attack.

PoC Please see the "Details" section

Impact Privilege escalation

Other sources

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.

— MITRE

Affected Software

2 affected componentsFixes available
go/github.com/external-secrets/external-secrets<0.10.2
0.10.2
external-secrets External Secrets Operator<0.10.2

Event History

Sep 9, 2024
CVE Published
via MITRE·02:54 PM
Data Sourced
via MITRE·02:54 PM
DescriptionSeverityWeakness
Advisory Published
via GitHub·06:16 PM

Frequently Asked Questions

1

What is the severity of CVE-2024-45041?

CVE-2024-45041 is classified as a high severity vulnerability based on its potential impact on secret handling.

2

How do I fix CVE-2024-45041?

To fix CVE-2024-45041, upgrade the external-secrets package to version 0.10.3 or later to eliminate the vulnerability.

3

What systems are affected by CVE-2024-45041?

CVE-2024-45041 affects the external-secrets deployment version 0.10.2 and earlier.

4

What are the implications of CVE-2024-45041?

The implications of CVE-2024-45041 include unauthorized access to secrets due to improper ClusterRole permissions.

5

Is there a workaround for CVE-2024-45041?

A temporary workaround for CVE-2024-45041 involves manually adjusting ClusterRole permissions to restrict access until the upgrade can be applied.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203