CVE-2025-55191: Github.com/argoproj/argo cd/v2 Repository Credentials Race Condition Crashes Vulnerability

MODERATE
Advisory Identifier: GHSA-g88p-r42r-ppp9
CVSS 6.5
CWE-362
Published
Advisory Summary

CVE-2025-55191 is a MODERATE (CVSS 6.5) repository credentials race condition crashes vulnerability (CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')) affecting Github.com/argoproj/argo cd/v2 libraries in the Go ecosystem. The issue involves repository credentials race condition crashes argo cd server. Remediation is available by upgrading affected packages to version 2.14.20, 3.2.0-rc2, 3.1.8, 3.0.19.

CVE-2025-55191 at a Glance

CVE Identifier CVE-2025-55191
GHSA Identifier GHSA-g88p-r42r-ppp9
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')
Affected Product Github.com/argoproj/argo cd/v2
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 6.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix CVE-2025-55191

To remediate this vulnerability, upgrade all affected Github.com/argoproj/argo cd/v2 dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/argoproj/argo-cd/v2 fixed: 2.14.20
Upgrade github.com/argoproj/argo-cd/v2 to 2.14.20
github.com/argoproj/argo-cd/v3 fixed: 3.2.0-rc2
Upgrade github.com/argoproj/argo-cd/v3 to 3.2.0-rc2
github.com/argoproj/argo-cd/v3 fixed: 3.1.8
Upgrade github.com/argoproj/argo-cd/v3 to 3.1.8
github.com/argoproj/argo-cd/v3 fixed: 3.0.19
Upgrade github.com/argoproj/argo-cd/v3 to 3.0.19
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/argoproj/argo-cd/v2

How to Check if You Are Affected

To determine whether your application is affected by CVE-2025-55191, inspect your project dependencies for Github.com/argoproj/argo cd/v2:

inspect dependencies for github.com/argoproj/argo-cd/v2

Analyze the terminal output to locate any version of Github.com/argoproj/argo cd/v2 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.14.20), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition'), where the product contains a concurrent code sequence that requires temporary, exclusive access to a shared resource, but a timing window exists in which the shared resource can be modified by another code sequence operating concurrently. In Github.com/argoproj/argo cd/v2, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Summary A race condition in the repository credentials handler can cause the Argo CD server to panic and crash when concurrent operations are performed on the same repository URL. ### Details The vulnerability is located in numerous repository related handlers in the `util/db/repository_secrets.go` file. For example, in the `secretToRepoCred` function. The issue manifests as a concurrent map access panic: ``` concurrent map read and map write ... goroutine 1104 [running]: github.com/argoproj/argo-cd/v2/util/db.(*secretsRepositoryBackend).secretToRepoCred(0xc000e50ea8?, 0xc000c65540) /go/src/github.com/argoproj/argo-cd/util/db/repository_secrets.go:404 +0x31e ``` The race condition occurs due to: 1. Concurrent repository credential operations (create/update/delete) accessing the same map 2. Kubernetes informer re-syncs happening simultaneously 3. Background watchers updating the same secret data 4. No mutex protection for map access A valid API token with `repositories` resource permissions (`create`, `update`, or `delete` actions) is required to trigger the race condition. ### Impact This vulnerability causes the entire Argo CD server to crash and become unavailable. Attackers can repeatedly and continuously trigger the race condition to maintain a denial-of-service state, disrupting all GitOps operations. Default ArgoCD configuration is vulnerable. The affected code was originally introduced in [PR #6103](https://github.com/argoproj/argo-cd/pull/6103) and released in [v2.1.0](https://github.com/argoproj/argo-cd/releases/tag/v2.1.0). This data race was addressed by deep-copying the `Secret` objects before reading/writing. ### Credits This vulnerability was found, reported and fixed by: @thevilledev The Argo team would like to thank him for his responsible disclosure and constructive communications during the resolve of this issue.

CVE-2025-55191 Affected Github.com/argoproj/argo cd/v2 Versions

4 component(s)
Fixed Versions:
2.14.203.2.0-rc23.1.83.0.19
Product / Package Ecosystem Affected Versions Fixed Version
github.com/argoproj/argo-cd/v2
Go
≥ 2.1.0
< 2.14.20
2.14.20
github.com/argoproj/argo-cd/v3
Go
≥ 3.2.0-rc1
< 3.2.0-rc2
All 1 versions
3.2.0-rc1
3.2.0-rc2
github.com/argoproj/argo-cd/v3
Go
≥ 3.1.0-rc1
< 3.1.8
3.1.8
github.com/argoproj/argo-cd/v3
Go
≥ 3.0.0-rc1
< 3.0.19
3.0.19

References

Frequently Asked Questions

