Skip to content
OpenAdvisories
High · 8.1 CVE-2026-49340 EUVD-2026-38068GHSA-4gxv-p5g5-j7w7GO-2026-5827

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

Published Jun 19, 2026 · Updated Jun 22, 2026 · Assigned by GitHub_M

Description

gonic is a music streaming server / free-software subsonic server API implementation. Prior to version 0.21.0, 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 CVE-2026-49338 and CVE-2026-49339. It is an unreachable guard clause combined with no path containment in `Store.Write`. Version 0.21.0 patches the issue.

Affected products

VendorProductAffectedFixed
sentriz gonic < 0.21.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
openSUSE Leap 16.0 govulncheck-vulndb 0.0.20260723T184607-160000.1.1 openSUSE-SU-2026:21483-1

Affected packages

EcosystemPackageAffectedFixedRecord
Go go.senan.xyz/gonic < 0.21.0 0.21.0 GHSA-4gxv-p5g5-j7w7

Advisories 1

References