GHSA-g88p-r42r-ppp9

Suggest an improvement
Source
https://github.com/advisories/GHSA-g88p-r42r-ppp9
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/09/GHSA-g88p-r42r-ppp9/GHSA-g88p-r42r-ppp9.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-g88p-r42r-ppp9
Aliases
Downstream
Published
2025-09-30T18:01:48Z
Modified
2025-10-06T09:42:25.925510Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
Repository Credentials Race Condition Crashes Argo CD Server
Details

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 and released in 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.

Database specific
{
    "cwe_ids": [
        "CWE-362"
    ],
    "github_reviewed": true,
    "nvd_published_at": "2025-09-30T23:15:29Z",
    "github_reviewed_at": "2025-09-30T18:01:48Z",
    "severity": "MODERATE"
}
References

Affected packages

Go

github.com/argoproj/argo-cd/v2

Package

Name
github.com/argoproj/argo-cd/v2
View open source insights on deps.dev
Purl
pkg:golang/github.com/argoproj/argo-cd/v2

Affected ranges

Type
SEMVER
Events
Introduced
2.1.0
Fixed
2.14.20

Database specific

{
    "last_known_affected_version_range": "<= 2.14.19"
}

github.com/argoproj/argo-cd/v3

Package

Name
github.com/argoproj/argo-cd/v3
View open source insights on deps.dev
Purl
pkg:golang/github.com/argoproj/argo-cd/v3

Affected ranges

Type
SEMVER
Events
Introduced
3.2.0-rc1
Fixed
3.2.0-rc2

Affected versions

3.*

3.2.0-rc1

github.com/argoproj/argo-cd/v3

Package

Name
github.com/argoproj/argo-cd/v3
View open source insights on deps.dev
Purl
pkg:golang/github.com/argoproj/argo-cd/v3

Affected ranges

Type
SEMVER
Events
Introduced
3.1.0-rc1
Fixed
3.1.8

Database specific

{
    "last_known_affected_version_range": "<= 3.1.7"
}

github.com/argoproj/argo-cd/v3

Package

Name
github.com/argoproj/argo-cd/v3
View open source insights on deps.dev
Purl
pkg:golang/github.com/argoproj/argo-cd/v3

Affected ranges

Type
SEMVER
Events
Introduced
3.0.0-rc1
Fixed
3.0.19

Database specific

{
    "last_known_affected_version_range": "<= 3.0.18"
}