{"id":"CVE-2025-62159","aliases":["GHSA-vf79-2pjx-phpp"],"summary":"External Secrets Operator's BeyondTrust Provider has Insecure Secret Retrieval","published_at":"2025-10-10T14:32:21Z","modified_at":"2025-10-14T15:01:12.569Z","products":[{"slug":"external-secrets","name":"External Secrets Operator","category":"kubernetes-container"}],"rating":{"severity":"high","score":8.7,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","attack_path":"internet_unauthenticated","user_interaction":false,"malicious":false,"vendor_ratings":[{"source":"GitHub","rating":"high"}]},"fix_available":false,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.0030499999411404133,"percentile":0.23880000412464142,"date":"2026-11-20T00:00:00Z"},"priority":10.7,"record_count":2,"vendors":["GitHub"],"details":"External Secrets Operator reads information from a third-party service and automatically injects the values as Kubernetes Secrets. A vulnerability was discovered in the BeyondTrust provider implementation for External Secrets Operator versions 0.10.1 through 0.19.2. The provider previously retrieved Kubernetes secrets directly, without validating the namespace context or the type of secret store. This allowed unauthorized cross-namespace secret access, violating security boundaries and potentially exposing sensitive credentials. In version 0.20.0, the provider code was updated to use the `resolvers.SecretKeyRef` utility, which enforces namespace validation and only allows cross-namespace access for `ClusterSecretStore` types. This ensures secrets are only retrieved from the correct namespace, mitigating the risk of unauthorized access. All users should upgrade to the latest version containing this fix. As a workaround, use a policy engine such as Kyverno or OPA to prevent using BeyondTrust provider and/or validate the `(Cluster)SecretStore` and ensure the namespace may only be set when using a `ClusterSecretStore`.","affected_stack":[{"ecosystem":"Go","package":"github.com/external-secrets/external-secrets","provider":"github-repo-advisories","source":"GHSA-vf79-2pjx-phpp","relation":"self"}],"affected_other":[{"ecosystem":"CVE","package":"external-secrets/external-secrets","versions":[">= 0.10.1, < 0.20.0"],"provider":"cvelistv5","source":"CVE-2025-62159","relation":"self"}],"product_status":[],"records":[{"provider":"cvelistv5","source_id":"CVE-2025-62159","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2025-62159","license":"CC-BY-4.0","published_at":"2025-10-10T22:23:19.071Z","modified_at":"2025-10-14T15:01:12.569Z","summary":"External Secrets Operator's BeyondTrust Provider has Insecure Secret Retrieval","details":"External Secrets Operator reads information from a third-party service and automatically injects the values as Kubernetes Secrets. A vulnerability was discovered in the BeyondTrust provider implementation for External Secrets Operator versions 0.10.1 through 0.19.2. The provider previously retrieved Kubernetes secrets directly, without validating the namespace context or the type of secret store. This allowed unauthorized cross-namespace secret access, violating security boundaries and potentially exposing sensitive credentials. In version 0.20.0, the provider code was updated to use the `resolvers.SecretKeyRef` utility, which enforces namespace validation and only allows cross-namespace access for `ClusterSecretStore` types. This ensures secrets are only retrieved from the correct namespace, mitigating the risk of unauthorized access. All users should upgrade to the latest version containing this fix. As a workaround, use a policy engine such as Kyverno or OPA to prevent using BeyondTrust provider and/or validate the `(Cluster)SecretStore` and ensure the namespace may only be set when using a `ClusterSecretStore`.","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","source":"CVE-2025-62159"}],"affected":[{"ecosystem":"CVE","package":"external-secrets/external-secrets","versions":[">= 0.10.1, < 0.20.0"],"provider":"cvelistv5","source":"CVE-2025-62159","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/external-secrets/external-secrets/security/advisories/GHSA-vf79-2pjx-phpp"}]},{"provider":"github-repo-advisories","source_id":"GHSA-vf79-2pjx-phpp","relation":"self","url":"https://github.com/external-secrets/external-secrets/security/advisories/GHSA-vf79-2pjx-phpp","license":"GitHub Terms of Service","published_at":"2025-10-10T14:32:21Z","modified_at":"2025-10-10T15:02:02Z","summary":"Insecure Secret Retrieval in BeyondTrust Provider","details":"A vulnerability was discovered in the BeyondTrust provider implementation for External Secrets Operator. The provider previously retrieved Kubernetes secrets directly, without validating the namespace context or the type of secret store. This allowed unauthorized cross-namespace secret access, violating security boundaries and potentially exposing sensitive credentials.\r\n\r\n### Impact\r\n- **Cross-namespace secret access**: Attackers or misconfigured resources could retrieve secrets from namespaces other than the one intended, unless the store was explicitly a `ClusterSecretStore`.\r\n- **privilege escalation**: Unauthorized access to secrets could lead to privilege escalation, data exfiltration, or compromise of service accounts and credentials.\r\n\r\n### Resolution\r\nThe provider code was updated to use the `resolvers.SecretKeyRef` utility, which enforces namespace validation and only allows cross-namespace access for `ClusterSecretStore` types. This ensures secrets are only retrieved from the correct namespace, mitigating the risk of unauthorized access.\r\n\r\nAll users should upgrade to the latest version containing this fix.\r\n\r\n### Workarounds\r\nUse a policy engine such as Kyverno or OPA to prevent using BeyondTrust provider and/or validate the `(Cluster)SecretStore` and ensure the namespace may only be set when using a `ClusterSecretStore`.","severity":[{"type":"GitHub","score":"high","source":"GHSA-vf79-2pjx-phpp"}],"affected":[{"ecosystem":"Go","package":"github.com/external-secrets/external-secrets","provider":"github-repo-advisories","source":"GHSA-vf79-2pjx-phpp","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://github.com/external-secrets/external-secrets/security/advisories/GHSA-vf79-2pjx-phpp"}]}],"references":[{"type":"WEB","url":"https://github.com/external-secrets/external-secrets/security/advisories/GHSA-vf79-2pjx-phpp"}],"sources":[{"provider":"cvelistv5","source_id":"CVE-2025-62159","url":"https://www.cve.org/CVERecord?id=CVE-2025-62159","license":"CC-BY-4.0","modified_at":"2025-10-14T15:01:12.569Z","relation":"self"},{"provider":"github-repo-advisories","source_id":"GHSA-vf79-2pjx-phpp","url":"https://github.com/external-secrets/external-secrets/security/advisories/GHSA-vf79-2pjx-phpp","license":"GitHub Terms of Service","modified_at":"2025-10-10T15:02:02Z","relation":"self"}]}
