CVE-2025-59352 Dragonfly allows arbitrary file read and write on a peer machine

Medium 6.9 Published Updated

Attackers can read arbitrary files and execute code on peer machines via path traversal in Dragonfly's APIs.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2025-59352?

CVE-2025-59352 is a medium-severity path traversal vulnerability in dragonflyoss dragonfly, published on 17 Sep 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Dragonfly is an open source P2P-based file distribution and image acceleration system. Prior to 2.1.0, the gRPC API and HTTP 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.This vulnerability is fixed in 2.1.0.

Weakness: CWE-22, CWE-202

Which versions are affected by CVE-2025-59352?

6 open source packages ship an affected version, including github.com/dragonflyoss/dragonfly and d7y.io/dragonfly/v2. It affects 1 product.

PackageAffectedFixed in
github.com/dragonflyoss/dragonfly GoAll versionsNone
github.com/dragonflyoss/dragonfly GoAll versions2.1.0
github.com/dragonflyoss/dragonfly GoAll versions2.1.0
d7y.io/dragonfly/v2 GoAll versions2.1.0
d7y.io/dragonfly/v2 GoAll versions2.1.0
d7y.io/dragonfly/v2 GoAll versions2.1.0

Products include Linuxfoundation Dragonfly.

How do I fix CVE-2025-59352?

Upgrade github.com/dragonflyoss/dragonfly to 2.1.0 or later.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2025-59352 being exploited?

There is no known exploitation of CVE-2025-59352 in the wild and no public exploit code.

Sources

Also known as GHSA-79hx-3fp8-hj66, GO-2025-3971.

Is CVE-2025-59352 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free