2.0Low

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

dragonflyoss dragonfly Published: (1 year ago)

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.

Weakness (CWE): CWE-732

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
dragonflyoss dragonfly < 2.1.0
linuxfoundation dragonfly < 2.1.0

References and patches

CPE matches (NVD) (1)

  • cpe:2.3:a:linuxfoundation:dragonfly:*:*:*:*:*:go:*:* < 2.1.0