Vulnerability · Published Sep 17, 2025 · Assigned by GitHub_M
CVE-2025-59348Dragonfly incorrectly handles a task structure’s usedTraffic field
Medium 5.5
In plain English
A medium-severity security flaw in dragonfly from dragonflyoss. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 30% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
Dragonfly is an open source P2P-based file distribution and image acceleration system. Prior to 2.1.0, the processPieceFromSource method does not update the structure’s usedTraffic field, because an uninitialized variable n is used as a guard to the AddTraffic method call, instead of the result.Size variable. A task is processed by a peer. The usedTraffic metadata is not updated during the processing. Rate limiting is incorrectly applied, leading to a denial-of-service condition for the peer. This vulnerability is fixed in 2.1.0.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | d7y.io/dragonfly/v2 | 2.1.0 | GHSA-2qgr-gfvj-qpcr |
| Go | d7y.io/dragonfly/v2 | 2.1.0 | GO-2025-3963 |
| Go | github.com/dragonflyoss/dragonfly | 2.1.0 | GHSA-2qgr-gfvj-qpcr |
| Go | github.com/dragonflyoss/dragonfly | no fix listed | GO-2025-3963 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| dragonflyoss | dragonfly | < 2.1.0 |
Weakness: CWE-457 · Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P