CVE-2025-59349
published low CVSS 4.0 · 2.0Directories created via os.MkdirAll are not checked for permissions
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| dragonflyoss | — | dragonfly< 2.1.0 | Affected | Not stated | GitHub_M |
| SUSE / openSUSE | openSUSE-Tumbleweed | govulncheck-vulndbaarch64 | Advisory build | 0.0.20250924T192141-1.1 | OPENSUSE-SU-2025:15576-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | govulncheck-vulndbppc64le | Advisory build | 0.0.20250924T192141-1.1 | OPENSUSE-SU-2025:15576-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | govulncheck-vulndbs390x | Advisory build | 0.0.20250924T192141-1.1 | OPENSUSE-SU-2025:15576-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | govulncheck-vulndbx86_64 | Advisory build | 0.0.20250924T192141-1.1 | OPENSUSE-SU-2025:15576-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 2.0 / 10
- Severity
- low
- Provider
- GitHub_M · cna
- Vector string
- 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
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| dragonflyoss | dragonfly | < 2.1.0 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-732 CWE-732: Incorrect Permission Assignment for Critical Resource
References
2Provider assertions
2GitHub_M · cna
Directories created via os.MkdirAll are not checked for permissions
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- f118dfe8cffbdc5658df342eb39d7848a55ed376225c08b77ed93e17ab5b40fc
- Ingested
- 23 Sep 2026, 08:54:20 UTC
- Source record
- Official CVE record