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

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.

Check my go.sum

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

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
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, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (3)

Affects 1 ecosystem: Go (1).

PackageFixed In
github.com/argoproj/argo-cd/v2 Go · Affected: All versions2.8.3
github.com/argoproj/argo-cd/v2 Go · Affected: All versions2.6.15
github.com/argoproj/argo-cd/v2 Go · Affected: 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. 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

CVSS Score
9.9

Maximum impact if exploited, often with little effort or access required.

EPSS Score (30-day exploit probability)
1.08%
EPSS percentile: 64.5

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

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

Related CVEs

  • CVE-2024-21652
    CRITICAL

    Bypassing Brute Force Protection via Application Crash and In-Memory Data Loss

  • CVE-2025-59537
    HIGH

    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

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my go.sum