Loading...
Skip to main content

CVE-2023-40029 — Argo CD cluster secret might leak in...

CRITICAL

Argo CD cluster secret might leak in cluster details page

Published September 11, 2023Updated August 21, 2024Source: osv

Summary

### Impact 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. 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](https://github.com/argoproj/argo-cd/issues) or [discussions](https://github.com/argoproj/argo-cd/discussions) * Join us on [Slack](https://argoproj.github.io/community/join-slack) in channel #argo-cd

Advisory Timeline

  • First published September 11, 2023 (1127 days ago).
  • Last revised August 21, 2024 — 345 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Go
Update github.com/argoproj/argo-cd/v2 to 2.8.3 or later
go get github.com/argoproj/argo-cd/v2@v2.8.3
Go
Update github.com/argoproj/argo-cd/v2 to 2.6.15 or later
go get github.com/argoproj/argo-cd/v2@v2.6.15
Go
Update github.com/argoproj/argo-cd/v2 to 2.7.14 or later
go get github.com/argoproj/argo-cd/v2@v2.7.14

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (3)

Affects 1 ecosystem: go (1).

PackageEcosystemAffectedFixed In
github.com/argoproj/argo-cd/v2
go
All versions2.8.3
github.com/argoproj/argo-cd/v2
go
All versions2.6.15
github.com/argoproj/argo-cd/v2
go
All versions2.7.14

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.9 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
Low

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:L

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. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2023-40029 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.9

Exploitation is straightforward and causes maximum impact. Patch immediately.

Also Known As

GHSA-fwr2-64vr-xv9m
BIT-argo-cd-2023-40029
GO-2023-2049

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies