Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/dragonflyoss/dragonfly
  4. ›
  5. CVE-2025-59352

CVE-2025-59352: DragonFly vulnerable to arbitrary file read and write on a peer machine

September 17, 2025 (updated September 18, 2025)

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))

References

  • github.com/advisories/GHSA-79hx-3fp8-hj66
  • github.com/dragonflyoss/dragonfly
  • github.com/dragonflyoss/dragonfly/blob/main/docs/security/dragonfly-comprehensive-report-2023.pdf
  • github.com/dragonflyoss/dragonfly/security/advisories/GHSA-79hx-3fp8-hj66
  • nvd.nist.gov/vuln/detail/CVE-2025-59352

Code Behaviors & Features

Detect and mitigate CVE-2025-59352 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.1.0

Fixed versions

  • 2.1.0

Solution

Upgrade to version 2.1.0 or above.

Weakness

  • CWE-202: Exposure of Sensitive Information Through Data Queries
  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

go/github.com/dragonflyoss/dragonfly/CVE-2025-59352.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Fri, 19 Sep 2025 00:21:24 +0000.