{"id":"CVE-2023-40029","aliases":["CVE-2023-40029","GHSA-fwr2-64vr-xv9m","BIT-ARGO-CD-2023-40029","GO-2023-2049"],"related":[],"kind":"vulnerability","state":"published","title":"Cluster secret might leak in cluster details page in Argo CD","summary":"Argo CD is a declarative continuous deployment for Kubernetes. Argo CD Cluster secrets might be managed declaratively using Argo CD / kubectl apply. As a result, the full secret body is stored in`kubectl.kubernetes.io/last-applied-configuration` annotation. pull request #7139 introduced the ability to manage cluster labels and annotations. Since clusters are stored as secrets it also exposes the `kubectl.kubernetes.io/last-applied-configuration` annotation which includes full secret body. In order to view the cluster annotations via the Argo CD API, the user must have `clusters, get` RBAC access. **Note:** In many cases, cluster secrets do not contain any actually-secret information. But sometimes, as in bearer-token auth, the contents might be very sensitive. The bug has been patched in versions 2.8.3, 2.7.14, and 2.6.15. Users are advised to upgrade. Users unable to upgrade should update/deploy cluster secret with `server-side-apply` flag which does not use or rely on `kubectl.kubernetes.io/last-applied-configuration` annotation. Note: annotation for existing secrets will require manual removal.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Argo CD is a declarative continuous deployment for Kubernetes. Argo CD Cluster secrets might be managed declaratively using Argo CD / kubectl apply. As a result, the full secret body is stored in`kubectl.kubernetes.io/last-applied-configuration` annotation. pull request #7139 introduced the ability to manage cluster labels and annotations. Since clusters are stored as secrets it also exposes the `kubectl.kubernetes.io/last-applied-configuration` annotation which includes full secret body. In order to view the cluster annotations via the Argo CD API, the user must have `clusters, get` RBAC access. **Note:** In many cases, cluster secrets do not contain any actually-secret information. But sometimes, as in bearer-token auth, the contents might be very sensitive. The bug has been patched in versions 2.8.3, 2.7.14, and 2.6.15. Users are advised to upgrade. Users unable to upgrade should update/deploy cluster secret with `server-side-apply` flag which does not use or rely on `kubectl.kubernetes.io/last-applied-configuration` annotation. Note: annotation for existing secrets will require manual removal.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nArgo CD Cluster secrets might be managed declaratively using Argo CD / kubectl apply. As a result, the full secret body is stored in`kubectl.kubernetes.io/last-applied-configuration` annotation. \n\nhttps://github.com/argoproj/argo-cd/pull/7139 introduced the ability to manage cluster labels and annotations. Since clusters are stored as secrets it also exposes the `kubectl.kubernetes.io/last-applied-configuration` annotation which includes full secret body. In order to view the cluster annotations via the Argo CD API, the user must have `clusters, get` RBAC access.\n\n**Note:** In many cases, cluster secrets do not contain any actually-secret information. But sometimes, as in bearer-token auth, the contents might be very sensitive.\n\n### Patches\n\nThe bug has been patched in the following versions:\n\n* 2.8.3\n* 2.7.14\n* 2.6.15\n\n### Workarounds\n\nUpdate/Deploy cluster secret with `server-side-apply` flag which does not use or rely on `kubectl.kubernetes.io/last-applied-configuration` annotation. Note: annotation for existing secrets will require manual removal.\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","format":"markdown","source":"ghsa"},{"lang":"en","text":"Argo CD cluster secret might leak in cluster details page in github.com/argoproj/argo-cd","format":"markdown","source":"go"},{"lang":"es","text":"Argo CD es una implementación continua declarativa para Kubernetes. Los secretos de Argo CD Cluster se pueden administrar de forma declarativa utilizando Argo CD / kubectl apply. Como resultado, el secret body completo se almacena en la anotación `kubectl.kubernetes.io/last-applied-configuration`. La solicitud de extracción #7139 introdujo la capacidad de administrar etiquetas y anotaciones del clúster. Dado que los clústeres se almacenan como secretos, también expone la anotación `kubectl.kubernetes.io/last-applied-configuration` que incluye el secret body completo. Para ver las anotaciones del clúster a través de la API de Argo CD, el usuario debe tener acceso RBAC \"clusters, get\". **Nota:** En muchos casos, los secretos del clúster no contienen ninguna información realmente secreta. Pero a veces, como en la autenticación de token de portador, el contenido puede ser muy sensible. El error se corrigió en las versiones 2.8.3, 2.7.14 y 2.6.15. Se recomienda a los usuarios que actualicen. Los usuarios que no puedan actualizar deben actualizar/implementar el secreto del clúster con el indicador `server-side-apply` que no utiliza ni depende de la anotación `kubectl.kubernetes.io/last-applied-configuration`. Nota: la anotación de secretos existentes requerirá eliminación manual.","source":"nvd"}],"published":"2023-09-07T22:11:56.361Z","modified":"2026-06-17T06:15:50.033Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:L","score":9.9,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:L","score":9.9,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:L","score":9.9,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N","score":9.6,"rating":"CRITICAL"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"CRITICAL"}],"cwes":["CWE-200","CWE-532"],"affected":[{"ranges":[{"version":">= 2.2.0, < 2.6.15","status":"affected"},{"version":">= 2.7.0, < 2.7.14","status":"affected"},{"version":">= 2.8.0, < 2.8.3","status":"affected"}],"vendor":"argoproj","product":"argo-cd","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"2.2.0","status":"affected","fixed":"2.6.15"}],"ecosystem":"Go","package":"github.com/argoproj/argo-cd/v2","purl":"pkg:golang/github.com/argoproj/argo-cd/v2","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"2.7.0","status":"affected","fixed":"2.7.14"}],"ecosystem":"Go","package":"github.com/argoproj/argo-cd/v2","purl":"pkg:golang/github.com/argoproj/argo-cd/v2","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"2.8.0","status":"affected","fixed":"2.8.3"}],"ecosystem":"Go","package":"github.com/argoproj/argo-cd/v2","purl":"pkg:golang/github.com/argoproj/argo-cd/v2","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/argoproj/argo-cd","purl":"pkg:golang/github.com/argoproj/argo-cd","source":"go"},{"ranges":[{"type":"semver","introduced":"2.2.0","status":"affected","fixed":"2.6.15"},{"type":"semver","introduced":"2.7.0","status":"affected","fixed":"2.7.14"},{"type":"semver","introduced":"2.8.0","status":"affected","fixed":"2.8.3"}],"ecosystem":"Go","package":"github.com/argoproj/argo-cd/v2","purl":"pkg:golang/github.com/argoproj/argo-cd/v2","source":"go"},{"ranges":[{"status":"affected","introduced":"2.2.0","fixed":"2.6.15"},{"status":"affected","introduced":"2.7.0","fixed":"2.7.14"},{"status":"affected","introduced":"2.8.0","fixed":"2.8.3"}],"vendor":"argoproj","product":"argo_cd","cpe":"cpe:2.3:a:argoproj:argo_cd:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"2.2.0","status":"affected","fixed":"2.6.15"},{"type":"semver","introduced":"2.7.0","status":"affected","fixed":"2.7.14"},{"type":"semver","introduced":"2.8.0","status":"affected","fixed":"2.8.3"}],"ecosystem":"Bitnami","package":"argo-cd","purl":"pkg:bitnami/argo-cd","source":"bitnami"}],"references":[{"url":"https://github.com/argoproj/argo-cd/security/advisories/GHSA-fwr2-64vr-xv9m","tags":["advisory","exploit","vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","go","nvd","bitnami"]},{"url":"https://github.com/argoproj/argo-cd/pull/7139","tags":["fix","patch","vendor-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","go","nvd","bitnami"]},{"url":"https://github.com/argoproj/argo-cd/commit/4b2e5b06bff2ffd8ed1970654ddd8e55fc4a41c4","tags":["fix","patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","go","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-40029","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/argoproj/argo-cd/commit/44e52c4ae76e6da1343bdd54e57a822d93549f28","tags":["fix","web"],"sources":["ghsa","go"]},{"url":"https://github.com/argoproj/argo-cd/commit/7122b83fc346ec2729227405a2f9c2aa84b0bf80","tags":["fix","web"],"sources":["ghsa","go"]},{"url":"https://github.com/argoproj/argo-cd","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/argoproj/argo-cd/releases/tag/v2.6.15","tags":["web"],"sources":["ghsa","go"]},{"url":"https://github.com/argoproj/argo-cd/releases/tag/v2.7.14","tags":["web"],"sources":["ghsa","go"]},{"url":"https://github.com/argoproj/argo-cd/releases/tag/v2.8.3","tags":["web"],"sources":["ghsa","go"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2024-09-26T18:21:03.707Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-40029","url":"https://www.cve.org/CVERecord?id=CVE-2023-40029","licence":"CVE Terms of Use","modified":"2024-09-26T18:22:28.890Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-fwr2-64vr-xv9m","url":"https://github.com/advisories/GHSA-fwr2-64vr-xv9m","licence":"CC-BY-4.0","modified":"2024-08-21T14:41:49.397Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2023-2049","url":"https://pkg.go.dev/vuln/GO-2023-2049","licence":"CC-BY-4.0","modified":"2026-03-03T04:54:09.189Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-40029","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-40029","licence":"Public domain","modified":"2026-06-17T06:15:50.033Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-ARGO-CD-2023-40029","url":"https://osv.dev/vulnerability/BIT-ARGO-CD-2023-40029","licence":"Apache-2.0","modified":"2024-08-21T14:41:49.397Z"}],"updatedAt":"2026-11-25T22:58:27.755Z","epss":{"score":0.01075,"percentile":0.64522,"date":"2026-11-30T12:00:22.000Z"}}