{"id":"CVE-2023-40029","state":"PUBLISHED","title":"Cluster secret might leak in cluster details page in Argo CD","description":"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.\n\n","publishedAt":"2023-09-07T22:11:56.361Z","updatedAt":"2024-09-26T18:22:28.890Z","severity":{"score":9.9,"label":"Critical","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:L","source":"GitHub_M"},"assigner":"GitHub_M","products":["argoproj argo-cd"],"affected":[{"vendor":"argoproj","product":"argo-cd","versions":[{"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"}]}],"references":["https://github.com/argoproj/argo-cd/security/advisories/GHSA-fwr2-64vr-xv9m","https://github.com/argoproj/argo-cd/pull/7139","https://github.com/argoproj/argo-cd/commit/4b2e5b06bff2ffd8ed1970654ddd8e55fc4a41c4"],"weaknesses":["CWE-200"],"ingestedAt":"2026-10-29T20:06:17.512Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/40xxx/CVE-2023-40029.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2023-40029","state":"PUBLISHED","datePublished":"2023-09-07T22:11:56.361Z","dateUpdated":"2024-09-26T18:22:28.890Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2023-08-08T13:46:25.244Z"},"containers":{"cna":{"title":"Cluster secret might leak in cluster details page in Argo CD","descriptions":[{"lang":"en","value":"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.\n\n"}],"affected":[{"vendor":"argoproj","product":"argo-cd","versions":[{"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"}]}],"references":[{"url":"https://github.com/argoproj/argo-cd/security/advisories/GHSA-fwr2-64vr-xv9m","name":"https://github.com/argoproj/argo-cd/security/advisories/GHSA-fwr2-64vr-xv9m","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/argoproj/argo-cd/pull/7139","name":"https://github.com/argoproj/argo-cd/pull/7139","tags":["x_refsource_MISC"]},{"url":"https://github.com/argoproj/argo-cd/commit/4b2e5b06bff2ffd8ed1970654ddd8e55fc4a41c4","name":"https://github.com/argoproj/argo-cd/commit/4b2e5b06bff2ffd8ed1970654ddd8e55fc4a41c4","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"LOW","baseScore":9.9,"baseSeverity":"CRITICAL","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"CHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:L","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-200","lang":"en","description":"CWE-200: Exposure of Sensitive Information to an Unauthorized Actor","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2023-09-07T22:11:56.361Z"},"source":{"advisory":"GHSA-fwr2-64vr-xv9m","discovery":"UNKNOWN"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://github.com/argoproj/argo-cd/security/advisories/GHSA-fwr2-64vr-xv9m","name":"https://github.com/argoproj/argo-cd/security/advisories/GHSA-fwr2-64vr-xv9m","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://github.com/argoproj/argo-cd/pull/7139","name":"https://github.com/argoproj/argo-cd/pull/7139","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://github.com/argoproj/argo-cd/commit/4b2e5b06bff2ffd8ed1970654ddd8e55fc4a41c4","name":"https://github.com/argoproj/argo-cd/commit/4b2e5b06bff2ffd8ed1970654ddd8e55fc4a41c4","tags":["x_refsource_MISC","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T18:24:54.665Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-09-26T18:21:03.707832Z","id":"CVE-2023-40029","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-09-26T18:22:28.890Z"}}]}}}