CVE-2025-59349
LOW 2.0CVSS 4.0Dragonfly's directories created via os.MkdirAll are not checked for permissions
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.
- Published
- 17 Sep 2025
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-276CWE-732
- Also known as
- GHSA-8425-8r2f-mrv6GO-2025-3964
- Sources
- NVDJSONOSV GHSA-8425-8r2f-mrv6JSONOSV GO-2025-3964JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | LOW 2.0 | 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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | 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 | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | LOW 3.3 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | linuxfoundation | dragonflycpe:2.3:a:linuxfoundation:dragonfly:*:*:*:*:*:go:*:* |
< 2.1.0 | 2.1.0 |
| OSV | Go | github.com/dragonflyoss/dragonfly | < 2.1.0 | 2.1.0 |
| OSV | Go | d7y.io/dragonfly/v2 | < 2.1.0 | 2.1.0 |
| OSV | Go | github.com/dragonflyoss/dragonfly | all versions |
References
- https://github.com/dragonflyoss/dragonfly/blob/main/docs/security/dragonfly-comprehensive-report-2023.pdf · Product, WEB
- https://github.com/dragonflyoss/dragonfly/security/advisories/GHSA-8425-8r2f-mrv6 · Patch, Third Party Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2025-59349 · ADVISORY
- https://github.com/dragonflyoss/dragonfly · PACKAGE
- https://pkg.go.dev/vuln/GO-2025-3964 · WEB
History
- 25 Nov 2026 20:59 UTC · NVD: first stored (published 17 Sep 2025)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 24 Sep 2025)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 17 Sep 2025)