{"id":"CVE-2025-59353","aliases":["CVE-2025-59353","GHSA-255v-qv84-29p5","GO-2025-3969"],"related":[],"kind":"vulnerability","state":"published","title":"Manager generates mTLS certificates for arbitrary IP addresses","summary":"Dragonfly is an open source P2P-based file distribution and image acceleration system. Prior to 2.1.0, a peer can obtain a valid TLS certificate for arbitrary IP addresses, effectively rendering the mTLS authentication useless. The issue is that the Manager’s Certificate gRPC service does not validate if the requested IP addresses “belong to” the peer requesting the certificate—that is, if the peer connects from the same IP address as the one provided in the certificate request. 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, a peer can obtain a valid TLS certificate for arbitrary IP addresses, effectively rendering the mTLS authentication useless. The issue is that the Manager’s Certificate gRPC service does not validate if the requested IP addresses “belong to” the peer requesting the certificate—that is, if the peer connects from the same IP address as the one provided in the certificate request. This vulnerability is fixed in 2.1.0.","source":"cvelist"},{"lang":"en","text":"### Impact\nA peer can obtain a valid TLS certificate for arbitrary IP addresses, effectively rendering the mTLS authentication useless. The issue is that the Manager’s Certificate gRPC service does not validate if the requested IP addresses “belong to” the peer requesting the certificate—that is, if the peer connects from the same IP address as the one provided in the certificate request.\n\n```golang\nif addr, ok := p.Addr.(*net.TCPAddr); ok {\n       ip = addr.IP.String()\n} else {\n       ip, _, err = net.SplitHostPort(p.Addr.String())\n       if err != nil {\n             return nil, err\n       }\n}\n// Parse csr.\n[skipped]\n// Check csr signature.\n// TODO check csr common name and so on.\nif err = csr.CheckSignature(); err != nil {\n       return nil, err\n}\n[skipped]\n// TODO only valid for peer ip\n// BTW we need support both of ipv4 and ipv6.\nips := csr.IPAddresses\nif len(ips) == 0 {\n       // Add default connected ip.\n       ips = []net.IP{net.ParseIP(ip)}\n}\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 manager generates mTLS certificates for arbitrary IP addresses 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, un par podía obtener un certificado TLS válido para direcciones IP arbitrarias, invalidando efectivamente la autenticación mTLS. El problema es que el servicio gRPC de Certificados del Manager no valida si las direcciones IP solicitadas “pertenecen a” el par que solicita el certificado —es decir, si el par se conecta desde la misma dirección IP que la proporcionada en la solicitud de certificado. Esta vulnerabilidad se corrigió en la 2.1.0.","source":"nvd"}],"published":"2025-09-17T19:53:36.109Z","modified":"2026-06-17T09:45:57.813Z","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:H/VA:N/SC:N/SI:N/SA:N/E:P","score":7.7,"rating":"HIGH"},"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:H/VA:N/SC:N/SI:N/SA:N/E:P","score":7.7,"rating":"HIGH"},{"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:N/I:H/A:N","score":7.5,"rating":"HIGH"}],"cwes":["CWE-295","CWE-862"],"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-255v-qv84-29p5","tags":["advisory","exploit","patch","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-59353","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/dragonflyoss/dragonfly","tags":["package"],"sources":["ghsa"]},{"url":"https://pkg.go.dev/vuln/GO-2025-3969","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2025-09-18T17:44:07.446Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-59353","url":"https://www.cve.org/CVERecord?id=CVE-2025-59353","licence":"CVE Terms of Use","modified":"2025-09-18T17:44:13.154Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-255v-qv84-29p5","url":"https://github.com/advisories/GHSA-255v-qv84-29p5","licence":"CC-BY-4.0","modified":"2025-09-26T16:19:18.000Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2025-3969","url":"https://pkg.go.dev/vuln/GO-2025-3969","licence":"CC-BY-4.0","modified":"2026-03-03T04:56:55.842Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-59353","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-59353","licence":"Public domain","modified":"2026-06-17T09:45:57.813Z"}],"updatedAt":"2026-11-25T22:59:04.802Z","epss":{"score":0.00232,"percentile":0.15129,"date":"2026-12-01T12:00:22.000Z"}}