CVE-2025-59346
JSON

5.5medium

Dragonfly server-side request forgery vulnerability

Severity
5.5medium CVSS:4.0 by GitHub_M
Exploit likelihood
0.44% (higher than 30% of CVEs)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-g2rq-jv54-wcprGO-2025-3968

Description

Dragonfly is an open source P2P-based file distribution and image acceleration system. Versions prior to 2.1.0 contain a server-side request forgery (SSRF) vulnerability that enables users to force DragonFly2’s components to make requests to internal services that are otherwise not accessible to them. The issue arises because the Manager API accepts a user-supplied URL when creating a Preheat job with weak validation, peers can trigger other peers to fetch an arbitrary URL through pieceManager.DownloadSource, and internal HTTP clients follow redirects, allowing a request to a malicious server to be redirected to internal services. This can be used to probe or access internal HTTP endpoints. The vulnerability is fixed in version 2.1.0.

Affected

Product or packageVersionsReported by
dragonflyoss dragonfly< 2.1.0CVE List
github.com/dragonflyoss/dragonfly (Go)before 2.1.0, all versionsGitHub Advisory Database, Go Vulnerability Database
d7y.io/dragonfly/v2 (Go)before 2.1.0GitHub Advisory Database, Go Vulnerability Database
linuxfoundation dragonflybefore 2.1.0NVD

All scores

GitHub_M5.5medium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:L/SI:N/SA:N/E:P
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:P
NVD5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Classification

CWE-918

SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.

What each source says

CVE List

Dragonfly is an open source P2P-based file distribution and image acceleration system. Versions prior to 2.1.0 contain a server-side request forgery (SSRF) vulnerability that enables users to force DragonFly2’s components to make requests to internal services that are otherwise not accessible to them. The issue arises because the Manager API accepts a user-supplied URL when creating a Preheat job with weak validation, peers can trigger other peers to fetch an arbitrary URL through pieceManager.DownloadSource, and internal HTTP clients follow redirects, allowing a request to a malicious server to be redirected to internal services. This can be used to probe or access internal HTTP endpoints. The vulnerability is fixed in version 2.1.0.

GitHub Advisory Database
Impact

There are multiple server-side request forgery (SSRF) vulnerabilities in the DragonFly2 system. The vulnerabilities enable users to force DragonFly2’s components to make requests to internal services, which otherwise are not accessible to the users. One SSRF attack vector is exposed by the Manager’s API. The API allows users to create jobs. When creating a Preheat type of a job, users provide a URL that the Manager connects to (see figures 2.1–2.3). The URL is weakly validated, and so users can trick the Manager into sending HTTP requests to services that are in the Manager’s local network.

func (p *preheat) CreatePreheat(ctx context.Context, schedulers []models.Scheduler,
json types.PreheatArgs) (*internaljob.GroupJobState, error) {
[skipped]
       url := json.URL
[skipped]
       // Generate download files
       var files []internaljob.PreheatRequest
       switch PreheatType(json.Type) {
       case PreheatImageType:
             // Parse image manifest url
skipped, err := parseAccessURL(url) [skipped]
[skipped]
case PreheatFileType: [skipped]
}

A second attack vector is in peer-to-peer communication. A peer can ask another peer to make a request to an arbitrary URL by triggering the pieceManager.DownloadSource method (figure 2.4), which calls the httpSourceClient.GetMetadata method, which performs the request.

Another attack vector is due to the fact that HTTP clients used by the DragonFly2’s components do not disable support for HTTP redirects. This configuration means that an HTTP request sent to a malicious server may be redirected by the server to a component’s internal service.

Patches
  • Dragonfy v2.1.0 and above.
Workarounds

There are no effective workarounds, beyond upgrading.

References

A third party security audit was performed by Trail of Bits, you can see the full report.

If you have any questions or comments about this advisory, please email us at dragonfly-maintainers@googlegroups.com.

Go Vulnerability Database

Dragonfly vulnerable to server-side request forgery in d7y.io/dragonfly

NVD (es)

Dragonfly es un sistema de distribución de archivos basado en P2P de código abierto y aceleración de imágenes. Las versiones anteriores a la 2.1.0 contienen una vulnerabilidad de falsificación de petición del lado del servidor (SSRF) que permite a los usuarios forzar a los componentes de DragonFly2 a realizar peticiones a servicios internos que de otro modo no les son accesibles. El problema surge porque la API del Manager acepta una URL proporcionada por el usuario al crear un trabajo de Preheat con una validación débil, los pares pueden activar a otros pares para que obtengan una URL arbitraria a través de pieceManager.DownloadSource, y los clientes HTTP internos siguen las redirecciones, lo que permite que una petición a un servidor malicioso sea redirigida a servicios internos. Esto puede utilizarse para sondear o acceder a endpoints HTTP internos. La vulnerabilidad se corrige en la versión 2.1.0.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-59346 changed 2025-09-17CVE Terms of Use
GitHub Advisory DatabaseGHSA-g2rq-jv54-wcpr changed 2025-09-26CC-BY-4.0
Go Vulnerability DatabaseGO-2025-3968 changed 2026-03-03CC-BY-4.0
NVDCVE-2025-59346 changed 2026-06-17Public domain