Skip to main content

Boteraser | Website and Server Security Solutions

🛡️ CVE-2025-59410 — dragonfly

🟢 CVSS 3.7 — Low ✅ No Known Exploit CWE-311 NVD
3.7
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

DragonFly's tiny file download uses hard coded HTTP protocol

Impact

The code in the scheduler for downloading a tiny file is hard coded to use the HTTP protocol, rather than HTTPS. This means that an attacker could perform a Man-in-the-Middle attack, changing the network request so that a different piece of data gets downloaded. Due to the use of weak integrity checks (TOB-DF2-15), this modification of the data may go unnoticed.

```golang

// DownloadTinyFile downloads tiny file from peer without range.

func (p *Peer) DownloadTinyFile() ([]byte, error) {

ctx, cancel := context.WithTimeout(context.Background(),

downloadTinyFileContextTimeout)

defer cancel()

// Download url:

http://${host}:${port}/download/${taskIndex}/${taskID}?peerId=${peerID}

targetURL := url.URL{

Scheme:

}

"http",

fmt.Sprintf("%s:%d", p.Host.IP, p.Host.DownloadPort),

fmt.Sprintf("download/%s/%s", p.Task.ID[:3], p.Task.ID),

Host:

Path:

RawQuery: fmt.Sprintf("peerId=%s", p.ID),

```

A network-level attacker who cannot join a peer-to-peer network performs a Man-in-the-Middle attack on peers. The adversary can do this because peers (partially) communicate over plaintext HTTP protocol. The attack chains this vulnerability with the one described in TOB-DF2-15 to replace correct files with malicious ones. Unconscious peers use the malicious files.

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 [[email protected]](mailto:[email protected]).

How this vulnerability can be exploited

This issue can be reached over the network, attack complexity is high, an attacker needs no privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality none, integrity low, availability none.

CVSS metrics in full

The score comes from this vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N

  • Attack vector: Network — reachable from anywhere that can route to the service.
  • Attack complexity: High — the attacker first has to win a race, learn a secret or otherwise prepare the target.
  • Privileges required: None — an unauthenticated stranger can try it.
  • User interaction: None — nobody has to be tricked into anything.
  • Scope: Unchanged — the damage stays inside the vulnerable component.
  • Confidentiality impact: None.
  • Integrity impact: Low — limited, and the attacker does not choose what is affected.
  • Availability impact: None.

Weakness class

CVE-2025-59410 is classified as CWE-311: Missing Encryption of Sensitive Data. Sensitive data is stored or transmitted in the clear, so anyone able to observe it can read it.

Affected software

CVE-2025-59410 is recorded against 3 packages.

  • d7y.io/dragonfly/v2
  • dragonfly (fixed in 2.1.0)
  • github.com/dragonflyoss/dragonfly

Timeline and source

Published on 24 September 2025 and last revised on 3 March 2026. No public exploit is currently recorded for this entry. A vendor advisory or fix has been published. Record sourced from NVD.

References

github.com (Advisory)
nvd.nist.gov (Advisory)
github.com (Web)

Other advisories for this package

d7y.io/dragonfly/v2 has other advisories on record. If you are patching this one, these are worth checking on the same host:

Same weakness in other software

These advisories are the same class of weakness (CWE-311: Missing Encryption of Sensitive Data) in other software:

Details

Severity Low
CVSS Score 3.7
CVSS Vector CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
CWE CWE-311
Public Exploit ✅ No
Source NVD
Published 2025-09-24
Updated 2026-08-20
Modified 2026-03-03

Affected Packages

Software From version Fixed in
d7y.io/dragonfly/v2 — —
dragonfly — 2.1.0
github.com/dragonflyoss/dragonfly — —

Similar Threats

Free Vulnerability Check

Is your site affected by CVE-2025-59410?

BotEraser helps you identify potentially vulnerable plugins and themes by checking your installation against CVE-2025-59410 and other known CVE records.

Scan My Site Free →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.

Browse related advisories

All advisoriesCVECVE 2025
✓