{"id":"GHSA-ghx2-3pvr-6px5","aliases":[],"summary":"ClusterSecretStore reconciler disable bypass through sourceRef.storeRef","published_at":"2026-11-10T12:38:11Z","modified_at":"2026-11-11T01:03:49Z","products":[{"slug":"external-secrets","name":"External Secrets Operator","category":"kubernetes-container"}],"rating":{"severity":"high","score":7.7,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N","attack_path":"internet_authenticated","user_interaction":false,"malicious":false},"fix_available":true,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"priority":8.7,"record_count":1,"vendors":["GitHub"],"details":"## Impact\r\n\r\nOn affected versions, a user who can create or modify an ExternalSecret can cause ESO to read from a ClusterSecretStore despite `--enable-cluster-store-reconciler=false` (Helm `processClusterStore=false`) on certain conditions.\r\nThis defeats a deployer's intended restriction on cluster-scoped store use.\r\n\r\n`PushSecret` processing also ignored this setting. A user with permission to create or modify a `PushSecret` could cause ESO to write, overwrite, or delete external secrets through a cluster store, subject to provider capabilities and the configured policies.\r\n\r\nExploitation requires an existing ClusterSecretStore that ESO can still read and use. Its namespace conditions, controller-class restrictions, and provider permissions continue to apply.\r\nFor `ExternalSecret` reads, the store must retain a `Ready=True` status from previous reconciliation, or the flood gate must be disabled. `PushSecret` processing does not use the flood gate and therefore does not require this readiness condition. Deployments whose effective RBAC already prevents ESO from reading cluster stores are protected against these\r\n paths.\r\n\r\n## Workarounds\r\n\r\nFor deployments that cannot immediately upgrade:\r\n\r\n1) If you set `--enable-cluster-store-reconciler=false`, then delete all the `ClusterSecretStore` in your k8s cluster if you can.\r\n2) If you cannot (multi-controller cases and some controller MUST have `ClusterSecretStore` and a CRD):\r\n- Remove read access to `ClusterSecretStores` for controllers who do not need access to them and restart ESO to clear any cached store objects.\r\n - Use admission policies to block cluster-store references. Cover `ExternalSecret.spec.secretStoreRef`, `spec.data[].sourceRef.storeRef`, and `spec.dataFrom[].sourceRef.storeRef`, plus `PushSecret.spec.secretStoreRefs` and `spec.dataTo[].storeRef`. Audit and migrate existing resources too: admission policies alone do not stop existing references or cleanup driven by `PushSecret` status.\r\n - Disable `PushSecret` processing if it is unnecessary. Set `--enable-push-secret-reconciler=false` or Helm `processPushSecret=false`. This addresses the push path only.\r\n\r\n Keeping the flood gate enabled is not sufficient protection because a previously working cluster store can retain Ready=True after reconciliation is disabled.\r\n\r\n## Background\r\n\r\n`ExternalSecrets` can select a store globally or override it for individual entries (through `storeRef`). The affected implementation checked the disabling flag only against the global reference, while provider-client resolution preferred per-entry references.\r\n`PushSecret` processing did not check the flag.\r\n\r\nStore readiness is separate from this configuration boundary. Disabling the cluster-store controller does not erase previously recorded readiness status, allowing an existing store to remain usable through the unchecked paths.\r\n\r\n The fixed implementation:\r\n\r\n - Checks all `ExternalSecret` store-reference locations before fetching provider data.\r\n - Checks `PushSecret` references, including label selectors, `dataTo` entries, and cluster stores recorded in `status.syncedPushSecrets`, before pushing or deleting.\r\n - Does not start the `ClusterSecretStore` controller when the flag is false.\r\n - Protects `ClusterPushSecret` operations through the same checks on its generated `PushSecrets`.\r\n\r\nAffected resources are skipped entirely, including `PushSecrets` mixing namespaced and cluster stores.\r\n**Previously synchronized secrets are not automatically removed.**\r\n`PushSecret` cleanup also stops, so remote secrets may remain and deleting resources may retain finalizers until an administrator completes migration or cleanup.","affected_stack":[{"ecosystem":"Go","package":"github.com/external-secrets/external-secrets","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.7.0"},{"fixed":"2.15.0"}]}],"fixed":["2.15.0"],"provider":"github-repo-advisories","source":"GHSA-ghx2-3pvr-6px5","relation":"self"}],"affected_other":[],"product_status":[],"records":[{"provider":"github-repo-advisories","source_id":"GHSA-ghx2-3pvr-6px5","relation":"self","url":"https://github.com/external-secrets/external-secrets/security/advisories/GHSA-ghx2-3pvr-6px5","license":"GitHub Terms of Service","published_at":"2026-11-10T12:38:11Z","modified_at":"2026-11-11T01:03:49Z","summary":"ClusterSecretStore reconciler disable bypass through sourceRef.storeRef","details":"## Impact\r\n\r\nOn affected versions, a user who can create or modify an ExternalSecret can cause ESO to read from a ClusterSecretStore despite `--enable-cluster-store-reconciler=false` (Helm `processClusterStore=false`) on certain conditions.\r\nThis defeats a deployer's intended restriction on cluster-scoped store use.\r\n\r\n`PushSecret` processing also ignored this setting. A user with permission to create or modify a `PushSecret` could cause ESO to write, overwrite, or delete external secrets through a cluster store, subject to provider capabilities and the configured policies.\r\n\r\nExploitation requires an existing ClusterSecretStore that ESO can still read and use. Its namespace conditions, controller-class restrictions, and provider permissions continue to apply.\r\nFor `ExternalSecret` reads, the store must retain a `Ready=True` status from previous reconciliation, or the flood gate must be disabled. `PushSecret` processing does not use the flood gate and therefore does not require this readiness condition. Deployments whose effective RBAC already prevents ESO from reading cluster stores are protected against these\r\n paths.\r\n\r\n## Workarounds\r\n\r\nFor deployments that cannot immediately upgrade:\r\n\r\n1) If you set `--enable-cluster-store-reconciler=false`, then delete all the `ClusterSecretStore` in your k8s cluster if you can.\r\n2) If you cannot (multi-controller cases and some controller MUST have `ClusterSecretStore` and a CRD):\r\n- Remove read access to `ClusterSecretStores` for controllers who do not need access to them and restart ESO to clear any cached store objects.\r\n - Use admission policies to block cluster-store references. Cover `ExternalSecret.spec.secretStoreRef`, `spec.data[].sourceRef.storeRef`, and `spec.dataFrom[].sourceRef.storeRef`, plus `PushSecret.spec.secretStoreRefs` and `spec.dataTo[].storeRef`. Audit and migrate existing resources too: admission policies alone do not stop existing references or cleanup driven by `PushSecret` status.\r\n - Disable `PushSecret` processing if it is unnecessary. Set `--enable-push-secret-reconciler=false` or Helm `processPushSecret=false`. This addresses the push path only.\r\n\r\n Keeping the flood gate enabled is not sufficient protection because a previously working cluster store can retain Ready=True after reconciliation is disabled.\r\n\r\n## Background\r\n\r\n`ExternalSecrets` can select a store globally or override it for individual entries (through `storeRef`). The affected implementation checked the disabling flag only against the global reference, while provider-client resolution preferred per-entry references.\r\n`PushSecret` processing did not check the flag.\r\n\r\nStore readiness is separate from this configuration boundary. Disabling the cluster-store controller does not erase previously recorded readiness status, allowing an existing store to remain usable through the unchecked paths.\r\n\r\n The fixed implementation:\r\n\r\n - Checks all `ExternalSecret` store-reference locations before fetching provider data.\r\n - Checks `PushSecret` references, including label selectors, `dataTo` entries, and cluster stores recorded in `status.syncedPushSecrets`, before pushing or deleting.\r\n - Does not start the `ClusterSecretStore` controller when the flag is false.\r\n - Protects `ClusterPushSecret` operations through the same checks on its generated `PushSecrets`.\r\n\r\nAffected resources are skipped entirely, including `PushSecrets` mixing namespaced and cluster stores.\r\n**Previously synchronized secrets are not automatically removed.**\r\n`PushSecret` cleanup also stops, so remote secrets may remain and deleting resources may retain finalizers until an administrator completes migration or cleanup.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N","source":"GHSA-ghx2-3pvr-6px5"}],"affected":[{"ecosystem":"Go","package":"github.com/external-secrets/external-secrets","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.7.0"},{"fixed":"2.15.0"}]}],"fixed":["2.15.0"],"provider":"github-repo-advisories","source":"GHSA-ghx2-3pvr-6px5","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://github.com/external-secrets/external-secrets/security/advisories/GHSA-ghx2-3pvr-6px5"}]}],"references":[{"type":"ADVISORY","url":"https://github.com/external-secrets/external-secrets/security/advisories/GHSA-ghx2-3pvr-6px5"}],"sources":[{"provider":"github-repo-advisories","source_id":"GHSA-ghx2-3pvr-6px5","url":"https://github.com/external-secrets/external-secrets/security/advisories/GHSA-ghx2-3pvr-6px5","license":"GitHub Terms of Service","modified_at":"2026-11-11T01:03:49Z","relation":"self"}]}
