Skip to content
OpenAdvisories
Low · 2.0 CVE-2025-59349 EUVD-2025-29775GHSA-8425-8r2f-mrv6GO-2025-3964

Directories created via os.MkdirAll are not checked for permissions

Published Sep 17, 2025 · Updated Sep 18, 2025 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
dragonflyoss dragonfly < 2.1.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
SLES 15 SP6 govulncheck-vulndb 0.0.20251023T162509-150000.1.110.1 SUSE-SU-2025:3799-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed govulncheck-vulndb 0.0.20250924T192141-1.1 openSUSE-SU-2025:15576-1
openSUSE Leap 16.0 govulncheck-vulndb 0.0.20260723T184607-160000.1.1 openSUSE-SU-2026:21483-1
openSUSE Leap 15.6 govulncheck-vulndb 0.0.20251023T162509-150000.1.110.1 SUSE-SU-2025:3799-1

Affected packages

EcosystemPackageAffectedFixedRecord
Go d7y.io/dragonfly/v2 < 2.1.0 2.1.0 GHSA-8425-8r2f-mrv6
Go github.com/dragonflyoss/dragonfly < 2.1.0 2.1.0 GHSA-8425-8r2f-mrv6
Go github.com/dragonflyoss/dragonfly all versions — GO-2025-3964

Advisories 3

References