{"id":"GHSA-hr74-g9pw-j38m","aliases":[],"summary":"ApplicationSet cluster generator exposes cluster credentials through the last-applied-configuration annotation","published_at":"2026-11-20T03:59:51Z","modified_at":"2026-11-20T03:59:51Z","products":[{"slug":"argo-cd","name":"Argo CD","category":"gitops-cicd"}],"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":9.7,"record_count":1,"vendors":["GitHub"],"details":"### Impact\n\nThe ApplicationSet cluster generator passes the annotations of each cluster Secret to the template as parameters. That included `kubectl.kubernetes.io/last-applied-configuration`, which `kubectl apply` (and Argo CD's default client-side apply) adds to an object and which holds the full applied manifest, including the Secret's `config` with the cluster's credentials. A user who can create or update an ApplicationSet could copy that annotation into a generated Application, for example into `spec.info`, and read the credentials of every cluster registered in Argo CD.\n\nAll versions from v2.4.0 onward are affected, up to the patched versions below. The cluster generator has exposed annotations since ApplicationSets were merged into Argo CD in [c77cf66aa](https://github.com/argoproj/argo-cd/commit/c77cf66aa1f7298216c91e9592f21bc5d924141c) ([#8864](https://github.com/argoproj/argo-cd/pull/8864)).\n\nOnly cluster Secrets created or updated with client-side `kubectl apply` carry the annotation; clusters added with `argocd cluster add` or through the API don't. The attacker needs permission to create or update ApplicationSets, for example through the ApplicationSet API or ApplicationSets in any namespace, and to read the generated Applications.\n\n### Patches\n\nA patch for this vulnerability has been released in the following Argo CD versions:\n\n* v3.6.0\n* v3.5.7\n* v3.4.13\n* v3.3.19\n\nThe cluster generator no longer exposes `kubectl.kubernetes.io/last-applied-configuration` or Argo CD's own state annotations as parameters.\n\n### Workarounds\n\n* Remove the annotation from existing [cluster Secrets](https://argo-cd.readthedocs.io/en/stable/operator-manual/declarative-setup/#clusters) with `kubectl annotate secret <name> -n argocd kubectl.kubernetes.io/last-applied-configuration-`, and manage them with [server-side apply](https://argo-cd.readthedocs.io/en/stable/user-guide/sync-options/#server-side-apply), which doesn't add it.\n* Limit ApplicationSet create and update permissions to Argo CD admins using [RBAC](https://argo-cd.readthedocs.io/en/stable/operator-manual/rbac/).\n\n### Credits\n\nThis issue was found by the Argo CD team. Thanks to @gdsoumya for the fix.\n\n### References\n\n* Fix: [bc7becfbf](https://github.com/argoproj/argo-cd/commit/bc7becfbfdf0e8c166d9de826eb956751c0a717c) ([#30448](https://github.com/argoproj/argo-cd/pull/30448))\n* Introducing commit: [c77cf66aa](https://github.com/argoproj/argo-cd/commit/c77cf66aa1f7298216c91e9592f21bc5d924141c) ([#8864](https://github.com/argoproj/argo-cd/pull/8864)), first released in v2.4.0\n\n### For more information\n\n* Open an issue in [the Argo CD issue tracker](https://github.com/argoproj/argo-cd/issues) or [discussions](https://github.com/argoproj/argo-cd/discussions)\n* Join us on [Slack](https://argoproj.github.io/community/join-slack) in channel #argo-cd","affected_stack":[{"ecosystem":"Go","package":"github.com/argoproj/argo-cd/v2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.4.0"}]}],"provider":"github-repo-advisories","source":"GHSA-hr74-g9pw-j38m","relation":"self"},{"ecosystem":"Go","package":"github.com/argoproj/argo-cd/v3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.3.19 || >= 3.4.0"}]},{"type":"ECOSYSTEM","events":[{"introduced":"3.4.0"},{"fixed":"3.4.13 || >= 3.5.0"}]},{"type":"ECOSYSTEM","events":[{"introduced":"3.5.0"},{"fixed":"3.5.7 || >= 3.6.0-rc1"}]},{"type":"ECOSYSTEM","events":[{"introduced":"3.6.0"},{"fixed":"3.6.0"}]}],"fixed":["3.3.19 || >= 3.4.0","3.4.13 || >= 3.5.0","3.5.7 || >= 3.6.0-rc1","3.6.0"],"provider":"github-repo-advisories","source":"GHSA-hr74-g9pw-j38m","relation":"self"}],"affected_other":[],"product_status":[],"records":[{"provider":"github-repo-advisories","source_id":"GHSA-hr74-g9pw-j38m","relation":"self","url":"https://github.com/argoproj/argo-cd/security/advisories/GHSA-hr74-g9pw-j38m","license":"GitHub Terms of Service","published_at":"2026-11-20T03:59:51Z","modified_at":"2026-11-20T03:59:51Z","summary":"ApplicationSet cluster generator exposes cluster credentials through the last-applied-configuration annotation","details":"### Impact\n\nThe ApplicationSet cluster generator passes the annotations of each cluster Secret to the template as parameters. That included `kubectl.kubernetes.io/last-applied-configuration`, which `kubectl apply` (and Argo CD's default client-side apply) adds to an object and which holds the full applied manifest, including the Secret's `config` with the cluster's credentials. A user who can create or update an ApplicationSet could copy that annotation into a generated Application, for example into `spec.info`, and read the credentials of every cluster registered in Argo CD.\n\nAll versions from v2.4.0 onward are affected, up to the patched versions below. The cluster generator has exposed annotations since ApplicationSets were merged into Argo CD in [c77cf66aa](https://github.com/argoproj/argo-cd/commit/c77cf66aa1f7298216c91e9592f21bc5d924141c) ([#8864](https://github.com/argoproj/argo-cd/pull/8864)).\n\nOnly cluster Secrets created or updated with client-side `kubectl apply` carry the annotation; clusters added with `argocd cluster add` or through the API don't. The attacker needs permission to create or update ApplicationSets, for example through the ApplicationSet API or ApplicationSets in any namespace, and to read the generated Applications.\n\n### Patches\n\nA patch for this vulnerability has been released in the following Argo CD versions:\n\n* v3.6.0\n* v3.5.7\n* v3.4.13\n* v3.3.19\n\nThe cluster generator no longer exposes `kubectl.kubernetes.io/last-applied-configuration` or Argo CD's own state annotations as parameters.\n\n### Workarounds\n\n* Remove the annotation from existing [cluster Secrets](https://argo-cd.readthedocs.io/en/stable/operator-manual/declarative-setup/#clusters) with `kubectl annotate secret <name> -n argocd kubectl.kubernetes.io/last-applied-configuration-`, and manage them with [server-side apply](https://argo-cd.readthedocs.io/en/stable/user-guide/sync-options/#server-side-apply), which doesn't add it.\n* Limit ApplicationSet create and update permissions to Argo CD admins using [RBAC](https://argo-cd.readthedocs.io/en/stable/operator-manual/rbac/).\n\n### Credits\n\nThis issue was found by the Argo CD team. Thanks to @gdsoumya for the fix.\n\n### References\n\n* Fix: [bc7becfbf](https://github.com/argoproj/argo-cd/commit/bc7becfbfdf0e8c166d9de826eb956751c0a717c) ([#30448](https://github.com/argoproj/argo-cd/pull/30448))\n* Introducing commit: [c77cf66aa](https://github.com/argoproj/argo-cd/commit/c77cf66aa1f7298216c91e9592f21bc5d924141c) ([#8864](https://github.com/argoproj/argo-cd/pull/8864)), first released in v2.4.0\n\n### For more information\n\n* Open an issue in [the Argo CD issue tracker](https://github.com/argoproj/argo-cd/issues) or [discussions](https://github.com/argoproj/argo-cd/discussions)\n* Join us on [Slack](https://argoproj.github.io/community/join-slack) in channel #argo-cd","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-hr74-g9pw-j38m"}],"affected":[{"ecosystem":"Go","package":"github.com/argoproj/argo-cd/v2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.4.0"}]}],"provider":"github-repo-advisories","source":"GHSA-hr74-g9pw-j38m","relation":"self"},{"ecosystem":"Go","package":"github.com/argoproj/argo-cd/v3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.3.19 || >= 3.4.0"}]},{"type":"ECOSYSTEM","events":[{"introduced":"3.4.0"},{"fixed":"3.4.13 || >= 3.5.0"}]},{"type":"ECOSYSTEM","events":[{"introduced":"3.5.0"},{"fixed":"3.5.7 || >= 3.6.0-rc1"}]},{"type":"ECOSYSTEM","events":[{"introduced":"3.6.0"},{"fixed":"3.6.0"}]}],"fixed":["3.3.19 || >= 3.4.0","3.4.13 || >= 3.5.0","3.5.7 || >= 3.6.0-rc1","3.6.0"],"provider":"github-repo-advisories","source":"GHSA-hr74-g9pw-j38m","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://github.com/argoproj/argo-cd/security/advisories/GHSA-hr74-g9pw-j38m"}]}],"references":[{"type":"ADVISORY","url":"https://github.com/argoproj/argo-cd/security/advisories/GHSA-hr74-g9pw-j38m"}],"sources":[{"provider":"github-repo-advisories","source_id":"GHSA-hr74-g9pw-j38m","url":"https://github.com/argoproj/argo-cd/security/advisories/GHSA-hr74-g9pw-j38m","license":"GitHub Terms of Service","modified_at":"2026-11-20T03:59:51Z","relation":"self"}]}
