Incorrect Permission Assignment for Critical Resource Affecting github.com/dragonflyoss/dragonfly/internal/dflog package, versions <2.1.1


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.01% (2nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-GITHUBCOMDRAGONFLYOSSDRAGONFLYINTERNALDFLOG-12878889
  • published18 Sept 2025
  • disclosed17 Sept 2025
  • creditUnknown

Introduced: 17 Sep 2025

NewCVE-2025-59349  (opens in a new tab)
CWE-732  (opens in a new tab)

How to fix?

Upgrade github.com/dragonflyoss/dragonfly/internal/dflog to version 2.1.1 or higher.

Overview

Affected versions of this package are vulnerable to Incorrect Permission Assignment for Critical Resource due to using os.MkdirAll function which does not perform any permission checks when a given directory path already exists. An attacker can gain unauthorized access or modify files by pre-creating directories with overly broad permissions before the process executes.

References

CVSS Base Scores

version 4.0
version 3.1