{"id":"CVE-2026-109546","aliases":["GHSA-v6x5-m838-gqph"],"summary":"Privilege escalation via secretOverriding (follow-up)","published_at":"2026-10-16T09:54:01Z","modified_at":"2026-10-16T13:17:49Z","products":[{"slug":"external-secrets","name":"External Secrets Operator","category":"kubernetes-container"}],"rating":{"severity":"medium","score":4.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:N","attack_path":"internet_authenticated","user_interaction":false,"malicious":false},"fix_available":true,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"priority":5.9,"record_count":1,"vendors":["GitHub"],"details":"## In a nutshell\r\n\r\nExternalSecrets allowed users to craft Service Account tokens for misconfigured Service Accounts in namespaces the users have access to.\r\n\r\n## Impact\r\n\r\nA user who only has permission to create ExternalSecret resources can cause the operator to create a Secret that Kubernetes will automatically populate with a long-lived token for the specified service account. This effectively allows the user to impersonate any service account in the namespace without needing direct create permissions on TokenRequest or Secrets of that type.\r\n\r\nThe problem is mitigated in severity by the fact that the user must have pre-existing permissions already at almost the same level as the escalation later gives. The attacker cannot use this method to gain access to more information without other things also being misconfigured in the ESO installation.\r\n\r\n## Workarounds\r\n\r\n- Add admission control logic to prevent the use of Templates targeting undesired Types\r\n- Remove Service Account Token generation via kube-controller-manager flags\r\n- Restrict User RBAC on production clusters and sensitive namespaces\r\n\r\n## Background\r\n\r\nCVE-2026-42876's fix covered a validation before the secret's create/update.  The guard introduced in the fix can be bypassed by using a target not matching the exact string \"Annotations\", but behaving the same way (`metadata.annotations` (or `metadata.annotations.kubernetes.io/service-account.name`, or mixed-case `Metadata.Annotations`).\r\n\r\nWe are now _rejecting_ path style for secrets to prevent this from happening.","affected_stack":[{"ecosystem":"Go","package":"github.com/external-secrets/external-secrets","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.4.0"},{"fixed":"2.13.0"}]}],"fixed":["2.13.0"],"provider":"github-repo-advisories","source":"GHSA-v6x5-m838-gqph","relation":"self"}],"affected_other":[],"product_status":[],"records":[{"provider":"github-repo-advisories","source_id":"GHSA-v6x5-m838-gqph","relation":"self","url":"https://github.com/external-secrets/external-secrets/security/advisories/GHSA-v6x5-m838-gqph","license":"GitHub Terms of Service","published_at":"2026-10-16T09:54:01Z","modified_at":"2026-10-16T13:17:49Z","summary":"Privilege escalation via secretOverriding (follow-up)","details":"## In a nutshell\r\n\r\nExternalSecrets allowed users to craft Service Account tokens for misconfigured Service Accounts in namespaces the users have access to.\r\n\r\n## Impact\r\n\r\nA user who only has permission to create ExternalSecret resources can cause the operator to create a Secret that Kubernetes will automatically populate with a long-lived token for the specified service account. This effectively allows the user to impersonate any service account in the namespace without needing direct create permissions on TokenRequest or Secrets of that type.\r\n\r\nThe problem is mitigated in severity by the fact that the user must have pre-existing permissions already at almost the same level as the escalation later gives. The attacker cannot use this method to gain access to more information without other things also being misconfigured in the ESO installation.\r\n\r\n## Workarounds\r\n\r\n- Add admission control logic to prevent the use of Templates targeting undesired Types\r\n- Remove Service Account Token generation via kube-controller-manager flags\r\n- Restrict User RBAC on production clusters and sensitive namespaces\r\n\r\n## Background\r\n\r\nCVE-2026-42876's fix covered a validation before the secret's create/update.  The guard introduced in the fix can be bypassed by using a target not matching the exact string \"Annotations\", but behaving the same way (`metadata.annotations` (or `metadata.annotations.kubernetes.io/service-account.name`, or mixed-case `Metadata.Annotations`).\r\n\r\nWe are now _rejecting_ path style for secrets to prevent this from happening.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:N","source":"GHSA-v6x5-m838-gqph"}],"affected":[{"ecosystem":"Go","package":"github.com/external-secrets/external-secrets","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.4.0"},{"fixed":"2.13.0"}]}],"fixed":["2.13.0"],"provider":"github-repo-advisories","source":"GHSA-v6x5-m838-gqph","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://github.com/external-secrets/external-secrets/security/advisories/GHSA-v6x5-m838-gqph"}]}],"references":[{"type":"ADVISORY","url":"https://github.com/external-secrets/external-secrets/security/advisories/GHSA-v6x5-m838-gqph"}],"sources":[{"provider":"github-repo-advisories","source_id":"GHSA-v6x5-m838-gqph","url":"https://github.com/external-secrets/external-secrets/security/advisories/GHSA-v6x5-m838-gqph","license":"GitHub Terms of Service","modified_at":"2026-10-16T13:17:49Z","relation":"self"}]}
