{"answers":{"affected":"3 open source packages ship an affected version, including github.com/external-secrets/external-secrets. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-45041 exists.","fix":"Upgrade github.com/external-secrets/external-secrets to 0.10.2 or later.","what":"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."},"fix_prompt":"Check this codebase for CVE-2024-45041 and fix it if it is affected.\n\nWhat it is: 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.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-45041 exists.\n\nAffected packages and fixed versions:\n- github.com/external-secrets/external-secrets (Go): affected all versions; fixed in 0.10.2\n- github.com/external-secrets/external-secrets (Go): affected all versions; fixed in 0.10.2\n- github.com/external-secrets/external-secrets (Go): affected all versions; fixed in 0.10.2\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-45041/ (Markdown: https://insights.sbomify.com/CVE-2024-45041/index.md)","id":"CVE-2024-45041","markdown":"https://insights.sbomify.com/CVE-2024-45041/index.md","name":"CVE-2024-45041","record":{"aliases":["GHSA-qwgc-rr35-h4x9","GO-2024-3126"],"analysis":{"component_type":"container_or_infrastructure","fix_type":"upgrade","impacts":["privilege_escalation","data_read","denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Kubernetes operator","requires_auth":"low_privilege","summary":"Attackers can escalate privileges to read all cluster secrets or disrupt operations via excessive permissions in the cert-controller ClusterRole.","user_interaction":"not_required","vuln_class":"privilege_escalation"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"external_secrets_operator","vendor":"external-secrets"}],"cvss":{"score":8.3,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H","version":"3.1"},"cwes":[{"id":"CWE-732","name":"Incorrect Permission Assignment for Critical Resource"},{"id":"CWE-269","name":"Improper Privilege Management"}],"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.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"External Secrets Operator vulnerable to privilege escalation","id":"CVE-2024-45041","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"privilege_escalation","year":"2024"},"n_packages":3,"n_references":2,"next":{"headline":"Ory Kratos's `highest_available` setting does not properly respect code + mfa credentials","id":"CVE-2024-45042"},"packages":[{"ecosystem":"Go","fixed":["0.10.2"],"introduced":["0"],"last_affected":[],"package":"github.com/external-secrets/external-secrets","purl":null,"source":"GHSA-qwgc-rr35-h4x9"},{"ecosystem":"Go","fixed":["0.10.2"],"introduced":["0"],"last_affected":[],"package":"github.com/external-secrets/external-secrets","purl":"pkg:golang/github.com/external-secrets/external-secrets","source":"GHSA-qwgc-rr35-h4x9"},{"ecosystem":"Go","fixed":["0.10.2"],"introduced":["0"],"last_affected":[],"package":"github.com/external-secrets/external-secrets","purl":"pkg:golang/github.com/external-secrets/external-secrets","source":"GO-2024-3126"}],"prev":{"headline":"gnark's commitments to private witnesses in Groth16 as implemented break zero-knowledge property","id":"CVE-2024-45040"},"products":["external-secrets"],"published":"2024-09-09","related":[{"cvss_score":9.8,"headline":"Missing authorization in n/a","id":"CVE-2024-36540","kev_date_added":null,"published":"2024-07-24"},{"cvss_score":9.3,"headline":"External Secrets Operator insecurely retrieves secrets through the getSecretKey templating function","id":"CVE-2026-22822","kev_date_added":null,"published":"2026-01-21"},{"cvss_score":7.1,"headline":"External Secrets Operator has DNS exfiltration via getHostByName in its v2 template engine","id":"CVE-2026-34984","kev_date_added":null,"published":"2026-04-14"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-09-09","vendors":["external-secrets"]},"summary":"Attackers can escalate privileges to read all cluster secrets or disrupt operations via excessive permissions in the cert-controller ClusterRole.","url":"https://insights.sbomify.com/CVE-2024-45041/"}