Incorrect Permission Assignment for Critical Resource Affecting go.senan.xyz/gonic/fileutil package, versions <0.21.0


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.43% (35th 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 Learn

Learn about Incorrect Permission Assignment for Critical Resource vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GOSENANXYZGONICFILEUTIL-17750782
  • published7 Jul 2026
  • disclosed26 Jun 2026
  • creditUnknown

Introduced: 26 Jun 2026

CVE-2026-49340  (opens in a new tab)
CWE-22  (opens in a new tab)
CWE-697  (opens in a new tab)
CWE-732  (opens in a new tab)

How to fix?

Upgrade go.senan.xyz/gonic/fileutil to version 0.21.0 or higher.

Overview

Affected versions of this package are vulnerable to Incorrect Permission Assignment for Critical Resource via the ServeCreateOrUpdatePlaylist process. An attacker can overwrite or create arbitrary files on the host system by supplying a crafted playlist ID that resolves to an attacker-controlled path, leading to potential destruction of application data or configuration files. This is possible because the path containment check is missing and directory permissions are set to world-writable, allowing any authenticated user to write outside the intended directory structure.

CVSS Base Scores

version 4.0
version 3.1