Loading...
Skip to main content

CVE-2025-59352 — Vulnerability in...

MEDIUM

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

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

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. ```golang 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](https://github.com/dragonflyoss/dragonfly/blob/main/docs/security/dragonfly-comprehensive-report-2023.pdf). If you have any questions or comments about this advisory, please email us at [dragonfly-maintainers@googlegroups.com](mailto:dragonfly-maintainers@googlegroups.com).

Advisory Timeline

  • First published September 17, 2025 (390 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, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (2)

Affects 1 ecosystem: go (2).

PackageEcosystemAffectedFixed In
github.com/dragonflyoss/dragonfly
go
All versions2.1.0
d7y.io/dragonfly/v2
go
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. 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

Exploitation is straightforward and causes maximum impact. Patch immediately.

Also Known As

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

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies