Vulnerability · Published Sep 17, 2025 · Assigned by GitHub_M

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

Low 2.0

In plain English

A low-severity incorrect permission assignment in dragonfly from dragonflyoss. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.1% (higher than 2% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)2.0Low
Exploit odds (30 days)0.1%top 98.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
God7y.io/dragonfly/v22.1.0GHSA-8425-8r2f-mrv6
God7y.io/dragonfly/v22.1.0GO-2025-3964
Gogithub.com/dragonflyoss/dragonfly2.1.0GHSA-8425-8r2f-mrv6
Gogithub.com/dragonflyoss/dragonflyno fix listedGO-2025-3964

Affected products (as reported)

VendorProductVersions
dragonflyoss dragonfly < 2.1.0

Weakness: CWE-732 · Vector: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:P

References