CVE-2025-59346: Github.com/dragonflyoss/dragonfly Dragonfly Vulnerable To Server-side Request Vulnerability

HIGH
Advisory Identifier: GHSA-g2rq-jv54-wcpr
CWE-918
Published
Advisory Summary

CVE-2025-59346 is a HIGH dragonfly vulnerable to server-side request vulnerability (CWE-918: Server-Side Request Forgery (SSRF)) affecting Github.com/dragonflyoss/dragonfly libraries in the Go ecosystem. The issue involves dragonfly vulnerable to server-side request forgery. Remediation is available by upgrading affected packages to version 2.1.0.

CVE-2025-59346 at a Glance

CVE Identifier CVE-2025-59346
GHSA Identifier GHSA-g2rq-jv54-wcpr
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-918: Server-Side Request Forgery (SSRF)
Affected Product Github.com/dragonflyoss/dragonfly
Package Ecosystem Go
Published Date
Last Updated

How to Fix CVE-2025-59346

To remediate this vulnerability, upgrade all affected Github.com/dragonflyoss/dragonfly dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/dragonflyoss/dragonfly fixed: 2.1.0
Upgrade github.com/dragonflyoss/dragonfly to 2.1.0
d7y.io/dragonfly/v2 fixed: 2.1.0
Upgrade d7y.io/dragonfly/v2 to 2.1.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/dragonflyoss/dragonfly

How to Check if You Are Affected

To determine whether your application is affected by CVE-2025-59346, inspect your project dependencies for Github.com/dragonflyoss/dragonfly:

inspect dependencies for github.com/dragonflyoss/dragonfly

Analyze the terminal output to locate any version of Github.com/dragonflyoss/dragonfly in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.1.0), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-918: Server-Side Request Forgery (SSRF), where the web server receives a url or similar request from an upstream component and retrieves the contents of this url, but it does not sufficiently ensure that the request is being sent to the expected destination. In Github.com/dragonflyoss/dragonfly, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact There are multiple server-side request forgery (SSRF) vulnerabilities in the DragonFly2 system. The vulnerabilities enable users to force DragonFly2’s components to make requests to internal services, which otherwise are not accessible to the users. One SSRF attack vector is exposed by the Manager’s API. The API allows users to create jobs. When creating a Preheat type of a job, users provide a URL that the Manager connects to (see figures 2.1–2.3). The URL is weakly validated, and so users can trick the Manager into sending HTTP requests to services that are in the Manager’s local network. ```golang func (p *preheat) CreatePreheat(ctx context.Context, schedulers []models.Scheduler, json types.PreheatArgs) (*internaljob.GroupJobState, error) { [skipped] url := json.URL [skipped] // Generate download files var files []internaljob.PreheatRequest switch PreheatType(json.Type) { case PreheatImageType: // Parse image manifest url skipped, err := parseAccessURL(url) [skipped] [skipped] case PreheatFileType: [skipped] } ``` A second attack vector is in peer-to-peer communication. A peer can ask another peer to make a request to an arbitrary URL by triggering the pieceManager.DownloadSource method (figure 2.4), which calls the httpSourceClient.GetMetadata method, which performs the request. Another attack vector is due to the fact that HTTP clients used by the DragonFly2’s components do not disable support for HTTP redirects. This configuration means that an HTTP request sent to a malicious server may be redirected by the server to a component’s internal service. ### 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).

CVE-2025-59346 Affected Github.com/dragonflyoss/dragonfly Versions

2 component(s)
Fixed Versions:
2.1.0
Product / Package Ecosystem Affected Versions Fixed Version
github.com/dragonflyoss/dragonfly
Go
< 2.1.0
2.1.0
d7y.io/dragonfly/v2
Go
< 2.1.0
2.1.0

References

Frequently Asked Questions

