{"cve":"CVE-2025-59349","nvd":{"published":"2025-09-17T20:15:37.203","modified":"2026-06-17T09:45:57.337","status":"Analyzed","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.","cvss_v4":{"vector":"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","score":2.0},"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N","score":3.3},"cwes":["CWE-732"],"references":["https://github.com/dragonflyoss/dragonfly/blob/main/docs/security/dragonfly-comprehensive-report-2023.pdf","https://github.com/dragonflyoss/dragonfly/security/advisories/GHSA-8425-8r2f-mrv6"],"products":["linuxfoundation:dragonfly"],"source":"nvd","synced_at":"2026-10-19T22:10:08.713834912+00:00"},"epss":{"cve":"CVE-2025-59349","score":0.00116,"percentile":0.01593,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-8425-8r2f-mrv6","url":"https://osv.dev/vulnerability/GHSA-8425-8r2f-mrv6","summary":"Dragonfly's directories created via os.MkdirAll are not checked for permissions","modified":"2025-09-26T16:17:33Z","packages":[{"ecosystem":"Go","name":"github.com/dragonflyoss/dragonfly","purl":"pkg:golang/github.com/dragonflyoss/dragonfly","ranges":["<2.1.0"],"fixed":["2.1.0"]},{"ecosystem":"Go","name":"d7y.io/dragonfly/v2","purl":"pkg:golang/d7y.io/dragonfly/v2","ranges":["<2.1.0"],"fixed":["2.1.0"]}]},{"id":"GO-2025-3964","url":"https://osv.dev/vulnerability/GO-2025-3964","summary":"Dragonfly's directories created via os.MkdirAll are not checked for permissions in d7y.io/dragonfly","modified":"2026-03-03T04:56:55.276269Z","packages":[{"ecosystem":"Go","name":"d7y.io/dragonfly/v2","purl":"pkg:golang/d7y.io/dragonfly/v2","ranges":["<2.1.0"],"fixed":["2.1.0"]},{"ecosystem":"Go","name":"github.com/dragonflyoss/dragonfly","purl":"pkg:golang/github.com/dragonflyoss/dragonfly","ranges":["all versions"],"fixed":[]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}