CVE-2024-45041: External Secrets Operator vulnerable to privilege escalation
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).
Published Sep 9, 2024 · Updated Sep 18, 2024
Affected packages
github.com/external-secrets/external-secrets
- Ecosystem
- Go
- Affected
- < 0.10.2
- Fixed in
- 0.10.2
- Check
go list -m github.com/external-secrets/external-secrets
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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:
- 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.
- 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
Credited to younaman.
References
- https://github.com/external-secrets/external-secrets/security/advisories/GHSA-qwgc-rr35-h4x9
- https://nvd.nist.gov/vuln/detail/CVE-2024-45041
- https://github.com/external-secrets/external-secrets/commit/0368b9806f660fa6bc52cbbf3c6ccdb27c58bb35
- https://github.com/external-secrets/external-secrets/commit/428a452fd2ad45935312f2c2c0d40bc37ce6e67c
- https://github.com/external-secrets/external-secrets/blob/main/deploy/charts/external-secrets/templates/cert-controller-rbac.yaml#L27
- https://github.com/external-secrets/external-secrets/blob/main/deploy/charts/external-secrets/templates/cert-controller-rbac.yaml#L49
- https://pkg.go.dev/vuln/GO-2024-3126
- https://github.com/advisories/GHSA-qwgc-rr35-h4x9
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Go vulnerabilities
All Go entriesCVE-2026-26287
External Secrets Operator: label enforcement bypass in webhook generator enables secret exfiltration
high7.1Oct 6, 2026CVE-2026-42875
External Secrets Operator has Namespace Isolation Bypass in CAProvider ConfigMap Resolution for SecretStore
medium5.3May 5, 2026CVE-2026-34984
External Secrets Operator has DNS-based secret exfiltration via getHostByName in External Secrets v2 template engine
high6.5No fixApr 13, 2026CVE-2026-22822
External Secrets Operator insecurely retrieves secrets through the getSecretKey templating function
critical9.3Jan 20, 2026CVE-2025-55196
External Secrets Operator's Missing Namespace Restriction Allows Unauthorized Secret Access
high7.1Aug 13, 2025
