GHSA-8425-8r2f-mrv6

Suggest an improvement
Source
https://github.com/advisories/GHSA-8425-8r2f-mrv6
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/09/GHSA-8425-8r2f-mrv6/GHSA-8425-8r2f-mrv6.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-8425-8r2f-mrv6
Aliases
Published
2025-09-17T19:55:25Z
Modified
2025-09-26T16:17:33Z
Severity
  • 2.0 (Low) CVSS_V4 - 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 CVSS Calculator
Summary
Dragonfly's directories created via os.MkdirAll are not checked for permissions
Details

Impact

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.

Eve has unprivileged access to the machine where Alice uses DragonFly2. Eve watches the commands executed by Alice and introduces new directories/paths with 0777 permissions before DragonFly2 does so. Eve can then delete and forge files in that directory to change the results of further commands executed by Alice.

Patches

  • Dragonfy v2.1.0 and above.

Workarounds

There are no effective workarounds, beyond upgrading.

References

A third party security audit was performed by Trail of Bits, you can see the full report.

If you have any questions or comments about this advisory, please email us at dragonfly-maintainers@googlegroups.com.

Database specific
{
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-276",
        "CWE-732"
    ],
    "github_reviewed_at": "2025-09-17T19:55:25Z",
    "nvd_published_at": "2025-09-17T20:15:37Z",
    "severity": "LOW"
}
References

Affected packages

Go / github.com/dragonflyoss/dragonfly

Package

Name
github.com/dragonflyoss/dragonfly
View open source insights on deps.dev
Purl
pkg:golang/github.com/dragonflyoss/dragonfly

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.1.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/09/GHSA-8425-8r2f-mrv6/GHSA-8425-8r2f-mrv6.json"

Go / d7y.io/dragonfly/v2

Package

Name
d7y.io/dragonfly/v2
View open source insights on deps.dev
Purl
pkg:golang/d7y.io/dragonfly/v2

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.1.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/09/GHSA-8425-8r2f-mrv6/GHSA-8425-8r2f-mrv6.json"