GHSA-79hx-3fp8-hj66

Suggest an improvement
Source
https://github.com/advisories/GHSA-79hx-3fp8-hj66
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/09/GHSA-79hx-3fp8-hj66/GHSA-79hx-3fp8-hj66.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-79hx-3fp8-hj66
Aliases
Published
2025-09-17T20:11:13Z
Modified
2025-09-26T16:18:51Z
Severity
  • 6.9 (Medium) CVSS_V4 - 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 CVSS Calculator
Summary
DragonFly vulnerable to arbitrary file read and write on a peer machine
Details

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.

Database specific
{
    "nvd_published_at": "2025-09-17T20:15:37Z",
    "severity": "MODERATE",
    "github_reviewed_at": "2025-09-17T20:11:13Z",
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-202",
        "CWE-22"
    ]
}
References

Affected packages

Go / github.com/dragonflyoss/dragonfly

Package

Name
github.com/dragonflyoss/dragonfly
View open source insights on deps.dev
Purl
pkg:golang/github.com/dragonflyoss/dragonfly

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.1.0

Go / d7y.io/dragonfly/v2

Package

Name
d7y.io/dragonfly/v2
View open source insights on deps.dev
Purl
pkg:golang/d7y.io/dragonfly/v2

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.1.0