github.com/argoproj/argo-cd/v2
Affected
- introduced
2.1.0, fixed2.14.20(semver)
Fixed versions
2.14.20
Fix
- Fixed version
2.14.20go get github.com/argoproj/argo-cd/[email protected]
Advisory
Also known as: BIT-argo-cd-2025-55191, CVE-2025-55191, GO-2025-3994
Repository Credentials Race Condition Crashes Argo CD Server
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:
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.
Medium Basis: The source's own band: MODERATE
2.1.0, fixed 2.14.20 (semver)2.14.20
2.14.20go get github.com/argoproj/argo-cd/[email protected]3.2.0-rc1, fixed 3.2.0-rc2 (semver)3.2.0-rc2
3.2.0-rc2go get github.com/argoproj/argo-cd/[email protected]3.1.0-rc1, fixed 3.1.8 (semver)3.1.8
3.1.8go get github.com/argoproj/argo-cd/[email protected]3.0.0-rc1, fixed 3.0.19 (semver)3.0.19
3.0.19go get github.com/argoproj/argo-cd/[email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0