Skip to main content

gonic EUVDEUVD-2026-38068

| CVE-2026-49340 HIGH
Path Traversal (CWE-22)
2026-06-19 GitHub_M GHSA-4gxv-p5g5-j7w7
8.1
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Obtain low-privileged Subsonic account
  2. Delivery
    Reach gonic playlist API over network
  3. Exploit
    Send createPlaylist with absolute path and M3U payload
  4. Install
    Trigger unreachable guard / unchecked Store.Write
  5. C2
    File written and 0o777 dirs created on host
  6. Execute
    Overwrite SSH/config/unit file for persistence
  7. Impact
    Execute 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

gonic < 0.21.0

Affected Packages

go go.senan.xyz/gonic fix: 0.21.0
euvd gonic fix: 0.21.0

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

Vendor (GitHub_M) PRIMARY 8.1 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
vuln.today AI 8.1 HIGH

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.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N
SUSE HIGH

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
High

Lifecycle Timeline

1
Patch available
Jun 19, 2026 - 21:02 EUVD

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.3%
Top 82% exploitable
Threat Intel
1
1 sources
Exploit
POC
Public exploit code exists
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor GitHub VulDB

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

60
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +40
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

Vendor 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

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy