Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconObtain low-privileged Subsonic account
-
DeliveryReach gonic playlist API over network
-
ExploitSend createPlaylist with absolute path and M3U payload
-
InstallTrigger unreachable guard / unchecked Store.Write
-
C2File written and 0o777 dirs created on host
-
ExecuteOverwrite SSH/config/unit file for persistence
-
ImpactExecute code as gonic service user
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires a valid authenticated Subsonic account on the target gonic instance (PR:L) - admin is not needed, any non-admin user works. The attacker must be able to reach the gonic HTTP API over the network (AV:N) and must call the playlist create/update endpoint with an attacker-chosen absolute path. Successful weaponization further requires that the gonic process's filesystem permissions allow writing to a security-relevant location (e.g., the service user's home, a writable config directory, or a world-writable system path); deployments running gonic under strict systemd sandboxing or a read-only root filesystem materially limit which paths are reachable. No user interaction is required (UI:N), and exploitation works against default configurations of vulnerable versions. |
| Impact | The CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H vector (8.1 High) reflects a network-reachable, low-complexity attack requiring only a low-privileged authenticated Subsonic user, with high integrity and availability impact and no confidentiality impact. This is consistent with arbitrary file write but not arbitrary file read. Realistic risk is meaningful for any gonic instance that allows user registration or shares accounts among households, because the bar - a valid non-admin login - is trivially met in those deployments. EPSS, KEV, and SSVC data were not provided, and no public exploit is identified at time of analysis, so this should be treated as a high-severity but not-yet-actively-exploited issue. Note: C:N means raw read of arbitrary files is not the primary impact, but an attacker who overwrites a config or a binary launched by the host could trivially escalate to confidentiality loss; defenders should not over-discount based on C:N alone. |
| Exploit ScenarioDerived | An attacker with any valid Subsonic account on a shared gonic instance issues a createPlaylist or updatePlaylist API call whose target path is an absolute filesystem location such as the gonic user's ~/.ssh/authorized_keys, a systemd unit drop-in, or a Go template/config file consumed at startup, with M3U-formatted content crafted to be syntactically valid in the target file format. gonic writes the file (creating any missing parent directories at 0o777) and the attacker gains code execution or persistence as the gonic service account on next trigger. No public PoC is identified at time of analysis, but the AC:L vector and the simple, well-documented Subsonic playlist API make exploit development straightforward. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 19, 2026
Arbitrary file write in gonic music streaming server prior to v0.21.0 allows any authenticated Subsonic user - including non-admin accounts - to write attacker-controlled M3U playlist content to any absolute filesystem path on the host, while also creating intermediate directories with world-writable 0o777 permissions. The flaw stems from an unreachable guard clause in ServeCreateOrUpdatePlaylist combined with missing path containment in Store.Write. No public exploit identified at time of analysis, but the GitHub Security Advisory GHSA-4gxv-p5g5-j7w7 documents the issue and a fix is available.
RemediationAI
Vendor-released patch: upgrade gonic to version 0.21.0 or later, which adds the missing path containment in Store.Write and corrects the unreachable guard in ServeCreateOrUpdatePlaylist; details are in https://github.com/sentriz/gonic/security/advisories/GHSA-4gxv-p5g5-j7w7. If immediate upgrade is not possible, compensating controls include disabling open registration and tightly restricting Subsonic accounts to trusted users (reduces the population that can reach the vulnerable handler but does not eliminate insider risk), running the gonic process as an unprivileged dedicated user under a restrictive umask and with filesystem confinement such as systemd ProtectSystem=strict / ReadWritePaths limited to the music and playlists directories (limits where arbitrary writes can land, at the cost of breaking writes to non-whitelisted paths), and placing gonic behind a reverse proxy that blocks unexpected playlist API verbs (may break legitimate Subsonic clients that use those endpoints). Audit any directories created by gonic for unexpected 0o777 permissions and revert them.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in go, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
gonic is a Go-based, self-hosted music streaming server implementing the Subsonic API, identified by CPE cpe:2.3:a:sentriz:gonic. The root cause is CWE-22 (Path Traversal / Improper Limitation of a Pathname to a Restricted Directory). Specifically, the ServeCreateOrUpdatePlaylist handler contains a guard clause that is never reached due to a logic error, and the downstream Store.Write helper performs no canonicalization or containment check against a configured playlists directory. Because the attacker controls an absolute path, traditional '../' filtering would not help - the function happily writes to wherever the OS allows the gonic process to write. The MkdirAll-style intermediate directory creation with mode 0o777 further widens impact by leaving traversable, world-writable directories on disk.
Know when Gonic gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
Network-reachable Subsonic API (AV:N), trivial request (AC:L), requires any authenticated user but not admin (PR:L), no UI; arbitrary file write yields I:H and A:H, no direct read so C:N.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.org
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.
Executive ViewAI
Gonic music streaming server versions prior to 0.21.0 contain a critical file-write vulnerability allowing any authenticated user-including non-administrators-to write arbitrary playlist files to any filesystem path and create world-writable directories. Organizations using affected instances face risks of data corruption, configuration tampering, and potential code execution through file manipulation.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
Authenticated path traversal in gonic music streaming server allows any Subsonic user to read or delete other users' pla
Broken authorization in gonic music streaming server prior to version 0.21.0 allows any authenticated user to delete or
Same weakness CWE-22 – Path Traversal
View allSame technique Path Traversal
View allVendor StatusVendor
SUSE
Severity: Important| Product | Status |
|---|---|
| SUSE Linux Enterprise Server 16.1 | Affected |
| SUSE Linux Enterprise Server for SAP applications 16.1 | Affected |
| SUSE Linux Enterprise Module for Package Hub 15 SP5 | Affected |
| SUSE Linux Enterprise Module for Package Hub 15 SP6 | Affected |
| openSUSE Leap 15.5 | Affected |
| openSUSE Leap 15.6 | Affected |
EUVD-2026-38068
GHSA-4gxv-p5g5-j7w7
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB