Skip to main content

CVE-2025-59352 — Vulnerability in dragonflyoss/dragonfly — CVE Details

MEDIUM

DragonFly vulnerable to arbitrary file read and write on a peer machine

Published September 17, 2025Updated September 26, 2025Source: OSV

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.

Check my go.sum

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
Update github.com/dragonflyoss/dragonfly to 2.1.0 or later
go get github.com/dragonflyoss/dragonfly@v2.1.0
Go
Update d7y.io/dragonfly/v2 to 2.1.0 or later
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).

PackageFixed In
github.com/dragonflyoss/dragonfly Go · Affected: All versions2.1.0
d7y.io/dragonfly/v2 Go · Affected: All versions2.1.0

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 10.0 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
—
Confidentiality
—
Integrity
—
Availability
—

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

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

CVSS Score
10.0

Maximum impact if exploited, often with little effort or access required.

EPSS Score (30-day exploit probability)
1.22%
EPSS percentile: 68.6

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

GHSA-79hx-3fp8-hj66
GO-2025-3971

Related CVEs

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my go.sum