What is CVE-2025-59346?
CVE-2025-59346 is a security vulnerability in Github.com/dragonflyoss/dragonfly involving Dragonfly vulnerable to server-side request forgery under CWE-918: Server-Side Request Forgery (SSRF).
Which Github.com/dragonflyoss/dragonfly versions are affected?
Affected versions include releases prior to 2.1.0 across affected packages: github.com/dragonflyoss/dragonfly, d7y.io/dragonfly/v2.
What version fixes CVE-2025-59346?
Upgrading to 2.1.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/dragonflyoss/dragonfly affected?
Yes, github.com/dragonflyoss/dragonfly is affected in releases prior to 2.1.0. Upgrade your dependency to 2.1.0 or later.
Is d7y.io/dragonfly/v2 affected?
Yes, d7y.io/dragonfly/v2 is affected in releases prior to 2.1.0. Upgrade your dependency to 2.1.0 or later.
What CWE is associated with CVE-2025-59346?
CVE-2025-59346 is classified under CWE-918: Server-Side Request Forgery (SSRF) (The web server receives a URL or similar request from an upstream component and retrieves the contents of this URL, but it does not sufficiently ensure that the request is being sent to the expected destination.).
How can I check Go dependencies for CVE-2025-59346?
Run the dependency tree command: 'inspect dependencies for github.com/dragonflyoss/dragonfly'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-g2rq-jv54-wcpr",
  "modified" : "2025-09-26T16:16:15Z",
  "published" : "2025-09-17T19:27:38Z",
  "aliases" : [ "CVE-2025-59346" ],
  "summary" : "Dragonfly vulnerable to server-side request forgery",
  "details" : "### Impact\nThere are multiple server-side request forgery (SSRF) vulnerabilities in the DragonFly2 system. The vulnerabilities enable users to force DragonFly2’s components to make requests to internal services, which otherwise are not accessible to the users.\nOne SSRF attack vector is exposed by the Manager’s API. The API allows users to create jobs. When creating a Preheat type of a job, users provide a URL that the Manager connects to (see figures 2.1–2.3). The URL is weakly validated, and so users can trick the Manager into sending HTTP requests to services that are in the Manager’s local network.\n\n```golang\nfunc (p *preheat) CreatePreheat(ctx context.Context, schedulers []models.Scheduler,\njson types.PreheatArgs) (*internaljob.GroupJobState, error) {\n[skipped]\n       url := json.URL\n[skipped]\n       // Generate download files\n       var files []internaljob.PreheatRequest\n       switch PreheatType(json.Type) {\n       case PreheatImageType:\n             // Parse image manifest url\nskipped, err := parseAccessURL(url) [skipped]\n[skipped]\ncase PreheatFileType: [skipped]\n}\n```\n\nA second attack vector is in peer-to-peer communication. A peer can ask another peer to make a request to an arbitrary URL by triggering the pieceManager.DownloadSource method (figure 2.4), which calls the httpSourceClient.GetMetadata method, which performs the request.\n\nAnother attack vector is due to the fact that HTTP clients used by the DragonFly2’s components do not disable support for HTTP redirects. This configuration means that an HTTP request sent to a malicious server may be redirected by the server to a component’s internal service.\n\n### Patches\n- Dragonfy v2.1.0 and above.\n\n### Workarounds\n\nThere are no effective workarounds, beyond upgrading.\n\n### References\n\nA 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).\n\nIf you have any questions or comments about this advisory, please email us at [dragonfly-maintainers@googlegroups.com](mailto:dragonfly-maintainers@googlegroups.com).",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:P"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/dragonflyoss/dragonfly"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.1.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "d7y.io/dragonfly/v2"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.1.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/dragonflyoss/dragonfly/security/advisories/GHSA-g2rq-jv54-wcpr"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-59346"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/dragonflyoss/dragonfly"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/dragonflyoss/dragonfly/blob/main/docs/security/dragonfly-comprehensive-report-2023.pdf"
  }, {
    "type" : "WEB",
    "url" : "https://pkg.go.dev/vuln/GO-2025-3968"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-918" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-09-17T19:27:38Z",
    "nvd_published_at" : "2025-09-17T20:15:36Z"
  }
}