CVE-2025-59352 — Vulnerability in dragonflyoss/dragonfly — CVE Details
DragonFly vulnerable to arbitrary file read and write on a peer machine
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (1.22%). Schedule for your next planned update.
Does your project use an affected github.com/dragonflyoss/dragonfly version?
Paste your go.sum to check it for CVE-2025-59352 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Impact
A peer exposes the gRPC API and HTTP API for consumption by other peers. These APIs allow peers to send requests that force the recipient peer to create files in arbitrary file system locations, and to read arbitrary files. This allows peers to steal other peers’ secret data and to gain remote code execution (RCE) capabilities on the peer’s machine.
file, err := os.OpenFile(t.DataFilePath, os.O_RDWR, defaultFileMode)
if err != nil {
return 0, err
}
defer file.Close()
if _, err = file.Seek(req.Range.Start, io.SeekStart); err != nil {
return 0, err
}
n, err := io.Copy(file, io.LimitReader(req.Reader, req.Range.Length))
Patches
- Dragonfy v2.1.0 and above.
Workarounds
There are no effective workarounds, beyond upgrading.
References
A third party security audit was performed by Trail of Bits, you can see the full report.
If you have any questions or comments about this advisory, please email us at dragonfly-maintainers@googlegroups.com.
Advisory Timeline
- First published September 17, 2025 (435 days ago).
- Last revised September 26, 2025 — 9 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
go get github.com/dragonflyoss/dragonfly@v2.1.0
go get d7y.io/dragonfly/v2@v2.1.0
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (2)
Affects 1 ecosystem: Go (2).
| Package | Fixed In |
|---|---|
| github.com/dragonflyoss/dragonfly Go · Affected: All versions | 2.1.0 |
| d7y.io/dragonfly/v2 Go · Affected: All versions | 2.1.0 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-202
- CWE-22Path TraversalMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 10.0 score means for each attack dimension.
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H/E:P
References
- https://github.com/dragonflyoss/dragonfly/security/advisories/GHSA-79hx-3fp8-hj66WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-59352ADVISORY
- https://github.com/dragonflyoss/dragonflyPACKAGE
- https://github.com/dragonflyoss/dragonfly/blob/main/docs/security/dragonfly-comprehensive-report-2023.pdfWEB
- https://pkg.go.dev/vuln/GO-2025-3961WEB
Frequently Asked Questions
- What is CVE-2025-59352?
- DragonFly vulnerable to arbitrary file read and write on a peer machine. This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 10.0/10).
- How do I check if my project is affected by CVE-2025-59352?
- CVE-2025-59352 affects github.com/dragonflyoss/dragonfly and d7y.io/dragonfly/v2. It has a 1.2% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-59352 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This is an above-median EPSS score — 68.6% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.
Also Known As
Related CVEs
- CVE-2023-27584CRITICAL
Dragonfly2 has hard coded cyptographic key
- CVE-2026-24124HIGH
Dragonfly Manager Job API Unauthenticated Access
- CVE-2026-54765MEDIUM
Traefik: Gateway HTTPRoute backendRef filters can leak backend context across routes sharing a Service:port
- CVE-2026-88011MEDIUM
Traefik: ForwardAuth identity spoofing via dot-form header alias