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

- Priority: **Routine**
- Reason: Not severe (CVSS 2, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-09-17 · Modified: 2025-09-18
- Aliases: GHSA-8425-8r2f-mrv6, GO-2025-3964
- Record: https://cvemate.com/vulnerability/CVE-2025-59349 · JSON: https://cvemate.com/vulnerability/CVE-2025-59349/json

## Description

```text
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.
```

## Signals

- CVSS: 3.3 low (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
- EPSS: 0.116%, percentile 1.751%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- dragonflyoss dragonfly: \< 2.1.0
- d7y.io/dragonfly v2 (Go): \< 2.1.0
- github.com/dragonflyoss dragonfly (Go): \< 2.1.0 \| All versions (No fix recorded)
- linuxfoundation dragonfly: \< 2.1.0

## References

- <https://github.com/dragonflyoss/dragonfly/security/advisories/GHSA-8425-8r2f-mrv6>
- <https://github.com/dragonflyoss/dragonfly/blob/main/docs/security/dragonfly-comprehensive-report-2023.pdf>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-59349>
- <https://github.com/dragonflyoss/dragonfly>
- <https://pkg.go.dev/vuln/GO-2025-3964>

---

Data as of 2026-12-05T04:45:27.588Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