What is CVE-2025-55191?
CVE-2025-55191 is a security vulnerability in Github.com/argoproj/argo cd/v2 involving Repository Credentials Race Condition Crashes Argo CD Server under CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition').
Which Github.com/argoproj/argo cd/v2 versions are affected?
Affected versions include releases prior to 2.14.20, 3.2.0-rc2, 3.1.8, 3.0.19 across affected packages: github.com/argoproj/argo-cd/v2, github.com/argoproj/argo-cd/v3.
What version fixes CVE-2025-55191?
Upgrading to 2.14.20, 3.2.0-rc2, 3.1.8, 3.0.19 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/argoproj/argo-cd/v2 affected?
Yes, github.com/argoproj/argo-cd/v2 is affected in releases prior to 2.14.20. Upgrade your dependency to 2.14.20 or later.
Is github.com/argoproj/argo-cd/v3 affected?
Yes, github.com/argoproj/argo-cd/v3 is affected in releases prior to 3.2.0-rc2, 3.1.8, 3.0.19. Upgrade your dependency to 3.2.0-rc2, 3.1.8, 3.0.19 or later.
What is the CVSS score of CVE-2025-55191?
CVE-2025-55191 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2025-55191?
CVE-2025-55191 is classified under CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition') (The product contains a concurrent code sequence that requires temporary, exclusive access to a shared resource, but a timing window exists in which the shared resource can be modified by another code sequence operating concurrently.).
How can I check Go dependencies for CVE-2025-55191?
Run the dependency tree command: 'inspect dependencies for github.com/argoproj/argo-cd/v2'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-g88p-r42r-ppp9",
  "modified" : "2025-10-23T20:20:45Z",
  "published" : "2025-09-30T18:01:48Z",
  "aliases" : [ "CVE-2025-55191" ],
  "summary" : "Repository Credentials Race Condition Crashes Argo CD Server",
  "details" : "### Summary\n\nA race condition in the repository credentials handler can cause the Argo CD server to panic and crash when concurrent operations are performed on the same repository URL.\n\n### Details\nThe vulnerability is located in numerous repository related handlers in the `util/db/repository_secrets.go` file. For example, in the `secretToRepoCred` function. The issue manifests as a concurrent map access panic:\n\n```\nconcurrent map read and map write\n...\ngoroutine 1104 [running]:\ngithub.com/argoproj/argo-cd/v2/util/db.(*secretsRepositoryBackend).secretToRepoCred(0xc000e50ea8?, 0xc000c65540)\n        /go/src/github.com/argoproj/argo-cd/util/db/repository_secrets.go:404 +0x31e\n```\n\nThe race condition occurs due to:\n1. Concurrent repository credential operations (create/update/delete) accessing the same map\n2. Kubernetes informer re-syncs happening simultaneously\n3. Background watchers updating the same secret data\n4. No mutex protection for map access\n\nA valid API token with `repositories` resource permissions (`create`, `update`, or `delete` actions) is required to trigger the race condition.\n\n### Impact\n\nThis vulnerability causes the entire Argo CD server to crash and become unavailable. Attackers can repeatedly and continuously trigger the race condition to maintain a denial-of-service state, disrupting all GitOps operations. Default ArgoCD configuration is vulnerable.\n\nThe affected code was originally introduced in [PR #6103](https://github.com/argoproj/argo-cd/pull/6103) and released in [v2.1.0](https://github.com/argoproj/argo-cd/releases/tag/v2.1.0).\n\nThis data race was addressed by deep-copying the `Secret` objects before reading/writing.\n\n### Credits\n\nThis vulnerability was found, reported and fixed by:\n\n@thevilledev\n\nThe Argo team would like to thank him for his responsible disclosure and constructive communications during the resolve of this issue.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/argoproj/argo-cd/v2"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.1.0"
      }, {
        "fixed" : "2.14.20"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 2.14.19"
    }
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/argoproj/argo-cd/v3"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.2.0-rc1"
      }, {
        "fixed" : "3.2.0-rc2"
      } ]
    } ],
    "versions" : [ "3.2.0-rc1" ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/argoproj/argo-cd/v3"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.1.0-rc1"
      }, {
        "fixed" : "3.1.8"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 3.1.7"
    }
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/argoproj/argo-cd/v3"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.0-rc1"
      }, {
        "fixed" : "3.0.19"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 3.0.18"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/argoproj/argo-cd/security/advisories/GHSA-g88p-r42r-ppp9"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-55191"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/argoproj/argo-cd/pull/6103"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/argoproj/argo-cd/commit/701bc50d01c752cad96185f848088d287a97c7b7"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/argoproj/argo-cd"
  }, {
    "type" : "WEB",
    "url" : "https://pkg.go.dev/vuln/GO-2025-3994"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-362" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-09-30T18:01:48Z",
    "nvd_published_at" : "2025-09-30T23:15:29Z"
  }
}