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

- Severity: Low 2.0 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.12%, higher than 1% of CVEs (2026-12-01)
- Published: 2025-09-17T19:41:03.632Z
- Modified: 2026-06-17T09:45:57.337Z
- Also known as: GHSA-8425-8r2f-mrv6, GO-2025-3964
- Weaknesses: CWE-276, CWE-732
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- dragonflyoss dragonfly: < 2.1.0
- github.com/dragonflyoss/dragonfly (Go): before 2.1.0; all versions
- d7y.io/dragonfly/v2 (Go): before 2.1.0
- linuxfoundation dragonfly: before 2.1.0

## Every score

- GitHub_M: CVSS:4.0 2.0 Low `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`
- GitHub: CVSS:4.0 Low `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: CVSS:3.1 3.3 Low `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N`

## References

- <https://github.com/dragonflyoss/dragonfly/security/advisories/GHSA-8425-8r2f-mrv6> (advisory, patch, third-party-advisory, web)
- <https://github.com/dragonflyoss/dragonfly/blob/main/docs/security/dragonfly-comprehensive-report-2023.pdf> (product, web)
- <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)

## Sources

- CVE List: [CVE-2025-59349](https://www.cve.org/CVERecord?id=CVE-2025-59349), CVE Terms of Use, modified 2025-09-18
- GitHub Advisory Database: [GHSA-8425-8r2f-mrv6](https://github.com/advisories/GHSA-8425-8r2f-mrv6), CC-BY-4.0, modified 2025-09-26
- Go Vulnerability Database: [GO-2025-3964](https://pkg.go.dev/vuln/GO-2025-3964), CC-BY-4.0, modified 2026-03-03
- NVD: [CVE-2025-59349](https://nvd.nist.gov/vuln/detail/CVE-2025-59349), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-59349 · Whole record: https://cve.day/CVE-2025-59349.json · Rebuilt by cve.day 2026-11-25T22:59:04.801Z
