Low severityNVD Advisory· Published Sep 17, 2025· Updated Sep 18, 2025
Directories created via os.MkdirAll are not checked for permissions
CVE-2025-59349
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
github.com/dragonflyoss/dragonflyGo | < 2.1.0 | 2.1.0 |
d7y.io/dragonfly/v2Go | < 2.1.0 | 2.1.0 |
Affected products
6- ghsa-coords5 versionspkg:golang/d7y.io/dragonfly/v2pkg:golang/github.com/dragonflyoss/dragonflypkg:rpm/opensuse/govulncheck-vulndb&distro=openSUSE%20Leap%2015.6pkg:rpm/opensuse/govulncheck-vulndb&distro=openSUSE%20Tumbleweedpkg:rpm/suse/govulncheck-vulndb&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Package%20Hub%2015%20SP6
< 2.1.0+ 4 more
- (no CPE)range: < 2.1.0
- (no CPE)range: < 2.1.0
- (no CPE)range: < 0.0.20251023T162509-150000.1.110.1
- (no CPE)range: < 0.0.20250924T192141-1.1
- (no CPE)range: < 0.0.20251023T162509-150000.1.110.1
- Range: < 2.1.0
Patches
Vulnerability mechanics
References
5- github.com/advisories/GHSA-8425-8r2f-mrv6ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2025-59349ghsaADVISORY
- github.com/dragonflyoss/dragonfly/blob/main/docs/security/dragonfly-comprehensive-report-2023.pdfghsax_refsource_MISCWEB
- github.com/dragonflyoss/dragonfly/security/advisories/GHSA-8425-8r2f-mrv6ghsax_refsource_CONFIRMWEB
- pkg.go.dev/vuln/GO-2025-3964ghsaWEB
News mentions
0No linked articles in our index yet.