What’s Vulnerable › Vulnerabilities
CVE-2025-59349: Directories created via os.MkdirAll are not checked for permissions
- Severity: low (CVSS 3.3 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.1% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2025-09-17 · updated 2026-06-17
- Weakness: CWE-732
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
- dragonflyoss dragonfly: before 2.1.0 — fixed in 2.1.0
How to fix
Upgrade to a fixed version: dragonflyoss dragonfly 2.1.0. Check the vendor advisory for mitigations.
References
- https://github.com/dragonflyoss/dragonfly/blob/main/docs/security/dragonfly-comprehensive-report-2023.pdf
- https://github.com/dragonflyoss/dragonfly/security/advisories/GHSA-8425-8r2f-mrv6
Get alerted when CVE-2025-59349 or the next vulnerability affects your stack