Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. go.senan.xyz/gonic
  4. ›
  5. CVE-2026-49340

CVE-2026-49340: gonic has arbitrary file write in createPlaylist: any authenticated user can write playlist M3U content to attacker-controlled path on the host

June 26, 2026

A logic error in ServeCreateOrUpdatePlaylist allows any authenticated Subsonic user (including non-admin) to write playlist M3U content to an attacker-controlled absolute filesystem path on the gonic host, and to create intermediate directories with 0o777 permissions.

The bug is independent of the playlist ownership IDOR fixed in 6dd71e6: it is an unreachable guard clause combined with no path containment in Store.Write.

References

  • github.com/advisories/GHSA-4gxv-p5g5-j7w7
  • github.com/sentriz/gonic/security/advisories/GHSA-4gxv-p5g5-j7w7
  • nvd.nist.gov/vuln/detail/CVE-2026-49340

Code Behaviors & Features

Detect and mitigate CVE-2026-49340 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.21.0

Fixed versions

  • 0.21.0

Solution

Upgrade to version 0.21.0 or above.

Impact 8.1 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
  • CWE-697: Incorrect Comparison
  • CWE-732: Incorrect Permission Assignment for Critical Resource

Source file

go/go.senan.xyz/gonic/CVE-2026-49340.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 27 Jun 2026 12:16:43 +0000.