Skip to content

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

HighCVSS 8.1 EPSS 0.31%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: total

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.

Upgrade path

2 packages: 1 fixed.

PackageAffectedFixed inStatus
go.senan.xyz/gonic(Go) < 0.21.0; <= 0.20.1 0.21.0 Fixed
sentriz gonic = < 0.21.0 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
go.senan.xyz/gonic(Go) < 0.21.0 0.21.0
sentriz gonic = < 0.21.0 No fix listed
go.senan.xyz/gonic(Go) <= 0.20.1 No fix listed

References