# CVE-2023-40029: Cluster secret might leak in cluster details page in Argo CD

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.9
- **CVSS:** 9.9 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:L`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Changed (impact reaches other components); Confidentiality impact: High; Integrity impact: High; Availability impact: Low
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 1.07% (percentile 64, 2026-11-26)
- **CWE:** CWE-200
- **Aliases:** BIT-argo-cd-2023-40029, GHSA-fwr2-64vr-xv9m, GO-2023-2049
- **Published:** 2023-09-07T22:11:56.361Z
- **Modified:** 2026-06-17T06:15:50.033Z

## Who should check

- Projects that depend on Go package github.com/argoproj/argo-cd/v2 (\>= 2.2.0, \< 2.6.15)
- Projects that depend on Go package github.com/argoproj/argo-cd
- Anyone running argoproj argo-cd \>= 2.2.0, \< 2.6.15; \>= 2.7.0, \< 2.7.14; \>= 2.8.0, \< 2.8.3

## 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.

## Affected and fixed versions

- Go `github.com/argoproj/argo-cd/v2`: affected \>= 2.2.0, \< 2.6.15; fixed 2.6.15, 2.7.14, 2.8.3 (osv)
- Go `github.com/argoproj/argo-cd`: affected see advisory; fixed no fix listed yet (osv)
- argoproj argo-cd: \>= 2.2.0, \< 2.6.15; \>= 2.7.0, \< 2.7.14; \>= 2.8.0, \< 2.8.3 (cvelist)

## Mitigation

- Upgrade github.com/argoproj/argo-cd/v2 to one of 2.6.15, 2.7.14, 2.8.3 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-40029. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-40029.md
Affected: github.com/argoproj/argo-cd/v2 >= 2.2.0, < 2.6.15; github.com/argoproj/argo-cd
Fixed in: 2.6.15, 2.7.14, 2.8.3

Steps:
1. Search this machine and project for github.com/argoproj/argo-cd/v2 (Go), github.com/argoproj/argo-cd (Go), argoproj argo-cd: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-40029 being exploited?

There is no confirmed exploitation: CVE-2023-40029 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.07% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-40029?

Critical: CVSS 9.9 (v3.1, scored by CNA). Remote, login needed.

### Which versions are affected by CVE-2023-40029?

github.com/argoproj/argo-cd/v2 \>= 2.2.0, \< 2.6.15; github.com/argoproj/argo-cd.

### Is there a fix for CVE-2023-40029?

Yes. Fixed in 2.6.15, 2.7.14, 2.8.3. Upgrade github.com/argoproj/argo-cd/v2 to one of 2.6.15, 2.7.14, 2.8.3 (or later in the same release line).

### How do I check if I'm affected by CVE-2023-40029?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/argoproj/argo-cd/security/advisories/GHSA-fwr2-64vr-xv9m>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2023-40029>
- patch: <https://github.com/argoproj/argo-cd/pull/7139>
- patch: <https://github.com/argoproj/argo-cd/commit/4b2e5b06bff2ffd8ed1970654ddd8e55fc4a41c4>
- patch: <https://github.com/argoproj/argo-cd/commit/44e52c4ae76e6da1343bdd54e57a822d93549f28>
- patch: <https://github.com/argoproj/argo-cd/commit/7122b83fc346ec2729227405a2f9c2aa84b0bf80>
- other: <https://github.com/argoproj/argo-cd>
- other: <https://github.com/argoproj/argo-cd/releases/tag/v2.6.15>
- other: <https://github.com/argoproj/argo-cd/releases/tag/v2.7.14>
- other: <https://github.com/argoproj/argo-cd/releases/tag/v2.8.3>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-40029>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-fwr2-64vr-xv9m> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2023-2049> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2023-40029> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-40029>
