{"id":"CVE-2025-59410","aliases":["CVE-2025-59410","GHSA-mcvp-rpgg-9273","GO-2025-3974"],"related":[],"kind":"vulnerability","state":"published","title":"Dragonfly tiny file download uses hard coded HTTP protocol","summary":"Dragonfly is an open source P2P-based file distribution and image acceleration system. Prior to 2.1.0, the code in the scheduler for downloading a tiny file is hard coded to use the HTTP protocol, rather than HTTPS. This means that an attacker could perform a Man-in-the-Middle attack, changing the network request so that a different piece of data gets downloaded. This vulnerability is fixed in 2.1.0.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Dragonfly is an open source P2P-based file distribution and image acceleration system. Prior to 2.1.0, the code in the scheduler for downloading a tiny file is hard coded to use the HTTP protocol, rather than HTTPS. This means that an attacker could perform a Man-in-the-Middle attack, changing the network request so that a different piece of data gets downloaded. This vulnerability is fixed in 2.1.0.","source":"cvelist"},{"lang":"en","text":"### Impact\nThe code in the scheduler for downloading a tiny file is hard coded to use the HTTP protocol, rather than HTTPS. This means that an attacker could perform a Man-in-the-Middle attack, changing the network request so that a different piece of data gets downloaded. Due to the use of weak integrity checks (TOB-DF2-15), this modification of the data may go unnoticed.\n\n```golang\n// DownloadTinyFile downloads tiny file from peer without range.\nfunc (p *Peer) DownloadTinyFile() ([]byte, error) {\n       ctx, cancel := context.WithTimeout(context.Background(),\ndownloadTinyFileContextTimeout)\n       defer cancel()\n       // Download url:\nhttp://${host}:${port}/download/${taskIndex}/${taskID}?peerId=${peerID}\n       targetURL := url.URL{\nScheme:\n}\n\"http\",\nfmt.Sprintf(\"%s:%d\", p.Host.IP, p.Host.DownloadPort),\nfmt.Sprintf(\"download/%s/%s\", p.Task.ID[:3], p.Task.ID),\nHost:\nPath:\nRawQuery: fmt.Sprintf(\"peerId=%s\", p.ID),\n```\n\nA network-level attacker who cannot join a peer-to-peer network performs a Man-in-the-Middle attack on peers. The adversary can do this because peers (partially) communicate over plaintext HTTP protocol. The attack chains this vulnerability with the one described in TOB-DF2-15 to replace correct files with malicious ones. Unconscious peers use the malicious files.\n\n### Patches\n\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's tiny file download uses hard coded HTTP protocol in d7y.io/dragonfly","format":"markdown","source":"go"},{"lang":"es","text":"Dragonfly es un sistema de distribución de archivos y aceleración de imágenes de código abierto basado en P2P. Antes de la 2.1.0, el código en el planificador para descargar un archivo pequeño está codificado de forma rígida para usar el protocolo HTTP, en lugar de HTTPS. Esto significa que un atacante podría realizar un ataque Man-in-the-Middle, cambiando la solicitud de red para que se descargue una pieza de datos diferente. Esta vulnerabilidad está corregida en la 2.1.0.","source":"nvd"}],"published":"2025-09-17T19:58:54.083Z","modified":"2026-06-17T09:46:06.987Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/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:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:P","score":5.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N","score":3.7,"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:L/VA:N/SC:N/SI:N/SA:N/E:P","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N","score":3.7,"rating":"LOW"}],"cwes":["CWE-311"],"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-mcvp-rpgg-9273","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-59410","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/dragonflyoss/dragonfly","tags":["package"],"sources":["ghsa"]},{"url":"https://pkg.go.dev/vuln/GO-2025-3974","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2025-09-18T15:46:54.405Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-59410","url":"https://www.cve.org/CVERecord?id=CVE-2025-59410","licence":"CVE Terms of Use","modified":"2025-09-18T15:47:03.096Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-mcvp-rpgg-9273","url":"https://github.com/advisories/GHSA-mcvp-rpgg-9273","licence":"CC-BY-4.0","modified":"2025-09-26T16:20:03.000Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2025-3974","url":"https://pkg.go.dev/vuln/GO-2025-3974","licence":"CC-BY-4.0","modified":"2026-03-03T04:57:29.109Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-59410","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-59410","licence":"Public domain","modified":"2026-06-17T09:46:06.987Z"}],"updatedAt":"2026-11-25T22:59:04.803Z","epss":{"score":0.00139,"percentile":0.03521,"date":"2026-12-01T12:00:22.000Z"}}