CVE-2023-40029 — Argo CD cluster secret might leak in...
Argo CD cluster secret might leak in cluster details page
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (1.08%). Schedule for your next planned update.
Does your project use an affected github.com/argoproj/argo-cd/v2 version?
Paste your go.sum to check it for CVE-2023-40029 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Impact
Argo CD Cluster secrets might be managed declaratively using Argo CD / kubectl apply. As a result, the full secret body is stored inkubectl.kubernetes.io/last-applied-configuration annotation.
https://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.
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.
Patches
The bug has been patched in the following versions:
- 2.8.3
- 2.7.14
- 2.6.15
Workarounds
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.
For more information
- Open an issue in the Argo CD issue tracker or discussions
- Join us on Slack in channel #argo-cd
Advisory Timeline
- First published September 11, 2023 (1172 days ago).
- Last revised August 21, 2024 — 345 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
go get github.com/argoproj/argo-cd/v2@v2.8.3
go get github.com/argoproj/argo-cd/v2@v2.6.15
go get github.com/argoproj/argo-cd/v2@v2.7.14
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (3)
Affects 1 ecosystem: Go (1).
| Package | Fixed In |
|---|---|
| github.com/argoproj/argo-cd/v2 Go · Affected: All versions | 2.8.3 |
| github.com/argoproj/argo-cd/v2 Go · Affected: All versions | 2.6.15 |
| github.com/argoproj/argo-cd/v2 Go · Affected: All versions | 2.7.14 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-200Information ExposureMITRE
- CWE-532
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.9 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:L
References
- https://github.com/argoproj/argo-cd/security/advisories/GHSA-fwr2-64vr-xv9mWEB
- https://nvd.nist.gov/vuln/detail/CVE-2023-40029ADVISORY
- https://github.com/argoproj/argo-cd/pull/7139WEB
- https://github.com/argoproj/argo-cd/commit/44e52c4ae76e6da1343bdd54e57a822d93549f28WEB
- https://github.com/argoproj/argo-cd/commit/4b2e5b06bff2ffd8ed1970654ddd8e55fc4a41c4WEB
- https://github.com/argoproj/argo-cd/commit/7122b83fc346ec2729227405a2f9c2aa84b0bf80WEB
- https://github.com/argoproj/argo-cdPACKAGE
- https://github.com/argoproj/argo-cd/releases/tag/v2.6.15WEB
- https://github.com/argoproj/argo-cd/releases/tag/v2.7.14WEB
- https://github.com/argoproj/argo-cd/releases/tag/v2.8.3WEB
Frequently Asked Questions
- What is CVE-2023-40029?
- Argo CD cluster secret might leak in cluster details page. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.9/10).
- How do I check if my project is affected by CVE-2023-40029?
- CVE-2023-40029 affects github.com/argoproj/argo-cd/v2. It has a 1.1% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2023-40029 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This is an above-median EPSS score — 64.5% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.
Also Known As
Related CVEs
- CVE-2024-21652CRITICAL
Bypassing Brute Force Protection via Application Crash and In-Memory Data Loss
- CVE-2025-59537HIGH
argo-cd vulnerable unauthenticated DoS via malformed Gogs webhook payload
- CVE-2025-23216
Argo CD does not scrub secret values from patch errors in github.com/argoproj/argo-cd
- CVE-2025-47933
Argo CD allows cross-site scripting on repositories page in github.com/argoproj/argo-cd
- CVE-2025-55190
Argo CD's Project API Token Exposes Repository Credentials in github.com/argoproj/argo-cd
- CVE-2025-59531
Unauthenticated argocd-server panic via a malicious Bitbucket-Server webhook payload in github.com/argoproj/argo-cd
- CVE-2025-55191
Repository Credentials Race Condition Crashes Argo CD Server in github.com/argoproj/argo-cd
- CVE-2025-59538
Argo CD Unauthenticated Remote DoS via malformed Azure DevOps git.push webhook in github.com/argoproj/argo-cd