github.com/dragonflyoss/dragonfly
Affected
- introduced
0, fixed2.1.0(semver)
Fixed versions
2.1.0
Fix
- Fixed version
2.1.0go get github.com/dragonflyoss/[email protected]
Advisory
Also known as: CVE-2025-59352, GO-2025-3971
DragonFly vulnerable to arbitrary file read and write on a peer machine
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
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 [[email protected]](mailto:[email protected]).
Medium Basis: The source's own band: MODERATE
0, fixed 2.1.0 (semver)2.1.0
2.1.0go get github.com/dragonflyoss/[email protected]0, fixed 2.1.0 (semver)2.1.0
2.1.0go get d7y.io/dragonfly/[email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0