Skip to content

CVE-2025-59349 Directories created via os.MkdirAll are not checked for permissions

LowCVSS 2.0 EPSS 0.12%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial

Description

Dragonfly is an open source P2P-based file distribution and image acceleration system. Prior to 2.1.0, DragonFly2 uses the os.MkdirAll function to create certain directory paths with specific access permissions. This function does not perform any permission checks when a given directory path already exists. This allows a local attacker to create a directory to be used later by DragonFly2 with broad permissions before DragonFly2 does so, potentially allowing the attacker to tamper with the files. This vulnerability is fixed in 2.1.0.

Upgrade path

4 packages: 2 fixed, 1 partially fixed.

PackageAffectedFixed inStatus
dragonflyoss dragonfly(Go) < 2.1.0; All versions 2.1.0 Partially fixed
d7y.io/dragonfly/v2(Go) < 2.1.0 2.1.0 Fixed
linuxfoundation dragonfly < 2.1.0 2.1.0 Fixed
dragonflyoss dragonfly = < 2.1.0 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
dragonflyoss dragonfly(Go) < 2.1.0 2.1.0
d7y.io/dragonfly/v2(Go) < 2.1.0 2.1.0
dragonflyoss dragonfly(Go) All versions No fix listed
dragonflyoss dragonfly = < 2.1.0 No fix listed
linuxfoundation dragonfly < 2.1.0 2.1.0

References