{"id":"CVE-2025-59346","aliases":["CVE-2025-59346","GHSA-g2rq-jv54-wcpr","GO-2025-3968"],"related":[],"kind":"vulnerability","state":"published","title":"Dragonfly server-side request forgery vulnerability","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\nThere 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.\nOne 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.\n\n```golang\nfunc (p *preheat) CreatePreheat(ctx context.Context, schedulers []models.Scheduler,\njson types.PreheatArgs) (*internaljob.GroupJobState, error) {\n[skipped]\n       url := json.URL\n[skipped]\n       // Generate download files\n       var files []internaljob.PreheatRequest\n       switch PreheatType(json.Type) {\n       case PreheatImageType:\n             // Parse image manifest url\nskipped, err := parseAccessURL(url) [skipped]\n[skipped]\ncase PreheatFileType: [skipped]\n}\n```\n\nA 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.\n\nAnother 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.\n\n### Patches\n- Dragonfy v2.1.0 and above.\n\n### Workarounds\n\nThere are no effective workarounds, beyond upgrading.\n\n### References\n\nA third party security audit was performed by Trail of Bits, you can see the [full report](https://github.com/dragonflyoss/dragonfly/blob/main/docs/security/dragonfly-comprehensive-report-2023.pdf).\n\nIf you have any questions or comments about this advisory, please email us at [dragonfly-maintainers@googlegroups.com](mailto:dragonfly-maintainers@googlegroups.com).","format":"markdown","source":"ghsa"},{"lang":"en","text":"Dragonfly vulnerable to server-side request forgery in d7y.io/dragonfly","format":"markdown","source":"go"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2025-09-17T19:20:23.153Z","modified":"2026-06-17T09:45:56.963Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS: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","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS: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","score":5.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS: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","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","score":5.3,"rating":"MEDIUM"}],"cwes":["CWE-918"],"affected":[{"ranges":[{"version":"< 2.1.0","status":"affected"}],"vendor":"dragonflyoss","product":"dragonfly","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.1.0"}],"ecosystem":"Go","package":"github.com/dragonflyoss/dragonfly","purl":"pkg:golang/github.com/dragonflyoss/dragonfly","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.1.0"}],"ecosystem":"Go","package":"d7y.io/dragonfly/v2","purl":"pkg:golang/d7y.io/dragonfly/v2","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.1.0"}],"ecosystem":"Go","package":"d7y.io/dragonfly/v2","purl":"pkg:golang/d7y.io/dragonfly/v2","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/dragonflyoss/dragonfly","purl":"pkg:golang/github.com/dragonflyoss/dragonfly","source":"go"},{"ranges":[{"status":"affected","fixed":"2.1.0"}],"vendor":"linuxfoundation","product":"dragonfly","cpe":"cpe:2.3:a:linuxfoundation:dragonfly:*:*:*:*:*:go:*:*","source":"nvd"}],"references":[{"url":"https://github.com/dragonflyoss/dragonfly/security/advisories/GHSA-g2rq-jv54-wcpr","tags":["advisory","patch","third-party-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/dragonflyoss/dragonfly/blob/main/docs/security/dragonfly-comprehensive-report-2023.pdf","tags":["product","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-59346","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/dragonflyoss/dragonfly","tags":["package"],"sources":["ghsa"]},{"url":"https://pkg.go.dev/vuln/GO-2025-3968","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2025-09-17T19:30:29.568Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-59346","url":"https://www.cve.org/CVERecord?id=CVE-2025-59346","licence":"CVE Terms of Use","modified":"2025-09-17T19:31:01.954Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-g2rq-jv54-wcpr","url":"https://github.com/advisories/GHSA-g2rq-jv54-wcpr","licence":"CC-BY-4.0","modified":"2025-09-26T16:16:15.000Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2025-3968","url":"https://pkg.go.dev/vuln/GO-2025-3968","licence":"CC-BY-4.0","modified":"2026-03-03T04:56:56.017Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-59346","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-59346","licence":"Public domain","modified":"2026-06-17T09:45:56.963Z"}],"updatedAt":"2026-11-25T22:59:04.799Z","epss":{"score":0.00436,"percentile":0.29777,"date":"2026-11-30T12:00:22.000Z"}}