Directories created via os.MkdirAll are not checked for permissions
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- —
- Confidentiality · integrity · availability
- None · Low · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| backstage | dragonfly | before 2.1.0 | 2.1.0 | Patch available | CNA |
| — | github.com/dragonflyoss/dragonfly (Go) | before 2.1.0 | 2.1.0 | Patch available | GHSA-8425-8r2f-mrv6 |
| — | d7y.io/dragonfly/v2 (Go) | before 2.1.0 | 2.1.0 | Patch available | GHSA-8425-8r2f-mrv6 |
- dragonfly Vendorbackstage Affected before 2.1.0 Fixed in 2.1.0 Patch available CNA
- github.com/dragonflyoss/dragonfly (Go) Vendor— Affected before 2.1.0 Fixed in 2.1.0 Patch available GHSA-8425-8r2f-mrv6
- d7y.io/dragonfly/v2 (Go) Vendor— Affected before 2.1.0 Fixed in 2.1.0 Patch available GHSA-8425-8r2f-mrv6
Remediation
- Fix · CNA dragonfly (dragonflyoss) Fixed in 2.1.0
- Fix · GHSA-8425-8r2f-mrv6 github.com/dragonflyoss/dragonfly (Go) Fixed in 2.1.0 Advisory →
- Fix · GHSA-8425-8r2f-mrv6 d7y.io/dragonfly/v2 (Go) Fixed in 2.1.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2025-59349
- 2026-10-03 Alias added: GHSA-8425-8r2f-mrv6
References
More backstage Dragonfly vulnerabilities
- TI-2023-12294 Dragonfly2 vulnerable to hard coded cyptographic key CVSS 3.1CRITICAL 9.8
- TI-2025-36909 Dragonfly incorrectly handles a task structure’s usedTraffic field CVSS 4.0MEDIUM 5.5
- TI-2025-36907 Dragonfly server-side request forgery vulnerability CVSS 4.0MEDIUM 5.5
- TI-2025-36908 Dragonfly Manager makes requests to external endpoints with disabled TLS authentication CVSS 4.0LOW 2.7
- TI-2026-19442 Dragonfly Manager Job API Allows Unauthenticated Access CVSS 4.0HIGH 8.9
- TI-2025-36906 Dragonfly did not enable authentication for some Manager’s endpoints CVSS 4.0HIGH 7.7
Sources
- CVE-2025-59349 · CVE Program
- CVE-2025-59349 · NVD
- FIRST EPSS
- GHSA-8425-8r2f-mrv6 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences